Stephan: > My initial question ( a) ) was about the way Lilypond implements the way > how Lyrics are rendered into MIDI. There are several standard-conforming > ways. But the way Lilypond currently does it by default does not suit my > purpose. ... > >> 3.) saves notes and lyrics in separate MIDI tracks -> nok! SynthV needs > >> notes and lyrics combined in one track ...
Here is a program to merge one music and one lyric midi track: https://aspodata.se/git/musik/bin/midi_merge.pl It depends on perl and the MIDI perl module: https://metacpan.org/pod/MIDI For the files in https://aspodata.se/choir/midi/example/ midi_merge.pl 1 2 In_natali_domini.midi it gives me In_natali_domini_1_2.midi Dumping it with https://aspodata.se/git/musik/bin/midi.pl midi.pl In_natali_domini_1_2.midi > In_natali_domini_1_2.dump I get this extract: ['note_on', 0, 0, 67, 90], ['lyric', 0, 'In'], ['note_on', 3072, 0, 67, 0], ['note_on', 0, 0, 65, 90], ['lyric', 0, 'na'], ['note_on', 1536, 0, 65, 0], ['note_on', 0, 0, 67, 90], ['lyric', 0, 'ta'], ['note_on', 1536, 0, 67, 0], I.e. track 1 and 2 (counting from zero) merged as track 1. (Note, lilypond uses the note_on, delta_time, note_number, zero_volume convetions instead of note_off.) Regards, /Karl Hammar