90 likes | 265 Views
Carey-o-key (Chipmunk Style). Carey Eugene ECE 3551 May 5, 2009. Problem statement. The purpose of this project was to design and implement a karaoke machine with chipmunk audio effects. And then run those effects through a low- and high- pass filter. Implementations. Inputs/ Outpust
E N D
Carey-o-key(Chipmunk Style) Carey Eugene ECE 3551 May 5, 2009
Problem statement The purpose of this project was to design and implement a karaoke machine with chipmunk audio effects. And then run those effects through a low- and high- pass filter.
Implementations • Inputs/Outpust • Channel0LeftIn/Channel0RightIn • Channel1LeftIn/Channel1Right • Push Buttons • PF8 – on/off • PF9 – chipmunk effect • PF10 – low-pass filter and chipmunk/low-pass filter • PF11 - high-pass filter and chipmunk/high-pass filter
Waveform SawTooth Wave 0 0x[n-d(n)] Low PassFilter Z-N x[n] y[n] Delay-LineGain ModulatingCenter ofDelay-Line N=Variable Delay d(n)
Algorithm for(wavecounter=0;wavecounter<WAVE_SIZE; wavecounter++) { if(wavecounter<500) { waveform[wavecounter]=wavecounter*2; } else { waveform[wavecounter]=2*(1000-wavecounter); } }
Algorithm { inti = 0; for(i=DELAY_SIZE-1;i>0;i--) { delayLine[i] = delayLine[i-1]; } delayLine[0] = iChannel0LeftIn; iChannel0LeftOut = delayLine[waveform[wavepointer]]; iChannel0RightOut = delayLine[waveform[wavepointer]]; //iChannel0RightOut = iChannel0LeftIn; wavepointer++; if( wavepointer>=WAVE_SIZE ) { wavepointer = 0; } }
Results The code successfully worked. The first button turned the audio on and off. The second button played the chipmunk effect. The third button ran the audio through the low-pass filter when you pressed it once. When you pressed the third button for a second time, it ran the audio through the chipmunk filter and then the low-pass filter. It did the same respectively for the high-pass filter.
References my.fit.edu/~vkepuska/web Audio Processing Problems and Solutions-1 Lab Manual