I am fairly new to PD, and am working on an algorithmic composition patch as part of a project, and I am attempting to save the midi output to a midi file, using the seq object. I am currently able to write data to the seq object, but when I create the midi file, it plays for the length that I recorded but it does not produce any sound. I have attached the patch - any advice would be extremely appreciated!
Here is the patch: relaxed.pd
-
Midi file written but does not produce sound when played
-
Hi, are you able to play any MIDI files (with or without Pd) at all on your computer? Windows already comes with the capacity of playing MIDI files out of the box, but on Linux you will need a synth (such as Qsynth) that uses soundfonts.
Take care,
Gilberto -
Hi Gilberto,
I am able to play midi files on my computer(I am running Windows 7). In fact, when I change the input of the cyclone/midiformat to a static message rather than the output of makenote, then I am able to record midi files that do produce sound. Thanks for your input! -
Hi,
So here is what I corrected in your patch:
- you were sending velocity 180 to [makenote], but MIDI values range only from 0-127. That was outputting an error message in the console when trying to use [seq]
- remember to first click on [record(, then [stop record( and only then click [write file.mid(, since it writes what is previously contained in the memory of [seq].
- to listen to the output, simply bang or send [start( to [seq], which should be connected to [midiparse] and [noteout] (for some reason, [midiout] is not working on my system as the help file of [seq] suggests and I don't know why....)
So here is the patch, see if it works now: patch.pd
Take care,
Gilberto -
Thank you so much for your help - it works perfectly now!
-
My pleasure, I am glad it works.
Take care,
Gilberto