Updating Descriptions
This commit is contained in:
parent
11df159351
commit
8c8570ea75
@ -1,3 +1,11 @@
|
|||||||
|
%Written by Darell
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
%Pass-through function used by app
|
||||||
|
|
||||||
function output = AmpEnvelopeSelect(input, Fs, attack,decay,sustain,release,number)
|
function output = AmpEnvelopeSelect(input, Fs, attack,decay,sustain,release,number)
|
||||||
if(number == "Option 1")
|
if(number == "Option 1")
|
||||||
output = DarellAmplitudeEnvelope(input, Fs, attack,decay,sustain,release);
|
output = DarellAmplitudeEnvelope(input, Fs, attack,decay,sustain,release);
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
%Written by Darell
|
||||||
|
%Creates a Linear Amplitude Envelope
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
% fs is the sampling frequency
|
||||||
|
% attack, decay, release are in percentages of the period
|
||||||
|
% sustain is in the percentage of amplitude
|
||||||
|
|
||||||
function output = DarellAmplitudeEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
function output = DarellAmplitudeEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||||
len = length(input);
|
len = length(input);
|
||||||
T = (len-1)/Fs;
|
T = (len-1)/Fs;
|
||||||
|
@ -1,4 +1,19 @@
|
|||||||
%Written by Darell and Anne
|
%Written by Darell and Anne
|
||||||
|
%If there is a frequency of 200Hz:
|
||||||
|
%1. it needs to ramp up a frequency from 0Hz to the 200Hz over the attack time
|
||||||
|
%2. It needs to ramp down to a set sustained frequency over the decay time e.g. 160Hz < 200Hz
|
||||||
|
%3. It maintains this 160Hz until the release time
|
||||||
|
%4. Release time: It decays from 160Hz further all the way back to 0Hz.
|
||||||
|
%This envelope uses linear calculations
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
% Person2: Anne
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
% fs is the sampling frequency
|
||||||
|
% attack, decay, release are in percentages of the period
|
||||||
|
% sustain is in the percentage of amplitude
|
||||||
|
|
||||||
function output = DarellAnneLinearPitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
function output = DarellAnneLinearPitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||||
len = length(input);
|
len = length(input);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
%Written by Darell and Anne
|
%Written by Darell and Anne
|
||||||
|
%This envelope uses linear calculations
|
||||||
|
|
||||||
function output = DarellAnnePitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
function output = DarellAnnePitchEnvelope(input, Fs, attack,decay,sustain,release) %percentages for attack, decay, sustain, release
|
||||||
len = length(input);
|
len = length(input);
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
%Written by Darell
|
||||||
|
%uses fourier transform to get the series of all signals
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
% fs is the sampling frequency
|
||||||
|
% y is the signal input
|
||||||
|
% LOW and HIGH are used for the band of frequency
|
||||||
|
% MEDIUM IS NOT USED
|
||||||
|
|
||||||
function output_y = DarellbandpassFilter(y,Fs,LOW,MED,HIGH)
|
function output_y = DarellbandpassFilter(y,Fs,LOW,MED,HIGH)
|
||||||
Len = length(y);
|
Len = length(y);
|
||||||
F = Fs * (-Len/2 : (Len/2 - 1))/Len ;
|
F = Fs * (-Len/2 : (Len/2 - 1))/Len ;
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
%Written by Darell
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
% fs is the sampling frequency
|
||||||
|
% input is the signal input
|
||||||
|
% EQplot is the curve generated by the EQ in the app. it should look like /----\ when everthing is set to 1
|
||||||
|
|
||||||
|
|
||||||
function output = Equalizer_Darell(input,EQplot,Fs)
|
function output = Equalizer_Darell(input,EQplot,Fs)
|
||||||
%It's an EQ written by Darell
|
%It's an EQ written by Darell
|
||||||
% Split into frequencies and multiply by EQ
|
% Split into frequencies and multiply by EQ
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
%Written by Darell
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
%Pass-through function used by app
|
||||||
|
|
||||||
function output = FilterSelect(input,Fs,LOW,MED,HIGH,number)
|
function output = FilterSelect(input,Fs,LOW,MED,HIGH,number)
|
||||||
if(number == "Option 1")
|
if(number == "Option 1")
|
||||||
output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH);
|
output = DarellbandpassFilter(input,Fs,LOW,MED,HIGH);
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
%Written by Darell
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
%Pass-through function used by app
|
||||||
|
|
||||||
function output = PitchEnvelopeSelect(input, Fs, attack,decay,sustain,release,number)
|
function output = PitchEnvelopeSelect(input, Fs, attack,decay,sustain,release,number)
|
||||||
if(number == "Option 1")
|
if(number == "Option 1")
|
||||||
output = DarellAnnePitchEnvelope(input, Fs, attack,decay,sustain,release);
|
output = DarellAnnePitchEnvelope(input, Fs, attack,decay,sustain,release);
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
%Written by Darell
|
||||||
|
|
||||||
|
% CONTRIBUTORS:
|
||||||
|
% Person1: Darell
|
||||||
|
|
||||||
|
% DOCUMENTATION:
|
||||||
|
%Pass-through function used by app
|
||||||
|
|
||||||
function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration, duty,number)
|
function output = SoundGeneratorSelect(amplitude, frequency, phase, fs, duration, duty,number)
|
||||||
if(number == "Option 1")
|
if(number == "Option 1")
|
||||||
output = generate_sine(amplitude, frequency, phase, fs, duration, duty);
|
output = generate_sine(amplitude, frequency, phase, fs, duration, duty);
|
||||||
|
Reference in New Issue
Block a user