Archived
Fixed fade_out.m
Fixed the error of dimensions not matching in the operation input .* multiplier
This commit is contained in:
1 parent
ecf6ec01ea
commit
0c39f41ce8
1 file changed
+4
@@ -23,6 +23,10 @@ function output = fade_out(input, time)
|
||||
|
||||
% fade out effect: from full volume of signal to no volume
|
||||
multiplier = flip(multiplier)
|
||||
|
||||
while length(multiplier) < len
|
||||
multiplier = [multiplier 0];
|
||||
end
|
||||
|
||||
% the resulting fade-in output
|
||||
output = input .* multiplier;
|
||||
|
||||
Reference in new issue
Block a user