hey, i have an IdentityDictionary self.params with keys and specs and use the method .sortedKeysValuesDo to set the value and action of the knobs of a midiController (Modality Toolkit).
The knobs are numbered GR01_kn_1, GR01_kn_2 etc.
Can i have an iteration counter while using .sortedKeysValuesDo to set numKnob
to acces each knob?
Or is there another workaround? many thanks
self.params.sortedKeysValuesDo{ |key, spec|
var paramVal;
paramVal = self.nodeProxy.get(key);
self.midiController.elAt(\GR01, \kn, numKnob)
//self.midiController.dictAt("GR01_kn_%".format(numKnob).asSymbol)
.value_(spec.unmap(paramVal))
.action_{ |el|
self.nodeProxy.set(key, spec.map(el.value));
};
};