EarSketch

// javascript code
// script_name:Learning Javascript
//
// author: emazing beats
// description: homework 1
//

init();
setTempo(120);

//.variables
var clap=Y45_CLAP_1
var beat=HOUSE_MAIN_BEAT_003

//. Claps
fitMedia(HOUSE_BREAKBEAT_006,1,1,3);
fitMedia(clap,2,1,3);
fitMedia(beat,3,2,3)

//.Build
fitMedia(HOUSE_MAIN_BEAT_004,4,3,5)
fitMedia(HOUSE_MAIN_BEAT_002,5,3,5)
fitMedia(HOUSE_MAIN_BEAT_009,8,5,8)
fitMedia(HOUSE_MAIN_BEAT_010,9,7,8)

//Buildpt2
fitMedia(HOUSE_MAIN_BEAT_005,6,5,8)
fitMedia(HOUSE_MAIN_BEAT_008,7,5,8)


//.Buildpt3
fitMedia(HOUSE_BREAK_FILL_002,10,8,10)
fitMedia(HOUSE_BREAK_FILL_001,11,8,10)
fitMedia(HOUSE_BREAK_FILL_003,12,8,10)

//. The drop
fitMedia(HOUSE_MAIN_BEAT_001,13,10,12)


//.effects
setEffect(13, VOLUME, GAIN, 12.0)
setEffect(13, DISTORTION, MIX, 0.4)

finish();

Comments

Popular posts from this blog

Bootstrap Studio [demo]

A Case Study (?) of a JavaScript Problem

UI Animations Medium Post