Actually, this was a stupid question.  Apologies for the noise.

The bar line, the line break, and the starting note of the next bar all
share the same moment.  Which isn't helpful in terms of playing back a
video of the score.

What's necessary is to interpolate "when the bar is" in the playback
based on the speed of the music and the distance (difference in x
positions) between the last note, the bar line, and the next note.

I need a different approach.

On Tue, 2023-12-19 at 21:14 -0800, Stefano Antonelli wrote:
> Hello list,
> 
> I'd like to encode bar lines and line breaks into the midi output.
> 
> There are some general purpose midi control change messages that
> could
> be abused for this purpose.  These general purpose control change
> messages have id's of 80-84.  I don't see a way to use them in the
> lilypond documentation though.
> 
> There seem to be some predefined control change messages:
> 
> midiBalance (number)
> midiChorusLevel (number)
> midiExpression (number)
> midiPanPosition (number)
> midiReverbLevel (number)
> 
> And since this output is being generated specifically for ly2video I
> can look for any of those control change messages and interpret them
> as
>  bar lines or line breaks.
> 
> Is there any way to call those functions when bars or line breaks are
> encountered during the midi translation?
> 
> Thanks,
> Stef
> 
> 

Reply via email to