Updates to App
Soundgenerator Selector Added
This commit is contained in:
parent
e7fdfda8e3
commit
ab55430fae
Binary file not shown.
13
src/SoundGeneratorSelect.m
Normal file
13
src/SoundGeneratorSelect.m
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration, duty,number)
|
||||||
|
if(number == "Option 1")
|
||||||
|
output = generate_sine(amplitude, frequency, phase, fs, duration, duty);
|
||||||
|
elseif(number == "Option 2")
|
||||||
|
output = generate_square(amplitude, frequency, phase, fs, duration, duty);
|
||||||
|
elseif(number == "Option 3")
|
||||||
|
output = generate_triangle(amplitude, frequency, phase, fs, duration, duty);
|
||||||
|
|
||||||
|
else
|
||||||
|
output = 0;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Reference in New Issue
Block a user