Loading...
DIGITAL AUDIO WORKSTATION
CODE EDITOR
1
EarSketch
Advanced
Variables
Logic
Operators
Control Flow
"use strict";
// javascript code
// script_name: YVIP Entry
//
// author: Tairan He
// description: My entry for YVIP Fall 2021. This is my first time coding with JS. I remixed "Entrepreneur" to what I thought sounded nice.
// I included Pharrell's whispering line as well as Jayz's verse as they both deliver a powerful message on equality.
init();
setTempo(90);
//declaring variables and instruments
var Snare = OS_KICK06;
var Hat = OS_CLOSEDHAT01;
var RevCrash = YG_EDM_REVERSE_CRASH_1;
var Crash = ENTREP_PERC_ORCH_CRASH;
var beat1 = "-00-00+++00--0-0" ;
var beat2 = "0--0--000--00-0-" ;
var jzPrefix = "ENTREP_VOX_JAYZ_VRS_"; //setting prefixes for my custom input method
var pwPrefix = "ENTREP_VOX_PHARRELL_WHSP_";
//placing fills
makeBeat(Snare, 3,5, "--------0+0+0000" );
makeBeat(Snare, 3,9, "--------0+0+0000" );
fitMedia(Crash, 5,6,7);
fitMedia(Crash, 5,10,11);
fitMedia(Crash, 5,26,27);
fitMedia(Snare, 8,6,6.25);
fitMedia(Snare, 8,10,10.25);
makeBeat(Snare, 8,25, "--------0+0+0000" );
fitMedia(OS_CLOSEDHAT01, 4,5,9);
makeBeat(Hat,4,9, "0---0---0-0-0000" );
//INTRO
fitMedia(ENTREP_THEME_OUTRO_TRUMPET, 1, 1.75, 9);
for(var measure=0; measure<4; measure++)
{
var x = measure + 2;
fitMedia(pwPrefix+x,2,measure * 2 + 2, measure * 2 + 4); //first whispering line, Pharrel delivering a powerful description of current societal conditions of african americans.
//This is using my custom input method
IMPORT TO EDIT
CURRICULUM
Loading curriculum...