Would this work for tap tempo control?

Software questions and issues with the FV-1

Moderator: frank

Post Reply
pharaohamps
Posts: 34
Joined: Thu Nov 09, 2006 6:58 am
Contact:

Would this work for tap tempo control?

Post by pharaohamps »

I had a thought - if you hooked up a momentary switch to a POT pin, could you use that input to trigger tap tempo? This might sound real stupid but I thought it might work. You setup a ramp lfo to sweep very slowly, like 1hz, or whatever your maximum delay time would be. When you see the switch close (forcing POT to zero,) you JAM the lfo to the start value. When it sees the POT go to zero again, you read the value of the lfo into a register and JAM again. Every time the POT zeroes, you just average the value of the LFO and JAM again. The LFO value gets multiplied by some constant to set the delay time correctly. The only problem I see is the first time you run the program you'd have to set up the LFO but not get its value, you'd use the delay pot instead. I guess you'd also have to make it so that if you adjust the delay time pot (different POT pin) that it would override the tempo control.

Am I dreaming, or would this work? You'd need some debounce logic at the switch itself to keep it from screwing up your delay rate, but that's easy enough. You could even do low-pass filtering on it in the software (like the POTFIL routine.)

Matt Farrow
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

Actually, that seems like a very effective solution. The POT inputs are DC so a switch is just as valid as a pot and the POT input should go to a true 0 when shorted to ground.
Frank Thomson
Experimental Noize
shahin
Posts: 13
Joined: Tue Sep 18, 2007 11:07 am

Post by shahin »

Has anyone got this to work?
PaoloBach
Posts: 1
Joined: Mon Oct 03, 2011 2:13 pm

Tap Tempo

Post by PaoloBach »

Any chance to see something like a tap tempo working around here?
slacker
Posts: 116
Joined: Tue Feb 01, 2011 1:13 pm

Post by slacker »

Have a look here, tap tempo using pretty much the method discussed above.

http://www.spinsemi.com/forum/viewtopic.php?t=302
Post Reply