On Sat 30 Dec 2017 at 23:11:04 (+0000), Michael Ellis wrote:
> David Kastrup wrote:
> 
>    - I get correct PDF output on 2.21.0 but a nonsensical wash of bar
>    checks that appear to cater to 2/4 throughout.
> 
> Thanks for testing it, David.  What options did you use for midi2ly and
> lilypond?  My command lines were:
> 
> ./midi2ly.py -o meter.ly -n -V 1 meter.midi

What's odd to me is that all the midi2ly programs I have
are lacking the .py extension. They also object to being
fed a -n option. (Also, the program wouldn't normally be
found in the same directory as users' data files.)

> lilypond meter.ly
> 
> I only got one bar check complaint when LP processed meter.ly which
> contains:
> 
> TrackA = {
>   \numericTimeSignature\time 4/4  c'4 d'4 e'4 f'4  |  % orig
>   \numericTimeSignature\time 2/4  g'8 a'8 g'8 g'8 a'8 g'8 c''4  |  % orig
>   \numericTimeSignature\time 6/8  c''4 g'8 a'8 g'8 g'8 a'8 g'8  |  % orig
>   \numericTimeSignature\time 2/4  c''4 c''4 r2  |  % orig
> }

…whose format doesn't resemble the output I get from midi2ly with
$ ~/lilypond-2.19.80-1/bin/midi2ly -o /tmp/meter1980.ly /tmp/meter.midi 

Cheers,
David.
% Lily was here -- automatically converted by 
/home/david/lilypond-2.19.80-1/lilypond/usr/bin/midi2ly from /tmp/meter.midi
\version "2.14.0"

\layout {
  \context {
    \Voice
    \remove "Note_heads_engraver"
    \consists "Completion_heads_engraver"
    \remove "Rest_engraver"
    \consists "Completion_rest_engraver"
  }
}

trackAchannelA = {
  
  \time 4/4 
  
  \tempo 4 = 120 
  \skip 1 
  | % 2
  
  \time 6/8 
  \skip 2. 
  | % 3
  
  \time 2/4 
  \skip 2 
  | % 4
  
  \time 6/8 
  \skip 2. 
  | % 5
  
  \time 2/4 
  
}

trackA = <<
  \context Voice = voiceA \trackAchannelA
>>


trackBchannelB = \relative c {
  c'4 d 
  | % 2
  e f 
  | % 3
  g8 a g g 
  | % 4
  a g c4 
  | % 5
  c g8 a 
  | % 6
  g g a g 
  | % 7
  c4 c 
  | % 8
  
}

trackB = <<
  \context Voice = voiceA \trackBchannelB
>>


\score {
  <<
    \context Staff=trackB \trackA
    \context Staff=trackB \trackB
  >>
  \layout {}
  \midi {}
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to