How to implement channel-specific MIDI gate, gain and freq? #696
Replies: 3 comments 1 reply
-
The current mydsp_poly has |
Beta Was this translation helpful? Give feedback.
-
I use faust2api for ESP32 and want to play notes with channel-specific DSP parameters. I have a solution, which is in my opinion pretty "dirty", but it works fine for me now. For now I designed flexible keyOn routine. This starts playing a note, but immediately shuts it down, by setting the gate parameter to zero. Then I load a predefined and channel-dependent set of parameters using setVoiceParamValue commands. After the desired parameters have been load into the DSP engine I fire the note again by setting gate to 1. I have to use this dirty method as the API only (if I am correct!) allows setting a voice specific parameters when the note has already been started. The alternative is getting the voice address with newVoice and then play it by setting the gate to 1. But then you have to manage the active voices yourself. Again, if I am correct..... |
Beta Was this translation helpful? Give feedback.
-
One solution could be extending the process + effect model:
|
Beta Was this translation helpful? Give feedback.
-
Is there a way to make channel-specific
freq
,gain
andgate
parameters?Like, if I wanted to have a voice for bass controlled by MIDI channel 1 and a voice for lead synth controlled by MIDI channel 2 and wrote something like this:
and press of a MIDI key on channel 1 would affect
bass_gate
,bass_gain
andbass_freq
but not others.I've read the MIDI Manual and it seems like I can have very advanced channel-specific CC controls and even values assigned to the velocity of particular MIDI keys on particular channels (with aftertouch!), but not the basic freq-gain-gate trio. Is it true or I am missing something?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions