Exemplo n.º 1
0
 def play_Note(self, note, channel = 0, velocity = 100):
     if MidiSequencer.play_Note(self, note, channel, velocity):
        print self.i, "(",note,'--',fixed[notes.note_to_int(note.name)],
        sys.stdout.flush()
        self.i += 1
        return True
Exemplo n.º 2
0
 def stop_Note(self, note, channel = 0):
     if MidiSequencer.stop_Note(self, note, channel):
        print ")"
        sys.stdout.flush()
        return True
Exemplo n.º 3
0
 def __init__(self, sf2, driver = None):
    MidiSequencer.__init__(self)
    self.start_audio_output(driver)
    self.load_sound_font(sf2)
    self.fs.program_reset()
    self.i = 0