App is working

Try out app. App is working except equalizer
This commit is contained in:
Darell Chua Yun Da 2021-12-07 16:23:30 +08:00
parent 8b76754943
commit 01631e89e2
3 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -1,6 +1,8 @@
function output = FilterSelect(input,Fs,LOW,MED,HIGH,number) function output = FilterSelect(input,Fs,LOW,MED,HIGH,number)
if(number == "Option 1") if(number == "Option 1")
output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH); output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH);
elseif(number == "Option 2")
output = amplifyFreqRange(input, Fs, LOW, MED, HIGH);
else else
output = input; output = input;
end end

View File

@ -5,7 +5,10 @@ function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration
output = generate_square(amplitude, frequency, phase, fs, duration, duty); output = generate_square(amplitude, frequency, phase, fs, duration, duty);
elseif(number == "Option 3") elseif(number == "Option 3")
output = generate_triangle(amplitude, frequency, phase, fs, duration, duty); output = generate_triangle(amplitude, frequency, phase, fs, duration, duty);
elseif(number == "Option 4")
output = generate_sawtooth(amplitude, frequency, phase, fs, duration, duty);
elseif(number == "Option 5")
output = generate_white(amplitude, frequency, phase, fs, duration, duty);
else else
output = 0; output = 0;
end end