1
Mar
mingus, mingus, mingus 0.4!
Finally, after almost five months, version 0.4 of mingus the music package for Python has been released. A lot has happened since version 0.3:
  • A separate midi sub-package for playing, reading and writing midi data was added; The reading part is still buggy and should not be relied upon, but the rest works like a charm.
  • The fluidsynth module now uses the pyFluidSynth bindings instead of depending on a running server to play notes.
  • A new module named value was added to make dealing with note durations easier.
  • Added chord substitution algorithms in the progressions module.
  • More functions, updates and bugfixes in the existing packages (see the change log for detailed information).
  • Up to date documentation, tutorials and exercises.
  • Packages for Ubuntu and Arch (NB. these packages are not maintained by me and may not always be up to date).

Furthermore, the mailing list and bug tracker have been seeing some activity in the past couple of months, which has been great for finding and squashing bugs and getting a sense of what people are doing with mingus. I hope this will continue in the future and I would like to thank everybody who contributed.

mingus' homepage



7 Comments


1
default directory
Written by: zslevi
2009-09-01 00:07:53
I put in a file the follwing:

import mingus.core.notes as notes
from mingus.containers.Note import Note
from mingus.midi import fluidsynth
fluidsynth.init("C:/Program Files/QSynth/Piano_Yamaha.sf2")
fluidsynth.play_Note(Note("C-5"))

It gives me the error message:

Traceback (most recent call last):
File "C:\Documents and Settings\Zsiros\Dokumentumok\code\python\mingus.py", line 1, in <module>
import mingus.core.notes as notes

File "C:\Documents and Settings\Zsiros\Dokumentumok\code\python\mingus.py", line 1, in <module>
import mingus.core.notes as notes

ImportError: No module named core.notes

However if I type the above lines myself, it works fine. I guess it has something to do with default working directories, but I'm not very fluent in python.


2
default directory
Written by: zslevi
2009-09-01 00:08:54
I put in a file the follwing:

import mingus.core.notes as notes
from mingus.containers.Note import Note
from mingus.midi import fluidsynth
fluidsynth.init("C:/Program Files/QSynth/Piano_Yamaha.sf2")
fluidsynth.play_Note(Note("C-5"))

It gives me the error message:

Traceback (most recent call last):
File "C:\Documents and Settings\Zsiros\Dokumentumok\code\python\mingus.py", line 1, in <module>
import mingus.core.notes as notes

File "C:\Documents and Settings\Zsiros\Dokumentumok\code\python\mingus.py", line 1, in <module>
import mingus.core.notes as notes

ImportError: No module named core.notes

However if I type the above lines myself, it works fine. I guess it has something to do with default working directories, but I'm not very fluent in python.


3
RE: mingus, mingus, mingus 0.4!
Written by: zslevi
2009-09-01 13:25:32
If I put my test file ( mingus.py ) in C:\Python, it will work fine, but if I put it elsewhere and tell
os.chdir("C:\\Python254")
it wont work



4
RE: mingus, mingus, mingus 0.4!
Written by: zslevi
2009-09-01 13:36:18
I think I figured out: I put it somewhere where I don't have spaces in the pathname, and it works too.


5
RE: mingus, mingus, mingus 0.4!
Written by: zslevi
2009-09-01 13:39:11
I think I figured out: I put it somewhere where I don't have spaces in the pathname, and it works too.


6
RE: mingus, mingus, mingus 0.4!
Written by: Bart site
2009-09-02 04:31:33
Hi zslevi, I think the problem you are running into is caused by the filename mingus.py. When you try to import from mingus it uses your script instead of the package. Try renaming your file. HTH


7
RE: mingus, mingus, mingus 0.4!
Written by: zslevi
2009-09-10 23:54:26
I changed it, but that didn't help. The problem was with the working dir.


Leave a comment
Name*
E-mail
Website
Title*
Comment*
Notify me when somebody else comments on this article