Пример #1
0
 def play(self):
     fluidsynth.set_instrument(1, 73) # chords
     fluidsynth.set_instrument(2, 32) # bass
     fluidsynth.set_instrument(3, 1, 128) # drums
     fluidsynth.main_volume(1, 50)
     fluidsynth.main_volume(2, 100)
     fluidsynth.main_volume(3, 30)
     for bars in self._next_bar():
         fluidsynth.play_Bars(bars, [1, 2, 3], 110)
         yield self.current
Пример #2
0
 def play(self):
     fluidsynth.set_instrument(1, 73)  # chords
     fluidsynth.set_instrument(2, 32)  # bass
     fluidsynth.set_instrument(3, 1, 128)  # drums
     fluidsynth.main_volume(1, 50)
     fluidsynth.main_volume(2, 100)
     fluidsynth.main_volume(3, 30)
     for bars in self._next_bar():
         fluidsynth.play_Bars(bars, [1, 2, 3], 110)
         yield self.current
Пример #3
0
 def test_changing_bpm_bars(self):
     b = Bar()
     n = NoteContainer(["C", "E", "G"])
     n.bpm = 150
     b + NoteContainer(["A", "C", "E"])
     b + Note("E")
     b + n
     b + Note("Eb")
     self.assertTrue(fluidsynth.play_Bars([b, b], [1, 2], 120))
Пример #4
0
	def test_changing_bpm_bars(self):
		b = Bar()
		n = NoteContainer(["C", "E", "G"])
		n.bpm = 150
		b + NoteContainer(["A", "C", "E"])
		b + Note("E")
		b + n
		b + Note("Eb")
		self.assert_(fluidsynth.play_Bars([b, b], [1, 2], 120))
Пример #5
0
 def test_changing_bpm_bars(self):
     b = Bar()
     n = NoteContainer(['C', 'E', 'G'])
     n.bpm = 150
     b + NoteContainer(['A', 'C', 'E'])
     b + Note('E')
     b + n
     b + Note('Eb')
     self.assert_(fluidsynth.play_Bars([b, b], [1, 2], 120))
Пример #6
0
 def test_changing_bpm_bars(self):
     b = Bar()
     n = NoteContainer(['C', 'E', 'G'])
     n.bpm = 150
     b + NoteContainer(['A', 'C', 'E'])
     b + Note('E')
     b + n
     b + Note('Eb')
     self.assert_(fluidsynth.play_Bars([b, b], [1, 2], 120))
Пример #7
0
 def test_playbars(self):
     b = Bar()
     b + Note("C")
     b + Note("E")
     b + Note("G")
     c = Bar()
     c + Note("Eb")
     c + "Gb"
     c + "B"
     c + Note("C", 5)
     self.assertTrue(fluidsynth.play_Bars([b, c], [1, 2]), 0)
Пример #8
0
	def test_playbars(self):
		b = Bar()
		b + Note("C")
		b + Note("E")
		b + Note("G")
		c = Bar()
		c + Note("Eb")
		c + "Gb"
		c + "B"
		c + Note("C", 5)
		self.assert_(fluidsynth.play_Bars([b, c], [1, 2]), 0)
Пример #9
0
 def test_playbars(self):
     b = Bar()
     b + Note('C')
     b + Note('E')
     b + Note('G')
     c = Bar()
     c + Note('Eb')
     c + 'Gb'
     c + 'B'
     c + Note('C', 5)
     self.assert_(fluidsynth.play_Bars([b, c], [1, 2]), 0)
Пример #10
0
 def test_playbars(self):
     b = Bar()
     b + Note('C')
     b + Note('E')
     b + Note('G')
     c = Bar()
     c + Note('Eb')
     c + 'Gb'
     c + 'B'
     c + Note('C', 5)
     self.assert_(fluidsynth.play_Bars([b, c], [1, 2]), 0)