Esko Teerilahti <esko...@iki.fi> writes:

> Hi !
>
> I noticed that there is no key signature in the midi file.

It is here.

The file

\version "2.18.2"

\score {
  {
    \key a\major
    c1
  }
  \midi { }
}

produces a Midi file that, printed with lilymidi --pretty, shows

Filename:     gaga.midi
MIDI format:  1 (one or more simultaneous tracks)
Divisions:    1536 per whole note
#Tracks:      2

Track 1:
    Time 0:
        Track name: control track
        Text:       creator: 
        Text:       GNU LilyPond 2.18.2           
        Time signature: 4/4, metronome 3/16
        Tempo:      1000000 msec/quarter
        End of Track

Track 2:
    Time 0:
        Track name: \new:
        Control mode change: 0, 7100
        Key signature: A major
        Note on: Channel 0, C3(48)
    Time 1536: 
        Note off: Channel 0, C3(48)
        End of Track

So you need to figure out why your program does not see this.

-- 
David Kastrup

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

Reply via email to