

The way I would approach it is to take the ADC value (which is in W and the ADC_VALUE variable after the DoADConversion subroutine) and multiply it by 30%. This already limits the extreme ends of the range to prevent calculation errors from arising, but the method that is used doesn’t lend itself to being extended to your purpose.
#Taptempo ic update#
Update the frequency increments then return to mainloop MovwfĝISTORT_CV Store the phase distortion value SubwfĚDC_VALUE, w Subtract W from ADC_VALUE (gives 0->224) Lsrf TEMP, w Get top 5 bits of value in W (0-31) Limit the range of the DISTORT_CV to 16->240

However if you want a firmware solution, you need to mess with this routine: You’ve already spotted that the simplest way is the non-firmware solution of just adding resistors to the top and bottom of the pot. So you want phase distortion from 35% to 65%? Only 30% of the travel around the centre point? Is that right? It turned out that in certain circumstances, the Clock Output on the 3C chip dropped output pulses when used with a stream of sync input pulses.
#Taptempo ic code#
If you’d like to program your own chip for personal use, code and further details are available over on the original article about the new Druid chips. The datasheet includes example circuit diagrams, example waveforms, and the chip pinout diagram. The LFO tempo, multiplier, waveform selection, wave distortion, and output level are all voltage-controlled using 0-5V.ĭownload Electric Druid TAPLFO3D tap tempo LFO Datasheet This allows half- and double-time, and triplet times. The available multipliers are 0.5, 1, 1.5, 2, 3, and 4. This is combined with the tapped tempo to allow the LFO frequency to be set at a multiple of the tapped rate. The chip also includes a tempo multiplier. All the waveforms except the random wave can be altered by the wave distortion CV. The LFO can produce 8 waveforms, including a random (sample & hold) wave. All of these are described in the datasheet below. With this chip you can build tap tempo effects units or stompboxes, tap tempo controlled drum machines or tap tempo sequencer clocks. The TAPLFO chip adds a powerful feature to your LFOs: you can set the LFO frequency by tapping a tempo on a button connected to the chip, or by changing the Tempo CV.
