Hi Martin, thanks for your quick response!
Gesendet: Samstag, 03. Oktober 2020 um 19:02 Uhr Von: "Martin Peach" chakekatzil@gmail.com An: "Jakob Laue" jakkesprinter@web.de Cc: "Pd-List" pd-list@lists.iem.at Betreff: Re: [PD] mrpeach/midifile: multiple voices On Sat, Oct 3, 2020 at 7:05 AM Jakob Laue jakkesprinter@web.de wrote:
Hi list, i have a patch that a melody and saves it into a midifile with [midifile] from mrpeach. Now i have extended the patch so that there is a second melody generated which accompanies the first one. Now i also send the pitch/noteduration pair of the second melody to the same [midifile] object in order to receive a two-voice-midi-file. But unfortunately both melodies seem to overwrite their noteDurations and hence i have wrong note durations in the midi file.
Are you writing a single track with two MIDI channels or two tracks?
->> to be honest, I can not answer this question. I initialize [midifile] with ...
...before I send it events.
If you use a [track ( message before each event it should keep them separate.
-> Do you mean a track name message like "FF 03 len text Sequence/Track Name" according to http://www.music.mcgill.ca/~ich/classes/mumt306/StandardMIDIfileformat.html at the bottom?
Thank you very much!
Jakob