I think that this can be achieved by implementing some custom internal generators which will be introduced as additional controllers. As you can see cc137 looks like LFO - alternate (changes from 0 to 1 and vice versa), but it looks like that this CC generates MIDI events with some fixed frequency. So, we'll need something like "parametric" continuous controllers - to be able to set some parameters like frequency, etc (and to be able to modulate these parameters with other controllers). Also, we'll need to extend the current SFZ spec with some additional opcodes. I'm thinking for something like ccN_prmX and ccN_prmX_onccY in the <global> section. For example, cc140_prm0=10 will set the first parameter of CC 140 with value 10 and cc140_prm2_oncc110=5 will specify that the third parameter of CC 140 will be modulated by MIDI continuous controller 110.nicop wrote: Yes, that's exactly what I'm trying to achieve.
I'm thinking of a LFO that runs indipendently and feeds the instrument's parameters.
I searched in the LS SFZ Reference, and maybe the only way to do that, is to implement lfoN_phase_onccX , so I can send a midi cc to LS with an external program.
But I guess this should be well thought out.