Question: Write a function namerazorSynththat returns a synthesized instrument with: A fat sawtooth oscillator An attack of 0.007 A decay of 0.12 A sustain of 0.05
Write a function name"razorSynth"that returns a synthesized instrument with: A fat sawtooth oscillator An attack of 0.007 A decay of 0.12 A sustain of 0.05 A release of 1.0
You should be able to replace you basic synthesizer with this new instrument and hear the difference.
This is in JavaScript, please help me.
ations Places System Mon Oct 22, 4:06 PM Li Infinite Questions Mozilla Firefox B . Your persona infinite Questions x Tone.js x Google Translate a Ihttps:fury.cse.buffalo.eduquestlaby nxu play a B4 half note 1 second after the function call. If everything is working you will be able to hear this note in your headphones Part B Playing a Song (6 points) Write a function named "playSong that takes 2 parameter which are, in order 1. A synthesizer object (ex. The output of your basicSynth function) 2. A array of notes defined as objects with key-value pairs: o A key of mote with a string value (ex. B4) o A key of "duration" with a string value (ex. 2n) a floating point number as a value which will be 4 times the number of second to wait belore playing the note. You must use 4 in your submission, but wrnting the function in this way allows you to change the tempo of the song by dividing/mutiplying by ditterent This function will trigger an attack and release for all the notes in the array on the provided syntheszer Sample array of notes for testing: Inote "G3"duration" Bn time 5)note" G3" duration 8n"-time 5,66)f note3 duration":8m, aime 6 fnote "F3-duration 4n"-time 11),fnote G3 duration 8n -ime 13)note F3 "duration En'time 14.33)fnote "G3duratio2n ime:1 duration 8m+time 6.33Cnote G3 "duration 4n" time":7fnote E3"duration 4n" "time 9), Part C Changing Instruments (4 points) Write a function name razorsynth" that retums a synthesized instrument with: . A fat sawtooth oscillator . An attack of 0.007 e A decay of 0.12 . A sustain of 0.05 . A release of 1.0 You should be able to replace you basic synthesizer with this new instrument and hear the difference Submission Download your project as a zip file and submit to AutoLab. Make sure the JavaScript file containing your functions is named sounds.js tions Mo ations Places System Mon Oct 22, 4:06 PM Li Infinite Questions Mozilla Firefox B . Your persona infinite Questions x Tone.js x Google Translate a Ihttps:fury.cse.buffalo.eduquestlaby nxu play a B4 half note 1 second after the function call. If everything is working you will be able to hear this note in your headphones Part B Playing a Song (6 points) Write a function named "playSong that takes 2 parameter which are, in order 1. A synthesizer object (ex. The output of your basicSynth function) 2. A array of notes defined as objects with key-value pairs: o A key of mote with a string value (ex. B4) o A key of "duration" with a string value (ex. 2n) a floating point number as a value which will be 4 times the number of second to wait belore playing the note. You must use 4 in your submission, but wrnting the function in this way allows you to change the tempo of the song by dividing/mutiplying by ditterent This function will trigger an attack and release for all the notes in the array on the provided syntheszer Sample array of notes for testing: Inote "G3"duration" Bn time 5)note" G3" duration 8n"-time 5,66)f note3 duration":8m, aime 6 fnote "F3-duration 4n"-time 11),fnote G3 duration 8n -ime 13)note F3 "duration En'time 14.33)fnote "G3duratio2n ime:1 duration 8m+time 6.33Cnote G3 "duration 4n" time":7fnote E3"duration 4n" "time 9), Part C Changing Instruments (4 points) Write a function name razorsynth" that retums a synthesized instrument with: . A fat sawtooth oscillator . An attack of 0.007 e A decay of 0.12 . A sustain of 0.05 . A release of 1.0 You should be able to replace you basic synthesizer with this new instrument and hear the difference Submission Download your project as a zip file and submit to AutoLab. Make sure the JavaScript file containing your functions is named sounds.js tions Mo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
