published on
EarSketch helps you learn core topics in computer science, music, and music technology in a fun, engaging environment. You learn to code in Python or JavaScript, two of the most popular programming languages in the world, while manipulating loops, composing beats, and applying effects to a multi-track digital audio workstation. To learn more about EarSketch, visit http://earsketch.gatech.edu.
-------------------------------------------------------------
This music was generated by the following code:
# python code
# script_name: Round 2 competition
# author: Mandy D.
# description:
#I understand my voice in the song and I want my song to help embrace
#other people’s thoughts and dreams; to let go of the stereotypes. I see a lot of people being stereotyped and
#they kept them from following their dreams and I want to stop the stereotypes and bring equality to everyone.
#The sounds I used are calming and upbeat to lift the spirits up. I want my song to reach the ones in need of hope
#of achieving their dreams and help let go of daily struggles. WIth the community coming together, we can get
#rid of stereotypes and bring equality to everyone; examples could be videos, silent protests or even posters.
#Little things can help even my short song that wouldn't reach everyone I want. To be able to get rid of sterotypes would be
#a great honor as it plays a role in almost everyone's lives.
#
from earsketch import *
from random import randint
init()
tempo = randint(115,125) #randomly selects a tempo
setTempo(tempo)
print("Tempo:", tempo)
#user function
welcome=input("Welcome to my competition round 2 song! Please tell me your name!")
print("Welcome", welcome, "!") #user defined
#Beats
beat1="000--0+++---0++-"
beat3="00000+-----00000"
beat6="--0000+--0---0++"
#sounds
drum=[ENTREP_BEAT_DRUMBEAT,ENTREP_PERC_CYMBAL, ENTREP_PERC_KICK_2]
transition=[ENTREP_PERC_WHISTLE, MILKNSIZZ_MOODITO_CLASSIC_ELECTIC_PIANO, MILKNSIZZ_TRAPACITO_VOCAL_RUN, MILKNSIZZ_BOSSA_CLUBA_ROUND_SYNTH]
transition2=[MILKNSIZZ_AFROSENSE_CAN_SHAKER, DUBSTEP_SFX_006]
beats=[MILKNSIZZ_ADIOS_BOTTOM_KICK,MILKNSIZZ_ADIOS_DEMBOW_LOOP, MILKNSIZZ_ADIOS_DRUMS, MILKNSIZZ_AFROSENSE_LULLABY_BELLS, MILKNSIZZ_BOSSA_CLUBA_LANEZ_BASS, KHALID_NORM_PERC_KICK]
vocal=[MILKNSIZZ_ADIOS_HEY_VOX,ENTREP_VOX_JAYZ_BUILD, KHALID_NORM_VOX_LEAD_VERSE_5, KHALID_NORM_VOX_LEAD_VERSE_6, KHALID_NORM_VOX_LEAD_VERSE_1, KHALID_NORM_VOX_LEAD_VERSE_2, ENTREP_VOX_JAYZ_BUILD]
#intro
def intro(track, start, end): #intro(1, 3)
fitMedia(transition[0], track, start, end+3)
fitMedia(transition[1], track+1, start+2, end+7)
fitMedia(vocal[0], track+4, start+5, end+5)
fitMedia(transition[3], track+5, start+2, end+10)
setEffect(track+4, VOLUME, GAIN, -30, start+4.5, -1, end+6) #starts the intro lightly
#verse1
def verse1(track, start, end): #verse1(1.5,3.5)
fitMedia(vocal[2], track+7, start+7, end+9)
fitMedia(vocal[3], track+7, start+11, end+13)
setEffect(track+7, VOLUME, GAIN, -10, start+6.5, 0, end+5.5) #helps the verse slowly start ogff
#chorus
def chorus(track, start, end): #chorus(1,3)
fitMedia(transition2[1], track+9, start+16,end+15)
fitMedia(beats[3], track+9, start+10.5, end+12)
fitMedia(vocal[1], track+6, start+17, end+19)
makeBeat(drum[1], track+9, start+18, beat3)
#verse2
def verse2(track, start, end): #verse2(1,3)
fitMedia(vocal[4],track+12, start+23, end+25)
fitMedia(vocal[5], track+14, start+25, end+29)
fitMedia(beats[2], track+3, start+21, end+ 24)
fitMedia(beats[5], track+10, start+28, end+28)
#chorus2
def chorus2(track, start, end): #chorus2(30,35)
fitMedia(beats[3], track+9, start+3, end+2)
fitMedia(vocal[1], track+6, start+6, end+5)
fitMedia(transition2[1], track+13, start+5,end+1)
fitMedia(vocal[6], track+13, start+10, end+7)
makeBeat(drum[1], track+9, start+9, beat3)
#Outro
def outro(track, start, end): #outro(40, 45)
fitMedia(transition[0], track, start+8, end+4)
fitMedia(transition[1], track+1, start+2, end)
fitMedia(drum[0], track+3, start+3, end+1)
setEffect(track+1, VOLUME, GAIN, -20, start+1, -5, end+2.5)
setEffect(track, VOLUME, GAIN, -21, start+7.5, 0, end+3.3)
#transition
for start in range(1, 15):
fitMedia(beats[2], 4, start, start+1)
fitMedia(beats[0], 3, start, start+1)
fitMedia(beats[1], 9, start+5, start+6)
start+=1
for start in range(15, 28):
fitMedia(beats[0], 3, start, start+1)
fitMedia(beats[1], 9, start+5, start+6)
fitMedia(beats[4], 12, start+3, start+4)
makeBeat(transition2[0], 11, start+1, beat1)
for start in range(28, 40):
fitMedia(beats[2], 4, start, start+1)
fitMedia(beats[0], 3, start, start+1)
fitMedia(beats[1], 9, start+5, start+6)
setEffect(4, VOLUME, GAIN, -10, 23, 0, 25)
makeBeat(beats[5], 11, start+3, beat6)
intro(1, 1, 3)
verse1(1, 1.5,3.5)
chorus(1, 1,3)
verse2(1, 1,3)
chorus2(1, 30,35)
outro(1, 40, 45)
finish()
-------------------------------------------------------------
To load this track in EarSketch, visit https://earsketch.gatech.edu/earsketch2/?sharing=43fNpWCiIXhxhP-sPy-Hfg
-------------------------------------------------------------