diff --git a/README.md b/README.md index dbdaacc..72cc9c9 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,26 @@ -# ece45-project +# ECE45-project + Audio synthesizer project created by ECE 45 students, written using the MATLAB language and MATLAB GUI + + Will add member names shortly + + ## Function Prototypes + fuction x = envelope(input, fs, period, attack , decay, sustain, release) where attack, decay, sustain release are percentages between 0 to 1 of the period where period is the time in seconds function x = generate_wave(amplitude, frequency, phase, fs, duration, duty) - function output_timedomain = Filter(input_soundin_timedomain, Fs, LOW, MED, HIGH) -where LOW, MED, HIGH are user-selected variables of any value \ No newline at end of file +where LOW, MED, HIGH are user-selected variables of any value + + ## Useful websites + + - https://learningsynths.ableton.com + - https://learningsynths.ableton.com/en/playground + - https://blog.demofox.org/diy-synthesizer/ + - http://portaudio.com/ + - https://ccrma.stanford.edu/software/stk/ + - https://cycling74.com/products/max + - http://msp.ucsd.edu/software.html \ No newline at end of file diff --git a/src/generate_sine.m b/src/generate_sine.m index 76c4a09..4add313 100644 --- a/src/generate_sine.m +++ b/src/generate_sine.m @@ -1,4 +1,4 @@ -function x = generate_sine(amplitude, frequency, phase, fs, duration) +function x = generate_sine(amplitude, frequency, phase, fs, duration, duty) %GENERATE_SINE:Arthur Lu returns a matrix of sampled sine wave, where the %phase shift is in number of periods x = zeros(1, fs * duration);