Is there a way to send several MIDI \control values at once from inside a single Pbind? I’m trying to use Pbind to control a Volca FM. I’ve made it work, but the syntax is a bit cumbersome, since I have to declare a Pbind for each control and then wrap everything inside a Ppar. I am aware of the limitation of Pbind on sending both \noteOn and \control MIDI commands (is there a way around this, by the way?). Is there a Pmidi somewhere? It would be great to have a pattern just for midi, like a Pbind but without all the hassle of declaring setup MIDI pairs for every single note player and control. Has anybody done such a thing? I’ve been thinking on doing it, but I’m just starting to create my first patterns and this is a bit overwhelming at this point.
Ideally, what I’m looking for is something like this:
Pmidi(\midiout, MIDIOut(0),
\degree, Pwhite(0,7),
\ccVelocity, 60,
\ccModulatorAttack, 10,
...
);
Here is my actual code which is –needless to say– a pain even to read:
(
Pdef(\m, Ppar([
Pbind(\type, \midi, \midiout, m, \midicmd, \noteOn,
\scale, Scale.harmonicMinor,
\degree, [0, 2, 4],
\octave, Pn(Pshuf((2..8),4)),
\amp, Pbjorklund(5,8) * 0.2,
),
Pbind(\type, \midi, \midiout, m, \midicmd, \control,
\ctlNum, 41, // velocity -- Pbind's \velocity doesn't work because VolcaFM's MIDI interface doesn't support it
\control, 60,
),
Pbind(\type, \midi, \midiout, m, \midicmd, \control,
\ctlNum, 42, // modulator attack
\control, Pdefn(\ctlModulatorAttack),
),
Pbind(\type, \midi, \midiout, m, \midicmd, \control,
\ctlNum, 45, // carrier decay
\control, Pdefn(\ctlCarrierDecay),
])).play;
)
I’m pretty sure someone has already solved this. Are you out there?
Thanks!