Open seclorum opened 4 years ago
I agree but I'd like to have three places to configure this.
That doesn't mean they all have to be done at once. But sooner or later we gonna need them. To understand how this could be implemented look at the following places:
Parsing and loading of lua synths https://github.com/kallaballa/PatchScript/blob/a770beb030c529ce82ac8d27ca00d6e74d33eba2/src/PatchScript.cpp#L73-L80
MIDI handling https://github.com/kallaballa/MidiPatch/blob/5aaa1d9bfe8938c55942d2adcef662a1f3d9ebd6/src/midipatch.cpp#L125-L208
Voice mapping https://github.com/kallaballa/PatchScript/blob/a770beb030c529ce82ac8d27ca00d6e74d33eba2/src/PolySynth.cpp#L20-L53
MIDI Handling: now switched to a per-instance MIBY parser, which means Voice mapping/lua synth channel assignments can be implemented a little cleaner.
In order to support multi-timbrality, we need a way to route different MIDI messages to different synth instances on the basis of MIDI channel assignments.
e.g.
Channel: 1 drums.lua 2 synth1.lua 3 sampler.lua &etc.
One way to accomplish this would be to add a "-C " channel assignment argument to midipatch.