make invalid sound generator selection output 0s
This commit is contained in:
parent
95e63b61a3
commit
ce28d8981f
BIN
App/app.mlapp
BIN
App/app.mlapp
Binary file not shown.
@ -21,6 +21,6 @@ function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration
|
|||||||
elseif(number == "HalfCircle")
|
elseif(number == "HalfCircle")
|
||||||
output = generate_halfCircles(amplitude, frequency, phase, fs, duration, duty);
|
output = generate_halfCircles(amplitude, frequency, phase, fs, duration, duty);
|
||||||
else
|
else
|
||||||
output = 0;
|
output = zeros(1, fs * duration);
|
||||||
end
|
end
|
||||||
end
|
end
|
Reference in New Issue
Block a user