# Path: mingus/midi/fluidsynth.py
# class FluidSynthSequencer(Sequencer):
# 	def init(self):
# 	def __del__(self):
# 	def start_audio_output(self, driver=None):
# 	def load_sound_font(self, sf2):
#         def play_event(self, note, channel, velocity):
#         def stop_event(self, note, channel):
#         def cc_event(self, channel, control, value):
#         def instr_event(self, channel, instr, bank):
# def init(sf2, driver = None):
# def play_Note(note, channel = 1, velocity = 100):
# def stop_Note(note, channel = 1):
# def play_NoteContainer(nc, channel = 1, velocity = 100):
# def stop_NoteContainer(nc, channel = 1):
# def play_Bar(bar, channel = 1, bpm = 120):
# def play_Bars(bars, channels, bpm = 120):
# def play_Track(track, channel = 1, bpm = 120):
# def play_Tracks(tracks, channels, bpm = 120):
# def play_Composition(composition, channels = None, bpm = 120):
# def control_change(channel, control, value):
# def set_instrument(channel, midi_instr):
# def stop_everything():
# def modulation(channel, value):
# def pan(channel, value):
# def main_volume(channel, value):
# def set_instrument(channel, instr, bank = 0):


import sys
import unittest
import time
from mingus.midi import fluidsynth
from mingus.containers import *
from mingus.midi.SequencerObserver import SequencerObserver
		self.assert_(fluidsynth.play_Tracks([t, t2], [0, 1]))


	def test_composition(self):
		m = MidiInstrument("Vibraphone")

		b = Bar()
		b + Note("C")
		b + Note("E")
		b + Note("A")
		b + "E"
		c = Bar()
		c + Note("G")
		c + "C"
		c + "E"
		c + Note("C", 5)

		t = Track()
		t + b
		t + c

		t2 = Track()
		t2 + b
		t2 + b

		t2.instrument = m

		c = Composition()
		c+ t
		c+ t2

# Path: mingus/midi/fluidsynth.py
# class FluidSynthSequencer(Sequencer):
# 	def init(self):
# 	def __del__(self):
# 	def start_audio_output(self, driver=None):
# 	def load_sound_font(self, sf2):
#         def play_event(self, note, channel, velocity):
#         def stop_event(self, note, channel):
#         def cc_event(self, channel, control, value):
#         def instr_event(self, channel, instr, bank):
# def init(sf2, driver = None):
# def play_Note(note, channel = 1, velocity = 100):
# def stop_Note(note, channel = 1):
# def play_NoteContainer(nc, channel = 1, velocity = 100):
# def stop_NoteContainer(nc, channel = 1):
# def play_Bar(bar, channel = 1, bpm = 120):
# def play_Bars(bars, channels, bpm = 120):
# def play_Track(track, channel = 1, bpm = 120):
# def play_Tracks(tracks, channels, bpm = 120):
# def play_Composition(composition, channels = None, bpm = 120):
# def control_change(channel, control, value):
# def set_instrument(channel, midi_instr):
# def stop_everything():
# def modulation(channel, value):
# def pan(channel, value):
# def main_volume(channel, value):
# def set_instrument(channel, instr, bank = 0):


# Path: unittest/test_fluidsynth.py
import sys
import unittest
import time
from mingus.midi import fluidsynth
from mingus.containers import *
from mingus.midi.SequencerObserver import SequencerObserver

		self.assert_(fluidsynth.play_Tracks([t, t2], [0, 1]))


	def test_composition(self):
		m = MidiInstrument("Vibraphone")

		b = Bar()
		b + Note("C")
		b + Note("E")
		b + Note("A")
		b + "E"
		c = Bar()
		c + Note("G")
		c + "C"
		c + "E"
		c + Note("C", 5)

		t = Track()
		t + b
		t + c

		t2 = Track()
		t2 + b
		t2 + b

		t2.instrument = m

		c = Composition()
		c+ t
		c+ t2

		self.assert_(fluidsynth.play_Composition(c))