Hi everyone,
I'm looking for a script to display the number of beats between cues in the JogWheel area (possibly replacing the time remaining/elapsed info). I have managed to get a value displayed for a custom button using `get_beatpos` but that only outputs the number of beats from the first cue point. I also tried using cue_pos but this only seemed to work if the cues were hotcues. I need the value to update based on the cues either side of the song position and output the number of beats between the previous and next cue, regardless of the cue type (I'm using hotcues and markers) - ideally in bars format, i.e. 17.1. Can anyone help please 🙏
Many Thanks,
Adam
I'm looking for a script to display the number of beats between cues in the JogWheel area (possibly replacing the time remaining/elapsed info). I have managed to get a value displayed for a custom button using `get_beatpos` but that only outputs the number of beats from the first cue point. I also tried using cue_pos but this only seemed to work if the cues were hotcues. I need the value to update based on the cues either side of the song position and output the number of beats between the previous and next cue, regardless of the cue type (I'm using hotcues and markers) - ideally in bars format, i.e. 17.1. Can anyone help please 🙏
Many Thanks,
Adam
Posted Mon 02 Mar 26 @ 12:30 pm
cue_countdown the rest is formatting.
Posted Mon 02 Mar 26 @ 1:47 pm
Ez LocoDog,
Hope you are well...
Ok, I've tested that in a custom button and it's showing beats counting down (can this be changed to 1 decimal place rather than 2 decimal places?). Also, it only works between hotcues not markers? As for formatting, I don't have a clue how to do that stuff lol.
Any help would be amazing.
Thanks, Adam
Hope you are well...
Ok, I've tested that in a custom button and it's showing beats counting down (can this be changed to 1 decimal place rather than 2 decimal places?). Also, it only works between hotcues not markers? As for formatting, I don't have a clue how to do that stuff lol.
Any help would be amazing.
Thanks, Adam
Posted Mon 02 Mar 26 @ 4:20 pm
You're right about cue_countdown missing markers
Something like this works until there isn't another cue/marker, I could probably figure that out.
Something like this works until there isn't another cue/marker, I could probably figure that out.
get_text "`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_multiply 0.25 & param_cast int_trunc`.`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_mod 4 & param_cast int_trunc`"
Posted Mon 02 Mar 26 @ 6:33 pm
I tested this with debug
Seems to work, just remove the param_cast & debug from each of the reply lines to place it in your skin.
Not as neat as I could have done it, but quick.
get_text "`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_multiply 0.25 & param_cast int_trunc`.`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_mod 4 & param_cast int_trunc`" & param_contains "-" ? get_text "`cue_countdown & param_multiply 0.25 & param_cast int_trunc`.`cue_countdown & param_mod 4 & param_cast int_trunc`" & param_cast & debug : get_text "`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_multiply 0.25 & param_cast int_trunc`.`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_mod 4 & param_cast int_trunc`" & param_cast & debug
Seems to work, just remove the param_cast & debug from each of the reply lines to place it in your skin.
Not as neat as I could have done it, but quick.
Posted Mon 02 Mar 26 @ 6:42 pm
param_equal 'cue_pos next marker beats' 0 ? get_text "`cue_countdown & param_multiply 0.25 & param_cast int_trunc`.`cue_countdown & param_mod 4 & param_cast int_trunc`" : get_text "`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_multiply 0.25 & param_cast int_trunc`.`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_mod 4 & param_cast int_trunc`"
That's a little neater.
*Edit, not xml friendly, new reply below.
Posted Mon 02 Mar 26 @ 8:00 pm
oh of course, xml escaping needed, only " will escaping
param_equal 'cue_pos next marker beats' 0 ? get_text '`cue_countdown & param_multiply 0.25 & param_cast int_trunc`.`cue_countdown & param_mod 4 & param_cast int_trunc`' : get_text "`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_multiply 0.25 & param_cast int_trunc`.`cue_pos next marker beats & param_add 'get_beatpos & param_multiply -1' & param_mod 4 & param_cast int_trunc`"
Posted Mon 02 Mar 26 @ 9:15 pm
I use it by Default at the Cue Pads and Set IT to beats.
So i See quick how Long i have Till the next Action i prepared before Like James Hype.
So i See quick how Long i have Till the next Action i prepared before Like James Hype.
Posted Mon 02 Mar 26 @ 9:56 pm
@HardyHardwich82
Thanks for the reply but this doesnt' work for marker cues, only hotcues
Thanks for the reply but this doesnt' work for marker cues, only hotcues
Posted Wed 04 Mar 26 @ 9:32 am
@LocoDog
Awesome, once again you have come up with the goods. I can see this works in the debug windows, although I have very limited knowledge of scripting. Could you get this implentented for via Discord maybe?
Awesome, once again you have come up with the goods. I can see this works in the debug windows, although I have very limited knowledge of scripting. Could you get this implentented for via Discord maybe?
Posted Wed 04 Mar 26 @ 9:36 am
Yeah sure, visit my profile page here and it has a link to my discord, you can shoot me a FR and send a DM there for real time chat.
Posted Wed 04 Mar 26 @ 9:45 am
Tested in skin, works well, some might prefer adding 1 to the last count so that it 4,3,2,1 instead of 3,2,1,0. I might adopt this on my skin.
Posted Thu 05 Mar 26 @ 2:14 pm





