make invalid sound generator selection output 0s

This commit is contained in:
Arthur Lu committed 2021-12-10 00:08:46 -08:00
1 parent 95e63b61a3
commit ce28d8981f
2 files changed
+1 -1

No files matched your search

BIN
View File
Binary file not shown.
+1 -1
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