Code: Select all
.rn in_sig mr0
.rn pitched mr1
@fxcdsp.get_in(in0, in_sig)
@fxcdsp.pitch0(pot0, in_sig, pitched)
@fxcdsp.send_out(out0, pitched)
Code: Select all
.rn in_sig mr0
.rn pitched mr1
// @fxcdsp.get_in(in0, in_sig)
CPY_CS R0 , IN0 // from library: fxcdsp -- subroutine: get_in -- matching IN with IN0 type ADC --
CPY_MC IN_SIG , R0 // from library: fxcdsp -- subroutine: get_in -- matching SIG with IN_SIG type MREG --
// end inclusion library fxcdsp -- subroutine get_in
// @fxcdsp.pitch0(pot0, in_sig, pitched)
.MEM PDELAY_5 4096 // from library: fxcdsp -- subroutine: pitch0 --
CPY_CS R0 , POT0 // from library: fxcdsp -- subroutine: pitch0 -- matching SHFT with POT0 type POT --
WRDLD R1 , 0XC000 // from library: fxcdsp -- subroutine: pitch0 --
ADDS R0 , R1 // from library: fxcdsp -- subroutine: pitch0 --
WRDLD R0 , 0XFFF0 // from library: fxcdsp -- subroutine: pitch0 --
MULTRR ACC32 , R0 // from library: fxcdsp -- subroutine: pitch0 --
JGEZ ACC32 , OK_5 // from library: fxcdsp -- subroutine: pitch0 --
SLS ACC32 , 1 // from library: fxcdsp -- subroutine: pitch0 --
OK_5: CPY_SC RAMP0_F , ACC32 // from library: fxcdsp -- subroutine: pitch0 --
CPY_CM ACC32 , IN_SIG // from library: fxcdsp -- subroutine: pitch0 -- matching SIG_IN with IN_SIG type MREG --
WRDEL PDELAY_5 , ACC32 // from library: fxcdsp -- subroutine: pitch0 --
PITCH RMP0|L4096 , PDELAY_5 // from library: fxcdsp -- subroutine: pitch0 --
CPY_MC PITCHED , ACC32 // from library: fxcdsp -- subroutine: pitch0 -- matching SIG_OUT with PITCHED type MREG --
// end inclusion library fxcdsp -- subroutine pitch0
// @fxcdsp.send_out(out0, pitched)
CPY_CM R0 , PITCHED // from library: fxcdsp -- subroutine: send_out -- matching SIG with PITCHED type MREG --
CPY_SC OUT0 , R0 // from library: fxcdsp -- subroutine: send_out -- matching OUT with OUT0 type DAC --
// end inclusion library fxcdsp -- subroutine send_out
More info, the sample library file, etc. are all in the .zip, please read the READ ME and PDF files to understand how to integrate this into your tool chain.
Mac versions in beta (thanks to Matthew of Alexander pedals for beta testing, suggestions, etc. )