How easy of a source code hack would it be to add footswitch functionality such as what I described for play/stop/rewind to beginning? I imagine this would be a piece of cake… just connecting the footswitch jack to an extra DIN pin and writing new function(s) that would call the already-in-place transport functions?
that’s the basic idea, not too difficult but not quite a piece of cake.
I guess it would be three cases?
-when pedal is pressed…
–if transport is playing, stop
–if not, play
–if less than .5 sec since last press, stop and rewind to beginning
Maybe this should be in the MIOS forum.
i’m prolly not the guy to tell you how… but here’s my take
the only trick will be the timer.
you will need a few vars to make this happen, at least
-a counter (say dblclick_cnt reset on 1st click)
-a var (say dblclick_chk) to indicate you are looking for a second click (because counter will loop)
you will need a timer to inc the counter (may be a mios func you can reuse)
on click,
if dblclick_chk AND (counter < DBL_CLICK_DELAY)
set dblclick_chk false
call dblclickfunc
else
set dblclick_cnt = 0
set dblcick_chk = true
call clickfunc
(on double-click the click function will be called on the 1st click, of course)
another switch function i’ve found useful is the long press. (if switch is held down for a while)
suggest you post in assembly programming forum (search first though)
just ask about double click, doesn’t matter that it’s a footswitch,
that’s just a switch like any other in code land.