Re: problem with \autochange and \ottava

2014-11-02 Thread Keith OHara
Gilberto Agostinho gilbertohasnofb at gmail.com writes:

[in the context of music generated by an algorithm]
 I am having trouble dealing with ottava changes while using autochange. 

The example showed \ottava changing the ottavation of staves by hand,
but the music moving between staves automatically with \autochange.

You or your algorithm must have some idea on which staff to place the
notes, before determining whether the staff needs an ottava change.

The general solution seems to be to apply whatever algorithm you use 
to choose ottavation after applying the \autochange routine
  \autoOctave \autoChange {...}
or maybe easier to merge them into one.




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: problem with \autochange and \ottava

2014-11-02 Thread Gilberto Agostinho
Hi Keith, 


Keith OHara wrote
 The general solution seems to be to apply whatever algorithm you use 
 to choose ottavation after applying the \autochange routine
   \autoOctave \autoChange {...}
 or maybe easier to merge them into one.

Oh, I see! So now I will probably aim to produce something like the code
below:

\score {
  \new PianoStaff {
\autochange { c'4 d' c' b } 
\autochange { \ottava #1 c''' e''' g''' }
\autochange { \ottava #0 c' b a }
  }
} 

I always applied \autochange to the whole PianoStaff, and for some reason it
didn't cross my mind I could do \autochange { musicA } \autochange { musicB
} etc. Thanks a lot, now things will be much easier!

Take care,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/problem-with-autochange-and-ottava-tp168278p168336.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


problem with \autochange and \ottava

2014-11-01 Thread Gilberto Agostinho
Hello LilyPonders,

I am having trouble dealing with ottava changes while using autochange. Have
a look on the code below:

\score {
  
\new Staff = up {
  c' d' c' \change Staff = down b
  \change Staff = up \ottava#1 c''' e''' g''' \ottava#0 c' b a
}
\new Staff = down {
  \clef bass 
  s1 s1
}
  
}

\score {
  \new PianoStaff \autochange {
 c'4 d' c' b \ottava#1 c''' e''' g''' \ottava#0 c' b a
  }
}

Which produces this:
http://lilypond.1069038.n5.nabble.com/file/n168278/56.png 

The top system is manually written, while the second uses autochange. I can
see what's happening is that autochange is waiting for the next note higher
than c to change staffs, and thus any command before this note (including
ottavation) will be written before it (that is, still in the bottom staff).
Is there any way of dealing with this situation or do I need to manually
deal with it?

Thanks a lot,
Gilberto





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/problem-with-autochange-and-ottava-tp168278.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user