From: federico <xa...@in...> - 2005-03-06 13:24:34
|
hi all, today i decided to develop my MKS7-Editor on JSynthLib. it was everithing ok with envelopes and linear, one-value, parameters. now i'm getting in trouble with complex parameters. here is an example: param16: bit 6: unused bit 5: chorus on/off bit 4: saw-wave on/off bit 3: pulse-wave on/off bit 2,1,0: octave range (001=16', 010=8', 100=4') how can i make 4 different widgets that manipulate the same param_number? please consider that if go to change octave range, i should mask other bits, like this: new_val = (old_val & 0x28) | (oct_range & 0x03) to avoid re-setting to zero saw/pulse/chorus thanks -- Federico |