marianinn / mingus

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

failed to load "soundfont.sf2" #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Mingus on Windows XP

2. Change line 27 of pyFluidSynth

_fl = CDLL(find_library('fluidsynth'))

to

_fl = CDLL(find_library('libfluidsynth'))

3. Run pygame-drum example on command line

What is the expected output? What do you see instead?

fluidsynth: error: Unable to open file "soundfont.sf2"

What version of the product are you using? On what operating system?
Mingus0.4, WindowsXP SP3

Please provide any additional information below.

I don't really know what .sf2 files are but I found one in qsynth folder. I 
renamed it soundfont.sf2 and placed it in the same folder as pygame-drum. 
The program ran this time, but I don't get the same result I saw on the 
video when clicking on the green squares.

Original issue reported on code.google.com by noagbodj...@gmail.com on 1 Mar 2009 at 6:39

GoogleCodeExporter commented 9 years ago
1. I will merge in the new version of pyFluidSynth soon, so the dynamic library
problem on Windows should get fixed.

2. SF2 files are SoundFonts; they contain the actual audio generators that will 
be
used to play notes. I usually use the ChoriumRevA soundfont to record demo 
videos
(look here for downloads: http://www.hammersound.net, go to Sounds -> Soundfont
Library -> Collections).

3. Please see pygame-drum's documentation:
http://code.google.com/p/mingus/source/browse/trunk/mingus_examples/pygame-drum/
pygame-drum.py

The program is controlled by the keyboard. You have to press 'r' to record and 
then
you can use the keypad to play something. Clicking won't do anything (maybe 
nice to
add?).

Regards,
Bart.

Original comment by Rhijnauwen@gmail.com on 2 Mar 2009 at 5:06

GoogleCodeExporter commented 9 years ago
Thanks a lot for your help.

Original comment by noagbodj...@gmail.com on 2 Mar 2009 at 5:23

GoogleCodeExporter commented 9 years ago
No problem; thanks for reporting the bug. I have opened another issue (see 
issue #38)
to deal with the dll problem so I can close this one.

Original comment by Rhijnauwen@gmail.com on 2 Mar 2009 at 6:15

GoogleCodeExporter commented 9 years ago
Well it almost works for me. However  keypad 7,8 and enter doesn't do anything.

Original comment by zsl...@gmail.com on 1 Sep 2009 at 12:19

GoogleCodeExporter commented 9 years ago
By the way I'm using WinXP SP2

Original comment by zsl...@gmail.com on 1 Sep 2009 at 12:25

GoogleCodeExporter commented 9 years ago
zslevi you have to try downloading some of the soundfonts on the website 
Rhijnauwen 
told me about. i have had the same problem. i don't really remember what 
soundfont i 
ended up with but i got it to work nicely.

Original comment by noagbodj...@gmail.com on 1 Sep 2009 at 1:32

GoogleCodeExporter commented 9 years ago
Hi zslevi, from the documentation for pygame-drum:
http://code.google.com/p/mingus/source/browse/trunk/mingus_examples/pygame-drum/
pygame-drum.py

Keypad 7 and 8 aren't set up to do anything and the enter key only works on the
keypad. You can use the regular Enter key by going to line 194
(http://code.google.com/p/mingus/source/browse/trunk/mingus_examples/pygame-drum
/pygame-drum.py#194)
and changing K_KP_ENTER to K_ENTER. Hope this helped. 

Original comment by Rhijnauwen@gmail.com on 1 Sep 2009 at 3:57