Waveform starting point when changing patches/engaging effect
Posted: Mon Aug 19, 2019 6:16 am
I'll try and keep this rather lengthy story as short a I can... I had originally asked this question over at the SpinCAD forum but Larry said its probably one for this group to tackle.
In short, I'm developing a multi-modulation pedal, with all the patches designed in SpinCAD.
We're trying to implement an external tap tempo switch and LED via a microcontroller, but we are having a few issues figuring out where to start.
Basically we need to know at which point the waveform is at when the effect is engaged or a patch is changed? (ie top, bottom, somewhere specific in the middle)
Im not sure how Larry developed the blocks for the LFOs, and I realise this is a bit of a tall order asking for this, but we're kind of stumped.
The issue isn't so much with the tap tempo switch, its more the LED. If we aren't bang on with knowing where the waveform starts there is a chance the LED will gradually drift over time and cause it to be completely out of sync with the rate of the effect. We tried just listening to it to see it we would tell but didn't figure out anything conclusive.
I assume if I was coding this directly in ASM theres probably an instruction to determine this, but alas... I cannot seem to get my head around writing it.
Any help anyone can offer would be greatly appreciated.
Alternatively, if anyone has any better ideas of how to implement an external tap tempo control it would be great to hear...
In short, I'm developing a multi-modulation pedal, with all the patches designed in SpinCAD.
We're trying to implement an external tap tempo switch and LED via a microcontroller, but we are having a few issues figuring out where to start.
Basically we need to know at which point the waveform is at when the effect is engaged or a patch is changed? (ie top, bottom, somewhere specific in the middle)
Im not sure how Larry developed the blocks for the LFOs, and I realise this is a bit of a tall order asking for this, but we're kind of stumped.
The issue isn't so much with the tap tempo switch, its more the LED. If we aren't bang on with knowing where the waveform starts there is a chance the LED will gradually drift over time and cause it to be completely out of sync with the rate of the effect. We tried just listening to it to see it we would tell but didn't figure out anything conclusive.
I assume if I was coding this directly in ASM theres probably an instruction to determine this, but alas... I cannot seem to get my head around writing it.
Any help anyone can offer would be greatly appreciated.
Alternatively, if anyone has any better ideas of how to implement an external tap tempo control it would be great to hear...