Re: Different tempos
James, the more I actually *read* the lilypond manuals, the more I believe that everything is possible in the program. No question! =) Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
In addition to removing the forbid_line_engraver, you may want to use \set Score.allowBeamBreak = ##t (if you use version 2.10) or \override Beam #'breakable = ##t (if you use version 2.11.10 or later) to allow for line breaks when there is a beam in some part. See section "Line breaking" in the manual for version 2.11. /Mats James E. Bailey wrote: On Monday, January 21, 2008, at 04:13AM, "Kieren MacMillan" <[EMAIL PROTECTED]> wrote: Hi James, forbid_line_engraver did the trick Yeah!! I didn't even know about this one... Thanks! Kostia: I've attached my reformatted version of the shortened version of your code, applying James's tip. Notice that I abstracted all of the music into variables, declared before the \score block. I also moved all of the engraver \remove-ing code to the \layout block -- if you need those engravers in *other* Staff or Voice contexts (which aren't currently in the, then you'll need to add them back in, or move the \remove code *back* to where you originally had them (i.e., inside the \score block, where the Staff or Voice is actually instantiated). Hope this helps! Kieren. ___ You know, I thought about abstracting the music as well, it's really difficult to read when it isn't, but I didn't want to change too much so the OP could understand what was going on. For what it's worth, the more I actually *read* the lilypond manuals, the more I believe that everything is possible in the program. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
On Monday, January 21, 2008, at 04:13AM, "Kieren MacMillan" <[EMAIL PROTECTED]> wrote: >Hi James, > >> forbid_line_engraver did the trick > >Yeah!! I didn't even know about this one... >Thanks! > >Kostia: I've attached my reformatted version of the shortened version >of your code, applying James's tip. Notice that I abstracted all of >the music into variables, declared before the \score block. I also >moved all of the engraver \remove-ing code to the \layout block -- if >you need those engravers in *other* Staff or Voice contexts (which >aren't currently in the, then you'll need to add them back in, or >move the \remove code *back* to where you originally had them (i.e., >inside the \score block, where the Staff or Voice is actually >instantiated). > >Hope this helps! >Kieren. >___ > You know, I thought about abstracting the music as well, it's really difficult to read when it isn't, but I didn't want to change too much so the OP could understand what was going on. For what it's worth, the more I actually *read* the lilypond manuals, the more I believe that everything is possible in the program. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
kieren, james and the others... thanks a million! (and sorry for my late reply - was away from home for some days...) what you posted looks just awesome to my eyes! (though the proportions are different from my example now - but i'll try to find out why..) - also thanks for the other suggestions how to make the code more elegant. i'm still very new to lilypond, so all of this is very appreciated! regards, kostia. > -Ursprüngliche Nachricht- > Von: "Kieren MacMillan" <[EMAIL PROTECTED]> > Gesendet: 21.01.08 04:13:48 > An: James E. Bailey <[EMAIL PROTECTED]> > CC: lilypond-user@gnu.org > Betreff: Re: Different tempos > > Hi James, > > > forbid_line_engraver did the trick > > Yeah!! I didn't even know about this one... > Thanks! > > Kostia: I've attached my reformatted version of the shortened version > of your code, applying James's tip. Notice that I abstracted all of > the music into variables, declared before the \score block. I also > moved all of the engraver \remove-ing code to the \layout block -- if > you need those engravers in *other* Staff or Voice contexts (which > aren't currently in the, then you'll need to add them back in, or > move the \remove code *back* to where you originally had them (i.e., > inside the \score block, where the Staff or Voice is actually > instantiated). > > Hope this helps! > Kieren. > ___ > > \version "2.11.37" > > musicA = \relative c'' > { > \time 1/8 > \cadenzaOn > \set Staff.timeSignatureFraction = #'(51 . 8) > \compressMusic #'(379 . 51) > { > \repeat unfold 51 { b8 \noBeam \bar "" } > } > } > > musicB = \relative c'' > { > \time 1/8 > \cadenzaOn > \set Staff.timeSignatureFraction = #'(63 . 8) > \compressMusic #'(379 . 63) > { > \repeat unfold 63 { b8 \noBeam \bar "" } > } > } > > musicC = \relative c'' > { > \time 1/8 > \cadenzaOn > \set Staff.timeSignatureFraction = #'(83 . 8) > \compressMusic #'(379 . 83) > { > \repeat unfold 83 { b8 \noBeam \bar "" } > } > } > > musicD = \relative c'' > { > \time 1/8 > \cadenzaOn > \repeat unfold 379 { b8 \noBeam \bar "" } > } > > \score > { > << > \new Voice \musicA > \new Voice \musicB > \new RhythmicStaff \musicC > \new RhythmicStaff \musicD > >> > > \layout > { > \context > { > \Staff > \remove "Time_signature_engraver" > \remove "Bar_engraver" > } > \context > { > \RhythmicStaff > \remove "Time_signature_engraver" > \remove "Bar_engraver" > } > \context > { > \Voice > \remove "Forbid_line_break_engraver" > } > } > } > __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://produkte.web.de/club/?mc=021131 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
Hi James, forbid_line_engraver did the trick Yeah!! I didn't even know about this one... Thanks! Kostia: I've attached my reformatted version of the shortened version of your code, applying James's tip. Notice that I abstracted all of the music into variables, declared before the \score block. I also moved all of the engraver \remove-ing code to the \layout block -- if you need those engravers in *other* Staff or Voice contexts (which aren't currently in the, then you'll need to add them back in, or move the \remove code *back* to where you originally had them (i.e., inside the \score block, where the Staff or Voice is actually instantiated). Hope this helps! Kieren. ___ \version "2.11.37" musicA = \relative c'' { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(51 . 8) \compressMusic #'(379 . 51) { \repeat unfold 51 { b8 \noBeam \bar "" } } } musicB = \relative c'' { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(63 . 8) \compressMusic #'(379 . 63) { \repeat unfold 63 { b8 \noBeam \bar "" } } } musicC = \relative c'' { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(83 . 8) \compressMusic #'(379 . 83) { \repeat unfold 83 { b8 \noBeam \bar "" } } } musicD = \relative c'' { \time 1/8 \cadenzaOn \repeat unfold 379 { b8 \noBeam \bar "" } } \score { << \new Voice \musicA \new Voice \musicB \new RhythmicStaff \musicC \new RhythmicStaff \musicD >> \layout { \context { \Staff \remove "Time_signature_engraver" \remove "Bar_engraver" } \context { \RhythmicStaff \remove "Time_signature_engraver" \remove "Bar_engraver" } \context { \Voice \remove "Forbid_line_break_engraver" } } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
Hi Reinhold, You know that if you want to add/remove engravers from all staves or voices in a piece, you don't have to add the \with {...} to every staff/voice... In my test pieces (which I never posted, because they didn't work!, I started by doing that... However, I was worried that Kostia might want another staff that DID have the engraver. Anyway, we can post both options in the archive (or LSR). Best, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
Am Montag, 21. Januar 2008 schrieb James E. Bailey: > Yeah, the forbid_line_engraver did the trick. I shortened it a bit because > the computer segmentation faulted at the original lengths, but it works. > \new Staff \with { > \remove "Time_signature_engraver" > \remove "Bar_engraver" > } \new Voice \with {\remove "Forbid_line_break_engraver"} > { You know that if you want to add/remove engravers from all staves or voices in a piece, you don't have to add the \with {...} to every staff/voice... Rather, you can simply remove the engravers from the \Voice, \Staff or \RhythmicStaff contexts altogether in a \layout section. See the attached file for your example, where I only moved the \remove commands to the \layout section. This makes lilypond files much easier to read (and easier to write, since you don't have to repeat the same commands for all staves). Cheers, Reinhold -- -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ \layout { \context { \Voice \remove "Forbid_line_break_engraver" } \context { \Staff \remove "Time_signature_engraver" \remove "Bar_engraver" } \context { \RhythmicStaff \remove "Time_signature_engraver" \remove "Bar_engraver" } } \relative c'' { << \new Staff \new Voice { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(51 . 8) \compressMusic #'(379 . 51) { \repeat unfold 51 {b8\noBeam \bar ""} } } \new Staff \new Voice { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(63 . 8) \compressMusic #'(379 . 63) { \repeat unfold 63 {b8\noBeam \bar ""} } } \new RhythmicStaff \new Voice { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(83 . 8) \compressMusic #'(379 . 83) { \repeat unfold 83 {b8\noBeam \bar ""} } } \new RhythmicStaff \new Voice { \time 1/8 \cadenzaOn \repeat unfold 379 {b8\noBeam \bar ""} } >>} \version "2.10.33"___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
On Sunday, January 20, 2008, at 05:27PM, "Kieren MacMillan" <[EMAIL PROTECTED]> wrote: >Hi James, > >> Since lilypond can only have a line break where there is a measure, >> essentially, >> I just inserted a blank bar line in the repeat command. That solved >> everything for me. > >Except it doesn't solve Kostia's problem. =\ >He needs the eighth notes *not* to be synchronized -- i.e., the last >eighth note in each part should land together. >If you look at the output from your code, you'll see that each part >simply stops playing when it "runs out of notes". > >Nice effort, though! =) > >Best regards, >Kieren. > > Yeah, the forbid_line_engraver did the trick. I shortened it a bit because the computer segmentation faulted at the original lengths, but it works. \relative c'' { << \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } \new Voice \with {\remove "Forbid_line_break_engraver"} { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(51 . 8) \compressMusic #'(379 . 51) { \repeat unfold 51 {b8\noBeam \bar ""} } } \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" }\new Voice \with {\remove "Forbid_line_break_engraver"} { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(63 . 8) \compressMusic #'(379 . 63) { \repeat unfold 63 {b8\noBeam \bar ""} } } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } \new Voice \with {\remove "Forbid_line_break_engraver"} { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(83 . 8) \compressMusic #'(379 . 83) { \repeat unfold 83 {b8\noBeam \bar ""} } } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } \new Voice \with {\remove "Forbid_line_break_engraver"} { \time 1/8 \cadenzaOn \repeat unfold 379 {b8\noBeam \bar ""} } >>} \version "2.10.33" ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
On Sunday, January 20, 2008, at 05:27PM, "Kieren MacMillan" <[EMAIL PROTECTED]> wrote: >Hi James, > >> Since lilypond can only have a line break where there is a measure, >> essentially, >> I just inserted a blank bar line in the repeat command. That solved >> everything for me. > >Except it doesn't solve Kostia's problem. =\ >He needs the eighth notes *not* to be synchronized -- i.e., the last >eighth note in each part should land together. >If you look at the output from your code, you'll see that each part >simply stops playing when it "runs out of notes". > >Nice effort, though! =) > >Best regards, >Kieren. > > D'oh totally forgot about that part. Perhaps the Forbid_line_break_engraver is better suited for this then. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
Hi James, Since lilypond can only have a line break where there is a measure, essentially, I just inserted a blank bar line in the repeat command. That solved everything for me. Except it doesn't solve Kostia's problem. =\ He needs the eighth notes *not* to be synchronized -- i.e., the last eighth note in each part should land together. If you look at the output from your code, you'll see that each part simply stops playing when it "runs out of notes". Nice effort, though! =) Best regards, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Different tempos
>Message: 7 >Date: Sat, 19 Jan 2008 06:34:49 -0500 >From: Kieren MacMillan <[EMAIL PROTECTED]> >Subject: Re: different tempos >To: Kostia Rapoport <[EMAIL PROTECTED]> >Cc: Lilypondusers Group >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > >Hi Kostia, > >> [first of all: is it the right way to reply via email? i've never >> used this kind of mailing lists but just ordinary insternet >> discussion boards. will our conversation (maybe including useful >> information for others) be visible on the archive on the lilypond- >> website?] > >You need to "Reply All", in order to include the list on your response. >[I've reposted this response to the list, to make sure it comes up in >the archive, etc.] > >> there are four instruments, each with his own staff. all four are >> playing just 8th notes in a different tempo. the very last note is >> played together, simultaneously. for the first instrument, this is >> the 8th note no. 513. for the first instrument, this is the 8th >> note no. 631. for the first instrument, this is the 8th note no. >> 483. and for the first instrument, this is the 8th note no. 379. >I tried for a few minutes to solve your problem. However, it looks >like Lilypond does not want to break in the middle of a note -- and >since none of the intermediate notes ever line up exactly (379 and >631 are primes), I couldn't figure out a way to get Lilypond to >engrave more than a single system. > >Perhaps there are users out there with more experience with the >timing_engraver who can help. > >Sorry, >Kieren. > I don't know if anyone else helped with this, but I found it a rather fun puzzle. Since lilypond can only have a line break where there is a measure, essentially, I just inserted a blank bar line in the repeat command. That solved everything for me. \version "2.10.33" \relative c'' {<< \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 513/8 \repeat unfold 513 {b8\noBeam \bar ""} } \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 631/8 \repeat unfold 631 {b8\noBeam \bar ""} } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 483/8 \repeat unfold 483 {b8\noBeam \bar ""} } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 379/8 \repeat unfold 379 {b8\noBeam \bar ""} } >>} ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different tempos
Hi Kostia, [first of all: is it the right way to reply via email? i've never used this kind of mailing lists but just ordinary insternet discussion boards. will our conversation (maybe including useful information for others) be visible on the archive on the lilypond- website?] You need to "Reply All", in order to include the list on your response. [I've reposted this response to the list, to make sure it comes up in the archive, etc.] there are four instruments, each with his own staff. all four are playing just 8th notes in a different tempo. the very last note is played together, simultaneously. for the first instrument, this is the 8th note no. 513. for the first instrument, this is the 8th note no. 631. for the first instrument, this is the 8th note no. 483. and for the first instrument, this is the 8th note no. 379. this is how i tried to do it: % \relative c'' { << \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(513 . 8) \compressMusic #'(389 . 513) { \repeat unfold 513 {b8\noBeam} } } \new Staff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(631 . 8) \compressMusic #'(389 . 631) { \repeat unfold 631 {b8\noBeam} } } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 1/8 \cadenzaOn \set Staff.timeSignatureFraction = #'(483 . 8) \compressMusic #'(389 . 483) { \repeat unfold 483 {b8\noBeam} } } \new RhythmicStaff \with { \remove "Time_signature_engraver" \remove "Bar_engraver" } { \time 1/8 \cadenzaOn \repeat unfold 379 {b8\noBeam} } } \version "2.10.33" % necessary for upgrading to future LilyPond versions. % I tried for a few minutes to solve your problem. However, it looks like Lilypond does not want to break in the middle of a note -- and since none of the intermediate notes ever line up exactly (379 and 631 are primes), I couldn't figure out a way to get Lilypond to engrave more than a single system. Perhaps there are users out there with more experience with the timing_engraver who can help. Sorry, Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: different tempos
Hi Kostia, Welcome to Lilypond! =) Without seeing your exact code (Lilypond source file), it is difficult to diagnose the problem. However, I might recommend the following approach: 1. Writing all the music in a very "short" time signature (e.g., 2/4, or even 1/4). 2. Remove all TimeSignature and BarLine objects. That way, Lilypond can break at whatever point seems "right" to it, and there won't be any time signatures or bar lines to worry about. Hope this helps! Kieren. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
different tempos
hi, my name is kostia, i am a student of composition and this is my first post. first of all: thank you for lilypond! amazing software and ideology behind it!! now, i have a question concidering music where each instrument plays its own, individual tempo that, in addition, may change during the piece. i've tried to write down a piece with different tempos by using the \compressMusic - command and making one huge bar for the whole piece with different lengths for each staff. but this led to extremely uncomfortable time signatures and i couldn't find out how to make appropriate line breaks: i seem to get one line for the whole piece, which of course doesn't fit on the paper. did anyone try to solve similar problems and has some useful suggestions for me? (i'm very new to lilypond...) or is there even the possibility to somehow set an individual tempo (in bpm maybe) for each staff and get a notation that would be proportionally correct, somewhat like space-notation? i hope, that i express myself clearly. if not, i will try to post an example (must still find out how to do that on that list? just attaching a pdf to the email?) thanks! and my best wishes for the new year! kostia. ___ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=00 ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user