TransportHandler SetEnableGrid()
-
Hi - I'm trying to sync to the daw using SetEnableGrid and getting unexpected results.
I have the daw set as 4/4 120bpm . Here's the pattern I'm given based on the code I input:
th.setEnableGrid(true,4); // Gives me 3 over 4 (3 beats over 4 quarter notes)
th.setEnableGrid(true,2); // Gives me 2 over 4 (2 beats over 4 quarter notes)
th.setEnableGrid(true,3); // Gives me 8 over 12 (8 beats over 12 quarter notes)How does this work? I simply want to achieve breaking the grid down into quarter notes, eighth notes, sixteenths, and eighth notes however this doesn't seem to work as I expected. I thought setEnableGrid(true,4) would give me quarter notes?
-
@Lindon Any ideas? You had introduced me to this SetEnableGrid in another thread.
-
@Blake-Manternach these values 1,2,3,4 etc. are the tempo sync values not divisions of a bar.... create a knob in your interface, make it Tempo sync, its values will be between 1->18 (or 1_23 if you are using the extended tempo sync values) look at what each value represents by moving the knob...
-
@Lindon What does this mean - "Make it Tempo Sync" - and bigger picture, does this mean what i'm trying to accomplish with "SetEnableGrid" is not possible by subdividing the incoming tempo by quarter notes, eighth, sixteenth, triplets and eigthnote triplets?
-
@Blake-Manternach it mean HISE has a set of tempo values that it expects you to use (numbered either 1 to 18 or 1 to 23, depending upon a setting in your pre-compile process)....
So when you say
setEnableGrid(true,4)
that 4 is NOT 1/4 beats its tempo value number 4 in HISE's set of tempo values - you now need to go look these up somehow, so you know what number represents 1/4 (hint in the extended tempo settings 1/4 tempo's number is 10, and in the unextended set its 5) and what number represents 1/4T etc.
So one easy way I was trying to point you at was to put a knob in your interface and set its mode to Tempo Sync - set showVlauePopUp to Above and you will see as you turn the knob what values are used and what their "Secret number" is...
-
@Blake-Manternach
Perhaps this will help you to understand the topic better: Load a delay and set it to “Tempo Sync”.If you now turn the controls for the tempo, you will see that they are rasterized. In whole number steps. Each integer is assigned to a value.
For example, one is 1/1.
Two is 1/2D
Three is 1/2
And so on... -
@Blake-Manternach this is an example of how you could use the grid function in Transport Handler
HiseSnippet 1922.3oc4X80aiabDmz1L3HSaPRaPadbgPKfzAUKQK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