cornedriesprong / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
0 stars 0 forks source link

Mingus tutorial 1 #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I enter the code in Python 2.6 as following

from mingus.midi import fluidsynth
fluidsynth.init("AJH_Piano.sf2", "alsa")
fluidsynth.play_Note(Note("C-5"))

when I run it, I got error as following:

Traceback (most recent call last):
  File "/home/chunzhang/Projects/Python/Mingus/PlayNote.py", line 3, in <module>
    fluidsynth.play_Note(Note("C-5"))
NameError: name 'Note' is not defined

I am very new the Python and Mingus, please help.

Original issue reported on code.google.com by chunzhan...@gmail.com on 16 Apr 2012 at 3:23

GoogleCodeExporter commented 9 years ago
Same issue, please help.

Original comment by emanat...@gmail.com on 1 Aug 2012 at 3:17

GoogleCodeExporter commented 9 years ago
add the following on top of your code:

from mingus.containers.note import Note

Original comment by stefaan....@gmail.com on 30 Dec 2012 at 12:08