Merge pull request #37 from ltcptgeneral/DarellsAnnex

Updating Descriptions
This commit is contained in:
darrll27 2021-12-09 13:34:22 -08:00 committed by GitHub
commit 9cb429820e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 82 additions and 0 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -4,6 +4,7 @@
%2. It needs to ramp down to a set sustained frequency over the decay time e.g. 160Hz < 200Hz %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 %3. It maintains this 160Hz until the release time
%4. Release time: It decays from 160Hz further all the way back to 0Hz. %4. Release time: It decays from 160Hz further all the way back to 0Hz.
%This envelope uses logarithmic calculations
% CONTRIBUTORS: % CONTRIBUTORS:
% Person1: Darell % Person1: Darell

View File

@ -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 ;

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);