DIGITAL AUDIO WORKSTATION

CODE EDITOR

# title: My Music
# author:
# description:

from earsketch import *
setTempo(120)
fitMedia(AK_UNDOG_BASS_2, 1, 1, 9);

def add_snares(trackNum):
drum1 = OS_SNARE01
beat_string = "0--00--0"
for measure in range(8):
makeBeat(drum1, trackNum, measure+1, beat_string)
print(measure+1)

add_snares(2)

IMPORT TO EDIT