Connexion rapide:  

Forum: Old versions

Sujet another button mapping ?(question)

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

i got a few buttons i want to map to hot_cue active while_pressed

but i want it to mark the hot_cue first, or maybe just cue, it doesn't matter as it will only be active when its pressed

if someone could help me with the code that would be great, thanks in advance
 

Posté Sun 28 Apr 13 @ 7:45 am
maybe something like

set_cue 1 & hot_cue 1 while_pressed

I'm not really following what you mean by saying 'hot_cue active'. The script I wrote will not be great as whenever you press the button it will reset the cue to that point. If you want to play the hotcues you could try something like this. It is basically grouping 4 buttons together and setting conditions allowing the track to keep playing if you release one of the buttons while another is held down

button 1
set 'but_1' while_pressed & down ? goto_cue 1 & play : var 'but_2' ? nothing : var 'but_3' ? nothing : var 'but_4' ? nothing : pause & goto_cue 1

button 2
set 'but_2' while_pressed & down ? goto_cue 2 & play : var 'but_1' ? nothing : var 'but_3' ? nothing : var 'but_4' ? nothing : pause & goto_cue 2

button 3
set 'but_3' while_pressed & down ? goto_cue 3 & play : var 'but_1' ? nothing : var 'but_2' ? nothing : var 'but_4' ? nothing : pause & goto_cue 3

button 4
set 'but_4' while_pressed & down ? goto_cue 4 & play : var 'but_1' ? nothing : var 'but_2' ? nothing : var 'but_3' ? nothing : pause & goto_cue 4
 

Posté Sun 28 Apr 13 @ 8:04 am
sorry, i know this is easy, i'm just making it more complicated then it needs to be

i'm wanting a button press to mark a cue point (if its not already marked) then play that cue while_pressed (stop when released). i had a mapping but it seemed like if i had the jog wheel moved a before/after the cue spot it would move the cue spot, maybe its because the track was stopped? or i had the wrong mapping on it (probably the case)

my main controller is the vms4.1 so i was also wanting to use the "shift" key off of it while pressed then pressing the buttons on my other controller to delete those set cues, if possible, if not i'll just configure another button to work as shift on the controller, i should probably do that anyways.

so now i'll need to make a shift variable and map a button to it, i do have 2 free buttons on the controller

-cheers
 

Posté Sun 28 Apr 13 @ 12:51 pm
here is the long version
hot_cue 1 ? down ? goto_cue 1 & play : goto_cue 1 & pause : set_cue 1
 

Posté Sun 28 Apr 13 @ 4:57 pm
synthet1c wrote :
here is the long version
hot_cue 1 ? down ? goto_cue 1 & play : goto_cue 1 & pause : set_cue 1


this worked out great, now I just need to set a button to shift while_pressed so I can also delete cues

thanks synthet1c

-cheers
 

Posté Mon 29 Apr 13 @ 11:32 pm
I just re read your post... this wasn't what your requested but...

var '$shift' ? delete_cue 1 : hot_cue 1 ? down ? goto_cue 1 & play : goto_cue 1 & pause : set_cue 1
 

Posté Tue 30 Apr 13 @ 1:08 am
synthet1c wrote :
I just re read your post... this wasn't what your requested but...

var '$shift' ? delete_cue 1 : hot_cue 1 ? down ? goto_cue 1 & play : goto_cue 1 & pause : set_cue 1


that worked perfectly, this mapping is coming together perfectly
 

Posté Tue 30 Apr 13 @ 7:48 pm
I've been trying to add a little more to this script, maybe you can give me your brain. i'm wanting to NOT pause if the track is playing. I tried playing around with play ? . thanks in advance
 

Posté Wed 01 May 13 @ 11:36 am
maybe something like this could do it

var '$shift' ? delete_cue 1 : hot_cue 1 ? down ? play ? set 'playing' & goto_cue 1 & play : goto_cue 1 & play : var 'playing' ? nothing & set 'playing' 0 : goto_cue 1 & pause & set 'playing' 0 : set_cue 1
 

Posté Wed 01 May 13 @ 4:07 pm
that was it, perfect! thanks synthet1c
 

Posté Wed 01 May 13 @ 9:15 pm


(Les anciens sujets et forums sont automatiquement fermés)