In this assignment, you are tasked with creating a "Song of the Summer" using EarSketch, a coding platform for creating music. The goal is to create three songs that capture the essence of summer and incorporate various coding elements.
Here are the specific requirements for your songs:
1. User Input: Your code should prompt the user to select a genre they want to listen to. This can be done using the EarSketch AP function readInput(). Once the genre is selected, your code should play one of the three songs that match the chosen genre.
2. Randomization: You must incorporate randomization into your songs using the randint() function. This will add an element of surprise and variety to your music.
3. Conditional Statements: You need to use conditional statements (if, else, elif) in your songs. This will allow you to create different musical sections based on certain conditions or criteria.
4. Effects: You must use the EarSketch functions fitMedia() and setEffect() to add effects to your songs. This can include fades, distortions, or any other sound manipulation techniques you choose.
5. String Operations: You are required to use string operations such as concatenation or splicing to create your own beat using the makeBeat() function. This will give your songs a unique rhythm and style.
6. For Loops: You must use for loops to add repetition to your code. This can be used to repeat certain musical sections or create patterns in your songs.
7. User-Defined Function: You need to create at least one custom function to create musical sections for your songs. This will allow you to encapsulate specific musical ideas or patterns into reusable code blocks.
In addition to the coding components, your songs should also meet these general requirements:
- Each song must be at least 16 measures long.
- Each song should have at least three tracks, allowing for different instruments or sound elements.
- Each song should incorporate different elements unique to a specific music genre. This can include different beats, instruments, or sound clips that distinguish each song from the others.
- Each song should include a sound clip from Ciara or Common, which can be found in the EarSketch library.
To complete this assignment, you will need to create a new script in your EarSketch account, title it appropriately, and use sound clips from the EarSketch library or your own recorded/uploaded sounds. Your final code should run without any errors and successfully play in the digital audio workstation (DAW) when opened by your teacher.
Remember to be creative and have fun with your songs. Experiment with different genres, instruments, and effects to create a truly memorable "Song of the Summer." Good luck!