setting the grid quantization value with an encoder

2.42K viewsGeneral
0

hi, is it possible to select the grid quantization value as you shown for the clip trigger quantize by turning an encoder and so select 1/16, 1/8 ,1/4 grid with the encoder?

admin Changed status to publish
Attached Files:
0

Hi benwadub,
I am aware that it is not the most elegant solution but this works:

self.song().clip_trigger_quantization = self.get_value_from_ranges(False, 5, False, self.midi_cc_ch_0_val_59.cur_val, 0, 127, 0, 7, 11, 0, False)
if self.song().clip_trigger_quantization == 8:
self.song().clip_trigger_quantization = 7
if self.song().clip_trigger_quantization == 10:
self.song().clip_trigger_quantization = 9

Change the numbers of ‘midi_cc_ch_0_val_59’ to your encoder’s values and you’re good to go 😉

admin Changed status to publish
Attached Files:
You are viewing 1 out of 10 answers, click here to view all answers.