<filename>master/python/shortsong_arpeggio.py
from time import sleep
from serialcomm import *

waittime = .15

try:
	for _ in range(2):
		# C minor arpeggio
		for _ in range(4):
			sendNote(14, 0)
			sendNote(17, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(17, 0)
			sendNote(21, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(21, 0)
			sendNote(14, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(9, 0)
			sendNote(21, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)

		# B arpeggio
		for _ in range(4):
			sendNote(19, 0)
			sendNote(9, 1)
			sleep(waittime)
			sendNote(16, 0)
			sendNote(13, 1)
			sleep(waittime)
			sendNote(13, 0)
			sendNote(16, 1)
			sleep(waittime)
			sendNote(9, 0)
			sendNote(19, 1)
			sleep(waittime)

	# End chord
	sendNote(14, 0)
	sendNote(17, 1)
	sleep(waittime*4)
	sendNote(0, 0)
	sendNote(0, 1)

except:
	# Reset on early termination/crash
	sendNote(0, 0)
	sendNote(0, 1)

<filename>master/python/shortsong_arpeggio.py
from time import sleep
from serialcomm import *

waittime = .15

try:
	for _ in range(2):
		# C minor arpeggio
		for _ in range(4):
			sendNote(14, 0)
			sendNote(17, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(17, 0)
			sendNote(21, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(21, 0)
			sendNote(14, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)
			sendNote(9, 0)
			sendNote(21, 1)
			sleep(waittime)
			sendNote(0, 0)
			sendNote(0, 1)

		# B arpeggio
		for _ in range(4):
			sendNote(19, 0)
			sendNote(9, 1)
			sleep(waittime)
			sendNote(16, 0)
			sendNote(13, 1)
			sleep(waittime)
			sendNote(13, 0)
			sendNote(16, 1)
			sleep(waittime)
			sendNote(9, 0)
			sendNote(19, 1)
			sleep(waittime)

	# End chord
	sendNote(14, 0)
	sendNote(17, 1)
	sleep(waittime*4)
	sendNote(0, 0)
	sendNote(0, 1)

except:
	# Reset on early termination/crash
	sendNote(0, 0)
	sendNote(0, 1)

# C minor arpeggio # B arpeggio # End chord # Reset on early termination/crash