duration = '' current_track = 0 may_rotate = True leadinstr = 1 backinginstr = 1 fs = pyfluidsynth.Synth(gain=2) fs.start(driver="alsa") sfid = fs.sfload("/usr/share/sounds/sf2/FluidR3_GM.sf2") fs.program_select(0, sfid, 0, 0) fs.program_change(2, 1) fs.program_change(1, 1) fs.program_change(3, 123) fs.program_change(9, 48) lcd = LCD.Lcd(E=23, RS=24, SDA=12, SCL=25) ips = check_output(['hostname', '--all-ip-addresses']).decode("utf-8") ip = ips.split(" ") print(ip[1]) lcd.clear_display() LockRotary = threading.Lock() now_date = '' noten = {} index_note_in_track = 0 now_time = 0 scalenotes = {} idnoten_in_scale_midi = {} place_inKey_notename = {} interval = 1