fixing
This commit is contained in:
parent
6dc0d72f9b
commit
9be6ba3991
@ -32,4 +32,4 @@ release = 0.1;
|
|||||||
x = DarellAmplitudeEnvelope(x, fs, attack,decay,sustain,release); %output new sound in time domain
|
x = DarellAmplitudeEnvelope(x, fs, attack,decay,sustain,release); %output new sound in time domain
|
||||||
%play over 5 counts, should only hear 200hz
|
%play over 5 counts, should only hear 200hz
|
||||||
playtime = 5;
|
playtime = 5;
|
||||||
play_continuous(x, fs, playtime)
|
play_continuous(x, fs, playtime)
|
@ -1,5 +1,8 @@
|
|||||||
function output = amplify(input, multiplier)
|
function output = amplify(input, multiplier)
|
||||||
%Amplifies the signal by multiplier
|
%input: a 1D array representing the sound signal in the time domain
|
||||||
%By Conner Hsu
|
%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;
|
output = input*multiplier;
|
||||||
end
|
end
|
@ -1,5 +1,6 @@
|
|||||||
function output = reverse(input)
|
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
|
%By Conner Hsu
|
||||||
output = flip(input);
|
output = flip(input);
|
||||||
end
|
end
|
Reference in New Issue
Block a user