[PD] mrpeach/midifile: multiple voices

Jakob Laue jakkesprinter at web.de
Sun Oct 4 01:14:58 CEST 2020


Hi Martin,
thanks for your quick response!
 
 
 
 

Gesendet: Samstag, 03. Oktober 2020 um 19:02 Uhr
Von: "Martin Peach" <chakekatzil at gmail.com>
An: "Jakob Laue" <jakkesprinter at web.de>
Cc: "Pd-List" <pd-list at lists.iem.at>
Betreff: Re: [PD] mrpeach/midifile: multiple voices
On Sat, Oct 3, 2020 at 7:05 AM Jakob Laue <jakkesprinter at 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 ...
- filename and fps in one message
- time signature message [255 88 4 4 2 38 8)
- tempo message [255 81 ...(
...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





More information about the Pd-list mailing list