Search found 10 matches
- Thu Mar 16, 2017 5:05 pm
- Forum: Algorithm development
- Topic: Writing values directly to SIN0_RATE and SIN0_WIDTH
- Replies: 3
- Views: 5132
Kf = 2^17 (2 pi f / R) f: Desired LFO frequency in Hz R: Sample rate in Hz Kf range: 0 to 511 Kf decimal = Kf / 512 25/512 = 0.048828125 125/512 = 0.244140625 -------------------------------------- Ka = N (32767/16385) N: Delay length in samples Ka range: 0 to 32767 Ka decimal = Ka / 32768 16/32768 ...
- Sat Aug 20, 2016 2:05 pm
- Forum: Algorithm development
- Topic: tanH soft clipping
- Replies: 6
- Views: 12493
writing this down a little bit quick since I need to go out... EQU X2 REG0 EQU X REG1 EQU A REG2 EQU B REG3 EQU TANH REG4 ; X has been calculated and it resides in the register already... LDAX X MULX X WRAX X2,0 ; CALC A LDAX X2 SOF 1, 0.002797202797 MULX X2 SOF 1, 0.1282051282 MULX X2 MULX X RDAX X...
- Sat Aug 20, 2016 8:35 am
- Forum: Algorithm development
- Topic: tanH soft clipping
- Replies: 6
- Views: 12493
from: https://varietyofsound.wordpress.com/2011/02/14/efficient-tanh-computation-using-lamberts-continued-fraction/ x2 = x * x a := x·(135135 + x2·(17325 + x2·(378 + x2))) b := 135135 + x2·(62370 + x2·(3150 + 28·x2)) tanh(x) = a/b dividing each by 135135 a := x·(1 + x2·(0.1282051282 + x2·(0...
- Wed Apr 06, 2016 11:07 pm
- Forum: Algorithm development
- Topic: Spring reverb
- Replies: 35
- Views: 119128
- Tue Mar 29, 2016 7:35 pm
- Forum: Algorithm development
- Topic: Spring reverb
- Replies: 35
- Views: 119128
- Wed Sep 10, 2014 11:25 am
- Forum: Algorithm development
- Topic: Faux phase shifter
- Replies: 4
- Views: 7688
- Wed Sep 10, 2014 5:21 am
- Forum: Algorithm development
- Topic: Faux phase shifter
- Replies: 4
- Views: 7688
Larry, In the code for the MN3011a you have MULX POT1 WRAX REG20,0.0000000000 SOF 0.1130374160,0.0059798553 WRAX ADDR_PTR,0.0000000000 The wrax instruction is saving pot1 in reg20 and then clearing the acc. In the sof that comes after the acc = 0.0059798553. Why do you have 0.1130374160 in there rat...
- Sun Sep 07, 2014 12:41 pm
- Forum: Algorithm development
- Topic: Pulling apart the phase shifter program
- Replies: 8
- Views: 10720
- Thu Sep 04, 2014 8:57 am
- Forum: Algorithm development
- Topic: Pulling apart the phase shifter program
- Replies: 8
- Views: 10720
- Wed Sep 03, 2014 8:18 pm
- Forum: Algorithm development
- Topic: Pulling apart the phase shifter program
- Replies: 8
- Views: 10720
Larry, I wanted to post this here because its handy to use when calculating the filter parameters: first order all-pass filter difference equation: y(n) = A * x(n) + A * y(n-1) - x(n-1) Where A =(1 - wp) / (1 + wp) and wp = pi * (frequency / sampling rate) As an example, for frequency f1, we can cal...