Loading...
DIGITAL AUDIO WORKSTATION
CODE EDITOR
1
EarSketch
Advanced
Variables
Logic
Operators
Control Flow
// description:
setTempo(140);
var x = readInput("What is your ending measure?");
fitMedia(DUBSTEP_DRUMLOOP_MAIN_001, 1, 1, parseFloat(x));
var rand = Math.random();
var myrand = Math.floor(rand*10);
println(myrand);
var mood = readInput("What is your current mood? (happy/sad) ");
if (mood === "happy") {
// fitMedia(HIPHOP_TRAPHOP_BEAT_002, 2, 1, 10);
fitMedia(ENTREP_THEME_BRASS, 3, 1, 10)
} else {
fitMedia(ENTREP_THEME_BASS_1, 2, 1, 10)
}
IMPORT TO EDIT
CURRICULUM
Loading curriculum...