61.7k views
4 votes
Assignment 10: Create a Song of the Summer

It's your turn to think about what song will capture the heart of the summer. What makes one song an automatic sensation and another song fade into the background? This is what you will need to determine in this challenge. Listen to some of the "Songs of the Summer" of years past, and think about these questions:


Are there instruments that the songs you listened to have in common?

Are there any rhythms that are similar across any of the songs?

How do these songs remind you of the stereotypical elements of summer: vacation, beaches, friends, late nights?



For this assignment, you will code three songs in EarSketch, each incorporating the following Python commands:


You must require and utilize input from a user using the EarSketch AP function readInput(). This should prompt users to select the genre they want to listen to, and once selected, should play one of your three songs that matches the genre chosen.

You must use some form of randomization in your songs, using the randint() function.

You must use a conditional statement in your songs, using an if, else, elif statement.

You must use both of the EarSketch functions fitMedia() and setEffect() for an effect in your script (such as a fade or distortion).

You must use string operations (concatenation or splicing) to create your own beat, using the EarSketch function makeBeat().

You must use for loops to add repetition to your code.

You must use at least one user-defined (custom) function to create musical sections for your songs.

In addition to the required coding components above, your program must also meet the following general requirements:


Each song must be at least 16 measures long.

Each song should have at least three tracks.

Each song should include different elements unique to a music genre (different beats, instruments, or sound clips that would allow a listener to tell songs apart from one another).

Each song should include a sound clip from from Ciara or Common, found in the EarSketch library.

You will need to create a new script for your code in your EarSketch account, title it appropriately, and use sound clips from the EarSketch library or sounds you have recorded or uploaded on your own. Your final code will need to run without any errors, and play successfully in the digital audio workstation (DAW) when opened by your teacher

User Rivya
by
8.9k points

1 Answer

4 votes

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!

No related questions found