Type your name to play sounds
- Due Apr 14, 2020 by 10am
- Points 20
- Submitting a text entry box, a website url, a media recording, or a file upload
Write a program, in JavaScript or Max (or both!), that plays sounds in response to you typing your name.
To play multiple sounds in JavaScript, you will likely need multiple Audio objects (or at least refer to different source files), and you'll need for different key
s (or keyCode
s) to behave in different ways. In Max, you will likely need multiple sfplay~ objects, or will need to load multiple sound cues with the preload message, and you'll need to look for different ASCII values.
Once you have a good idea of how to do the basics, use your creativity to make the result of your typing sound interesting or musical (by whatever criteria you use to assess whether something is "interesting" or "musical"). Because you want the sounds to occur in response to you typing your name, which is probably something you do pretty quickly, very short sounds might be most appropriate. You could use related pitched sounds to play a melody, you could use diverse percussive sounds to make a drumset, etc. Pretty much anything is fair game. Set yourself a feasible challenge and try to accomplish it.
Come to class prepared to "perform" your masterpiece.
Deposit your completed work in the Canvas dropbox associated with this assignment. In the case of Javascript, your submission should at the least include a .html file and a .js file. In the case of Max your submission should at least include a .maxpat or .maxproj file.
If your HTML/JavaScript program uses local files rather than hyperlinks to audio files on the Web, you'll need to include those audio files with your submission. Likewise, if your Max program uses sound files that aren't included with the Max application itself, you should include them.
Important! If your submission includes more than one file (as it assuredly will), you must compress them together as a .zip archive before submitting them on Canvas. If you neglect to do this, each of your files will have your name prepended to it, and as a result, your program will fail to work.
P.S. You're also welcome to host your project on a website of your own (for example, on your personal GitHub account) and submit the URL(s) in Canvas.