main.py
393 Bytes
import python_midi
import dico_notes
import sys
import thread_fd
def main(args):
print "Bienvenue dans le programme de traitement des fichiers MIDI"
print '\n'
(p,v,t,f,r) = python_midi.midi_treatment_file("/home/pi/python-midi/mary.mid")
thread1 = thread_fd.DD(18,f,t,r)
thread2 = thread_fd.DD(13,f,t,r)
thread1.start()
thread2.start()
thread1.join()
thread2.join()
main(sys.argv)