Reorganized Into Folders

This commit is contained in:
Darell Chua Yun Da 2021-12-10 10:01:30 +08:00
parent 88f77fed35
commit f856cdcd2b
41 changed files with 53 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

BIN
src/.DS_Store vendored

Binary file not shown.

BIN
src/Helper/.DS_Store vendored Normal file

Binary file not shown.

BIN
src/NotWorking/.DS_Store vendored Normal file

Binary file not shown.

26
src/Select/FilterSelect.m Normal file
View File

@ -0,0 +1,26 @@
%Written by Darell
% CONTRIBUTORS:
% Person1: Darell
% DOCUMENTATION:
%Pass-through function used by app
function output = FilterSelect(input,Fs,LOW,MED,HIGH,number)
if(number == "Option 1")
output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH);
elseif(number == "Option 2")
output = amplifyFreqRange(input, Fs, LOW, MED, HIGH);
elseif(number == "Option 3")
output = epic_effect_schluep(input, Fs, LOW, MED, HIGH);
elseif(number == "Option 4")
output = muffled_effect_schluep(input, Fs, LOW, MED, HIGH);
elseif(number == "Option 5")
output = seperate_prevalent_schluep(input, Fs, LOW, MED, HIGH);
elseif(number == "Option 6")
output = bandreject_filter(input, Fs, LOW, HIGH);
else
output = input;
end
end

20
src/Select/LFOSelect.m Normal file
View File

@ -0,0 +1,20 @@
%Written by Darell
% CONTRIBUTORS:
% Person1: Darell
% DOCUMENTATION:
%Pass-through function used by app
function output = LFOSelect(amplitude, frequency, phase, fs, duration, input,number)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
if(number == "Option 1")
output = lfo_sawtooth(amplitude, frequency, phase, fs, duration, input);
elseif(number == "Option 2")
output = lfo_sine(amplitude, frequency, phase, fs, duration, input);
else
output = input;
end
end

View File

@ -6,13 +6,14 @@
% DOCUMENTATION: % DOCUMENTATION:
%Pass-through function used by app %Pass-through function used by app
function output = FilterSelect(input,Fs,LOW,MED,HIGH,number) function output = OffsetSelect(input,value,number)
if(number == "Option 1") if(number == "Option 1")
output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH); output = Meghaj_Echo(input, value);
elseif(number == "Option 2") elseif(number == "Option 2")
output = amplifyFreqRange(input, Fs, LOW, MED, HIGH); output = Petha_Hsu_PitchOffset(input, value);
else else
output = input; output = input;
end end
end end

View File

@ -16,7 +16,9 @@ function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration
elseif(number == "Option 4") elseif(number == "Option 4")
output = generate_sawtooth(amplitude, frequency, phase, fs, duration, duty); output = generate_sawtooth(amplitude, frequency, phase, fs, duration, duty);
elseif(number == "Option 5") elseif(number == "Option 5")
output = generate_white(amplitude, frequency, phase, fs, duration, duty); output = generate_white(amplitude, fs, duration);
elseif(number == "Option 6")
output = generate_halfCircles(amplitude, frequency, phase, fs, duration, duty);
else else
output = 0; output = 0;
end end