DIGITAL AUDIO WORKSTATION

CODE EDITOR


import random
from earsketch import *

#input and tempo
input = input("pick any number 1-6")
int_input = int(input)
value = int_input-1
init()
setTempo(120)

#List of songs
Funk_list= ["YG_FUNK_COWBELL_3","YG_FUNK_KICK_8","YG_FUNK_BASS_3","YG_FUNK_BRASS_5","YG_FUNK_CLAPS_2"]
Mix_list = ["MILKNSIZZ_ADIOS_HEY_VOX","YG_TECHNO_VOX_1","AK_UNDOG_808_1", "AK_UNDOG_BASS_4", "RD_ELECTRO_DRUM_PART_2"]
House_list = ["RD_UK_HOUSE_MAINBEAT_8","RD_UK_HOUSE__ARPPLUCK_1","RD_UK_HOUSE_WURLITZER_4"]
Winds_list = ["ENTREP_THEME_ORCH","RD_TRAP_HORNLEAD_1"]
recommended_list = ["RD_RNB_PIANO_1","RD_POP_ARPBASS_3","RD_WORLD_PERCUSSION_DRUMPART_8","RD_FUTURE_DUBSTEP_PERC_1","RD_ELECTRO_ARPLEAD_1"]
Classical_list=["RD_CINEMATIC_SCORE_DRUMPART_22", "RD_CINEMATIC_SCORE_DRUMPART_1", "RD_CINEMATIC_SCORE_HARP_1","RD_CINEMATIC_SCORE_DRUMPART_6"]
List_of_songs = ["MILKNSIZZ_AFROSENSE_CLOSED_HAT", "AK_UNDOG_808_2", "AK_UNDOG_PIANO_2", "AK_UNDOG_PERC_HATS_4", "Y25_DRUMPAD_1", "AK_UNDOG_CLAPS_SNAPS_1", "AK_UNDOG_CLAPS_SNAPS_1"]
List_len= len(List_of_songs)

#list of the list to get the for loop to work
list_list= [Funk_list, Mix_list, House_list, recommended_list, Classical_list , List_of_songs]
song_slct= list_list[value]
len_song_slct = len(song_slct)
track = 0
counter = 0
random_int = random.randint(1, List_len)
length = 0

#main for loop!! I got rid of all the repeated stuff
for songs in song_slct:
if length <= len_song_slct:
length += 1
end= random.randint(11,25)
track += 1
IMPORT TO EDIT