lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: There is no key signature in the generated Midi file ?


From: Esko Teerilahti
Subject: Re: There is no key signature in the generated Midi file ?
Date: Tue, 16 Feb 2016 11:01:03 +0200

Thnks for the answer ! 
Interesting, I have it in here, taken from some example

global = {
  \time 4/4
  \key a \major
  \tempo 4=120
}

Time and tempo are there in midi but not the key.



David Kastrup <address@hidden> kirjoitti 16.2.2016 kello 10.48:

Esko Teerilahti <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]