I am not very familiar with the guitar effects algo.But you could just experiment like adding delays, modulation of signals and others.
>>> a = [1,2,3,4]>>> b = [5,6,7,8]>>> print a,b[1, 2, 3, 4] [5, 6, 7, 8]>>> print a+b[1, 2, 3, 4, 5, 6, 7, 8]>>>
>>> from numpy import *>>> a=array([1,2,3,4])>>> b=array([5,6,7,8])>>> print a,b[1 2 3 4] [5 6 7 8]>>> print a+b[ 6 8 10 12]
#########################################DSP Tutorial#DFT - Discrete Fourier Transform#by: Regulus Berdin rberdin@gmail.com########################################from numpy import *def my_dft(x): N = len(x) y = zeros(N) + 0j # y = [0,0,0....,0] N number of elements k = arange(N) # k = [0,1,2,...,N-1] for n in range(N): #compute correlating factor W = exp(-2j*pi*k*n/N) #correlate with signal y[n] = sum(x * W) return y
#########################################DSP Tutorial#DFT - Discrete Fourier Transform#by: Regulus Berdin rberdin@gmail.com########################################from numpy import *from pylab import *def my_dft(x): N = len(x) y = zeros(N) + 0j # y = [0,0,0....,0] N number of elements k = arange(N) # k = [0,1,2,...,N-1] for n in range(N): #compute correlating factor W = exp(-2j*pi*k*n/N) #correlate with signal y[n] = sum(x * W) return y ##### fs = 8000.0N = 80y = range(N)t = arange(0,N/fs,1.0/fs) f1 = 300f2 = 1000signal = 0.5*sin(2*pi*f1*t) + 0.25*sin(2*pi*f2*t)spectrum = my_dft(signal)#graph resultsclf()subplot(211)plot(y, signal)subplot(212)plot(y, abs(spectrum))show()
#########################################DSP Tutorial#by: Regulus Berdin rberdin@gmail.com########################################from pylab import *def my_dft(x): N = len(x) y = zeros(N) + 0j # y = [0,0,0....,0] N number of elements k = arange(N) # k = [0,1,2,...,N-1] for n in range(N): #compute correlating factor W = exp(-2j*pi*k*n/N) #correlate with signal y[n] = sum(x * W) return y###fs = 8000.0f = 233t = arange(0, 0.1, 1.0/fs) N = len(t)signal = sin(2*pi*f*t) #generate sine wavespectrum = my_dft(signal)[:N/2] #get the spectrumsubplot(211)plot(signal)subplot(212)plot(abs(spectrum))show()
P2=poly([-2 -5 -6]) %store polynomial (s+2)(s+5)(s+6) as P2 and displaypause