Cool guitar patch

Algorithm development and general DSP issues

Moderator: frank

Post Reply
Digital Larry
Posts: 338
Joined: Mon Nov 12, 2012 1:12 pm
Contact:

Cool guitar patch

Post by Digital Larry »

I made a state variable filter block that splits the input into low pass, band pass, and high pass.

Low pass goes to a ring modulator on pot 0. This adds a little background "grunge".

Band pass goes to a distortion.

High pass goes to chorus. MN3011 BBD simulator used for echo.

Check out the diagram and the code!

Image

Uploaded with ImageShack.us


Code: Select all

;  Program: Render Block exported from SpinCAD Designer
SOF 0.0,0.0
LDAX 20
RDAX 34,-1.0
RDAX 33,-1.0
WRAX 32,0.1
RDAX 33,1.0
WRAX 33,0.1
RDAX 34,1.0
WRAX 34,0.1
RDAX 17,1.0
SOF 0.41,0.07
WRAX 35,0.0
SKP $80000000,3
WRAX 36,0.0
SOF 0.0,-1.0
WRAX 37,0.0
RDAX 36,0.13
MULX 16
RDAX 37,1.0
WRAX 37,-0.13
MULX 16
RDAX 36,1.0
WRAX 36,1.0
MULX 34
WRAX 38,0.0
RDAX 33,0.25
SOF -2.0,0.0
RDAX 39,0.9
WRAX 39,1.0
SOF -2.0,0.0
RDAX 40,0.3
WRAX 40,1.0
SOF -2.0,0.0
RDAX 41,0.7
WRAX 41,1.0
RDAX 42,-0.3
WRAX 42,0.3
WRAX 43,0.0
SKP $80000000,1
WLDS 1,12,999
CLR
RDAX 35,1.999
SOF 1.9999,0.0
SOF 0.002,0.0
RDAX 47,0.998
WRAX 47,0.0
RDAX 35,0.05
SOF 0.002,0.0
RDAX 45,0.998
WRAX 45,0.0
RDAX 35,1.0
MULX 35
MULX 35
SOF 0.3,0.01
WRAX 2,0.0
RDAX 35,1.0
SOF -0.5,0.999
WRAX 48,1.0
MULX 48
MULX 48
MULX 48
MULX 45
SOF 0.002,0.0
RDAX 46,0.998
WRAX 46,1.0
WRAX 3,0.0
RDAX 32,1.0
WRA 0,0.0
CHO RDA,1,06,1000
CHO RDA,1,00,1001
MULX 47
RDAX 32,1.0
WRAX 44,1.0
RDAX 44,0.5
SOF 0.002,0.0
RDAX 38,1.0
WRAX 50,0.0
RDAX 44,1.0
RDAX 50,1.0
WRAX 49,0.0
RDAX 43,1.0
WRAX 52,0.0
RDAX 49,1.0
RDAX 52,1.0
WRAX 51,0.0
SKP $80000000,2
CLR
WRAX 53,0.0
RDAX 53,0.9550247081704994
RDAX 43,0.04497529182950055
WRAX 53,0.0
RDAX 53,1.0
RDAX 53,0.45
RDAX 54,0.25
RDFX 55,1.25
WRHX 55,1.0
WRA 2001,0.75
RDA 3171,0.35
RDA 3956,0.35
RDA 5528,0.35
RDA 7099,0.051
RDA 10242,0.051
RDA 11832,0.051
WRAX 56,0.0
RDA 11832,0.25
WRAX 54,0.0
RDAX 56,1.0
WRAX 56,0.0
RDAX 51,1.0
WRAX 58,0.0
RDAX 56,1.0
MULX 18
RDAX 58,1.0
WRAX 57,0.0
RDAX 57,1.0
WRAX 22,0.0
RDAX 57,1.0
WRAX 23,0.0
sbcssbcs
Posts: 7
Joined: Wed Jan 09, 2013 1:47 pm

Post by sbcssbcs »

The code is probably not complete? Also, having no comments makes it hard to read...
sbcssbcs
Posts: 7
Joined: Wed Jan 09, 2013 1:47 pm

Post by sbcssbcs »

Ok, I see now this is meant for SpinCAD, will check it out!
Digital Larry
Posts: 338
Joined: Mon Nov 12, 2012 1:12 pm
Contact:

Post by Digital Larry »

I'll grant you that it has no comments. The whole point is that using the SpinCAD program allows you to design visually instead of writing assembler code directly.

I provided the Spin ASM in the event you wanted to try it out without using the SpinCAD program. Also, since SpinCAD is still in beta, the patch files are often not compatible between versions. Ultimately the Spin ASM is what really gets used so there is no compatibility issue there.
sbcssbcs
Posts: 7
Joined: Wed Jan 09, 2013 1:47 pm

Post by sbcssbcs »

Of course! This post was actually how I learned about SpinCAD, so never mind and thanks for your work!
Post Reply