make invalid sound generator selection output 0s

This commit is contained in:
Arthur Lu 2021-12-10 00:08:46 -08:00
parent 95e63b61a3
commit ce28d8981f
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -21,6 +21,6 @@ function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration
elseif(number == "HalfCircle")
output = generate_halfCircles(amplitude, frequency, phase, fs, duration, duty);
else
output = 0;
output = zeros(1, fs * duration);
end
end