// LIVE CODE MUSIC
AI DJ Active
AI DJ
RUN
STOP ALL
// code.js - Ctrl+Enter to evaluate
// Welcome to Live Code Music! // Press Ctrl+Enter to run your code // Set the tempo bpm(130) // Create a kick drum pattern kick = synth('kick') .pattern('x _ _ _ x _ _ _ x _ _ _ x _ x _') .gain(0.8) // Hihat pattern hihat = synth('hihat') .pattern('_ x _ x _ x _ x _ x _ x _ x _ x') .gain(0.3) // Snare on 2 and 4 snare = synth('snare') .pattern('_ _ _ _ x _ _ _ _ _ _ _ x _ _ _') .gain(0.5) // Bass synth with notes bass = synth('saw') .notes('C2 _ C2 _ E2 _ G2 _ C2 _ C2 _ A1 _ B1 _') .filter(400) .gain(0.4) // Lead melody lead = synth('triangle') .notes('C4 E4 G4 C5 B4 G4 E4 C4') .attack(0.1) .release(0.3) .gain(0.25) // Add some reverb reverb(0.3) // Start playing! play()
// oscilloscope
// spectrum
BPM
130
Master
70%
Filter
2000