Your shopping cart is empty.

setting the grid quantization value with an encoder

Submitted by benwadub on Sat, 01/22/2022 - 15:14
benwadub
Control Surface Studio User

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?

Topic Category: 

10 Responses

Comments

Wim
Forum Admin
#1

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 ;-)

benwadub
Control Surface Studio User
#2

that is not the triggering quantize that I want to change that is the grid size in the midi clips to quantize notes not the clip lauching

Wim
Forum Admin
#3

Tbh, I was going to start my answer by asking which kind of quantization you meant, but after reading your question again, I assumed it was 'clip trigger' ;-)
Anyway, the only manipulation I know of for quantizing the grid in midi clips are the shortcuts CTRL+1 & CTRL+2 on your keyboard, These work really well, I use them from time to time.
I am aware that is not the answer you were hoping for, but it is the closest I can get..

Wim
Forum Admin
#4

I was just browsing the LOM and saw the grid quantization option. I must have missed it the other time.
So I made you a .json file that lets you select the three options with a knob :-)
Cheers

benwadub
Control Surface Studio User
#5

WoW thanks a lot I ll look at it tonight when kids will sleep!!
Where do you find the information of what is doable? I m a total noob at programming

Wim
Forum Admin
#6

You are welcome!
Actually, I was just browsing the LOM in 'Reaction', like in the screenshot.

upload files: 
benwadub
Control Surface Studio User
#7

Damn I missed it here too!!

benwadub
Control Surface Studio User
#8

i don t think I ll be able to adapt it to my encoders, they send cc1 or cc127 if they are turned clockwise or counterclockwise so I ll be able to select only two values of grid quantize

Wim
Forum Admin
#9

Hi benwadub,
I made that script for an absolute control type knob.
Here is an adjusted script for a Relative control type knob.
It's a custom script, so you will have to change the two numbers (midi channel and CC) of each 'self.midi_cc_ch_0_val_56.cur_val' to match the numbers of your encoder.
Have fun!

benwadub
Control Surface Studio User
#10

thanks, I tried it but that doesn't seems to work, I ll retry tomorrow I have to go to bed now!
thanks for help!