Re: Repeats and midi blocks
Graham Percival [EMAIL PROTECTED] writes: It depends on why you're listening to the piece. I *do* want to hear it clunking along, since I only ever listen to midi as a quick proofread [...] Yes, though I'd say Ian has a point, too. I use the midi initially to 'proofread', but finally I generate the complete piece with repeats unfold. Should I make some corrections, I'd like to hear it without repeats, and so on. This snippet allows a command line option unfold-repeats to control this behaviour: maybeUnfoldRepeats = #(define-music-function (parser location music) (ly:music?) (if (ly:get-option 'unfold-repeats) #{ \unfoldRepeats $music #} #{ $music #})) \score { \maybeUnfoldRepeats \allMusic \midi { } } Using lilypond -d unfold-repeats ... will now generate midi with unfolded repeats. Now, if we could only get rid of the warning no such internal option: unfold-repeats... -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeats and midi blocks
Apologies to the list if this comes in twice, I'm replying using gmane newsgroup in Thunderbird for the first time :-) . Graham Percival wrote: snip It depends on why you're listening to the piece. I *do* want to hear it clunking along, since I only ever listen to midi as a quick proofread (ie any missed accidentals will sound very obviously bad). In that case, I don't need to listen to repeats multiple times. I take a bit more extreme view on this one. If the composer/arranger puts the repeats in a hand-written score, it's designed to be heard that way. That's why if we're rehearsing something with the flute quartet for the first time we always play it exactly as written on the first sight-read: if it's too late at night to do it properly then put off looking at it till next rehearsal. Similarly I feel the midi output should give as close a rendition of the written piece as possible. I know midi ouput has severe drawbacks but I find it useful to as a 'prooflisten' as I find it difficult to hear the whole ensemble sound (as opposed to individual instrument timbres) in my head when I'm producing a piece with Lily. If you *really* need to abbreviate the output, use the and keys on your playback app, but lily's midi output should give you the option of hearing the whole piece as the notation intended.. Cheers, - Graham Cheers Ian ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeats and midi blocks
Hi Johan, Johan Vromans wrote: Graham Percival [EMAIL PROTECTED] writes: It depends on why you're listening to the piece. I *do* want to hear it clunking along, since I only ever listen to midi as a quick proofread [...] Yes, though I'd say Ian has a point, too. I use the midi initially to 'proofread', but finally I generate the complete piece with repeats unfold. Should I make some corrections, I'd like to hear it without repeats, and so on. This snippet allows a command line option unfold-repeats to control this behaviour: maybeUnfoldRepeats = #(define-music-function (parser location music) (ly:music?) (if (ly:get-option 'unfold-repeats) #{ \unfoldRepeats $music #} #{ $music #})) \score { \maybeUnfoldRepeats \allMusic \midi { } } Using lilypond -d unfold-repeats ... will now generate midi with unfolded repeats. Now, if we could only get rid of the warning no such internal option: unfold-repeats... -- Johan Hmm... I may have a cunning plan. Write some wrapper functions \setMidiRepeats to take a boolean flag and save this in an internal Scheme variable, say unfoldmidirepeats. Your function then tests (if Reinhold does this sort of thing in orchestrallily, so I should be able to steal from the best . . . ) This sort of thing, \setMidiRepeats = #(define-music-function parser location unfoldmidirepeats music) (boolean? ly:music?) if(unfoldmidirepeats) #{ \unfoldRepeats $music} #{ $music } } ) I'll probably need some extra Scheme functions to set the unfoldmidirepeats variable to initial values and a known state but you've given me something to work with. Dankie en groetjes, Ian ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeats and midi blocks
Ian Hulin [EMAIL PROTECTED] writes: Write some wrapper functions \setMidiRepeats to take a boolean flag and save this in an internal Scheme variable, say unfoldmidirepeats. Your function then tests (if Reinhold does this sort of thing in orchestrallily, so I should be able to steal from the best . . . ) This is exactly what I did *not* want. If you want to change the score to control unfolding, it is much easier to do: \score { \unfoldRepeats \allMusic \midi { } } and comment/uncomment the line \unfoldRepeats. -- Johan ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Repeats and midi blocks
Why isn't the effect of \unfoldRepeats in a \midi block the default behaviour? If you're listening to a sound playback of your piece, don't you want to hear it as it would be played rather than the computer clunking along and playing all the \altenative bars one after another as now? How do I go about submitting this as an enhancement request? (Btw, I know this restriction is documented in NR 3.5.4) Cheers, Ian Hulin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Repeats and midi blocks
On Mon, Nov 17, 2008 at 03:50:29AM +, Ian Hulin wrote: Why isn't the effect of \unfoldRepeats in a \midi block the default behaviour? If you're listening to a sound playback of your piece, don't you want to hear it as it would be played rather than the computer clunking along and playing all the \altenative bars one after another as now? It depends on why you're listening to the piece. I *do* want to hear it clunking along, since I only ever listen to midi as a quick proofread (ie any missed accidentals will sound very obviously bad). In that case, I don't need to listen to repeats multiple times. Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user