This commit is contained in:
khannuuuuur 2021-12-05 22:17:23 -08:00
parent 6dc0d72f9b
commit 9be6ba3991
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,8 @@
function output = amplify(input, multiplier)
%Amplifies the signal by multiplier
%By Conner Hsu
%input: a 1D array representing the sound signal in the time domain
%multiplier: a scalar that multiplier all values in the input array to
% amplify or decrease the volume.
%Returns: input signal scaled by the multiplier in the time domain.
%Author: Conner Hsu
output = input*multiplier;
end

View File

@ -1,5 +1,6 @@
function output = reverse(input)
%Reverses an input signal
%input: a 1D array representing the sound signal in the time domain
%returns: the input signal with its elements in reverse order.
%By Conner Hsu
output = flip(input);
end