Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41143 - [Solfege] Not playing music

Attached to Project: Community Packages
Opened by farid (osc) - Wednesday, 09 July 2014, 15:45 GMT
Last edited by Ray Rashif (schivmeister) - Thursday, 10 July 2014, 15:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ray Rashif (schivmeister)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Solfege wont play music.

Additional info:
* package version(s)
solfege 3.22.2-2


* config and/or log files etc.
Traceback (most recent call last):
File "/usr/share/solfege/solfege/exercises/rhythm.py", line 292, in new_question
if not self.standard_exception_handler(e, self.on_end_practise):
File "/usr/share/solfege/solfege/abstract.py", line 731, in standard_exception_handler
cleanup_function()
File "/usr/share/solfege/solfege/exercises/rhythm.py", line 337, in on_end_practise
self.m_t.end_practise()
File "/usr/share/solfege/solfege/abstract.py", line 77, in end_practise
soundcard.synth.stop()
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 55, in stop
self.play_midieventstream(MidiEventStream())
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 53, in play_midieventstream
soundcard.play_mediafile('midi', self.m_tmpfilename)
File "/usr/share/solfege/solfege/soundcard/__init__.py", line 96, in play_mediafile
cfg.get_string("sound/%s_player" % typeid), e)
solfege.osutils.BinaryForMediaPlayerException
Traceback (most recent call last):
File "/usr/share/solfege/solfege/esel.py", line 294, in on_link_clicked
solfege.app.practise_lessonfile(filename)
File "/usr/share/solfege/solfege/application.py", line 356, in practise_lessonfile
module = self._practise_lessonfile(filename)
File "/usr/share/solfege/solfege/application.py", line 326, in _practise_lessonfile
solfege.win.box_dict[self.m_running_exercise].on_end_practise()
File "/usr/share/solfege/solfege/exercises/rhythm.py", line 337, in on_end_practise
self.m_t.end_practise()
File "/usr/share/solfege/solfege/abstract.py", line 77, in end_practise
soundcard.synth.stop()
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 55, in stop
self.play_midieventstream(MidiEventStream())
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 53, in play_midieventstream
soundcard.play_mediafile('midi', self.m_tmpfilename)
File "/usr/share/solfege/solfege/soundcard/__init__.py", line 96, in play_mediafile
cfg.get_string("sound/%s_player" % typeid), e)
solfege.osutils.BinaryForMediaPlayerException
Traceback (most recent call last):
File "/usr/share/solfege/solfege/esel.py", line 294, in on_link_clicked
solfege.app.practise_lessonfile(filename)
File "/usr/share/solfege/solfege/application.py", line 356, in practise_lessonfile
module = self._practise_lessonfile(filename)
File "/usr/share/solfege/solfege/application.py", line 326, in _practise_lessonfile
solfege.win.box_dict[self.m_running_exercise].on_end_practise()
File "/usr/share/solfege/solfege/exercises/rhythm.py", line 337, in on_end_practise
self.m_t.end_practise()
File "/usr/share/solfege/solfege/abstract.py", line 77, in end_practise
soundcard.synth.stop()
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 55, in stop
self.play_midieventstream(MidiEventStream())
File "/usr/share/solfege/solfege/soundcard/midifilesynth.py", line 53, in play_midieventstream
soundcard.play_mediafile('midi', self.m_tmpfilename)
File "/usr/share/solfege/solfege/soundcard/__init__.py", line 96, in play_mediafile
cfg.get_string("sound/%s_player" % typeid), e)
solfege.osutils.BinaryForMediaPlayerException


Steps to reproduce:
This task depends upon

Closed by  Ray Rashif (schivmeister)
Thursday, 10 July 2014, 15:12 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Configuration issue.
Comment by Doug Newgard (Scimmia) - Wednesday, 09 July 2014, 16:41 GMT
Which of the optional deps do you have installed?
Comment by farid (osc) - Wednesday, 09 July 2014, 16:51 GMT
all except timidity.
Comment by Doug Newgard (Scimmia) - Wednesday, 09 July 2014, 16:53 GMT
...which is one of the most important ones.
Comment by farid (osc) - Wednesday, 09 July 2014, 17:01 GMT
still not working...

i went to the preferences and saw that alsa is disabled because "pyalsa python module was not found". maybe this has something to do with it?
Comment by Doug Newgard (Scimmia) - Wednesday, 09 July 2014, 17:10 GMT
Could be, could you try installing https://aur.archlinux.org/packages/python2-pyalsa/ and see if it helps?

Edit, or it could be https://aur.archlinux.org/packages/python2-pyalsaaudio/
Comment by Ray Rashif (schivmeister) - Wednesday, 09 July 2014, 17:23 GMT
Hello Farid

Preferences > External Programs > Test all 4 under Audio File Players
Sound Setup > Use external MIDI player

If it still does not play sound, report back with an action that I can use to reproduce this. You should not have to install any additional package for the basic sound functionality.
Comment by farid (osc) - Wednesday, 09 July 2014, 17:30 GMT
Hi Ray

Audio File Players:

aplay and mpg123 work
ogg123 and timidity don't work

The external midi player doesn't work as well.

Cheers
Comment by Ray Rashif (schivmeister) - Wednesday, 09 July 2014, 22:54 GMT
Sorry, I missed your earlier comment about not having timidity. Playing sound via timidity is the default behaviour of solfege. See their documentation. [1] Let us know if you still have problems after that. Alternative ways of generating sound may be available but not yet incorporated into the package, but that is not a bug.

[1] http://www.solfege.org/sound-setup/
Comment by farid (osc) - Thursday, 10 July 2014, 01:06 GMT
hi ray,

i had already installed timidity when i tested what you asked. so still no sound even with timidity.

cheers
Comment by Ray Rashif (schivmeister) - Thursday, 10 July 2014, 07:47 GMT
Did you configure it? [1] You don't need to run it as a daemon, simply test it by running timidity somefile.mid. If you are still not getting sound after that, please tell me step by step what you are doing (including where you are clicking).

[1] https://wiki.archlinux.org/index.php/Timidity
Comment by farid (osc) - Thursday, 10 July 2014, 13:22 GMT
ray,

found the problem... i didnt have any soundfonts installed in this new desktop. my bad.

just a suggestion, maybe timidity could be a dependency and the soundfonts could be the opt-dep.

resolved.

thanks!
Comment by Ray Rashif (schivmeister) - Thursday, 10 July 2014, 15:10 GMT
Glad to hear. Well, the reason timidity is there as an opt dep is because it is not the only software synthesizer available. Those who use fluidsynth, for .e.g, will not really like a dependency on timidity. I'll look into a post-install message.

Loading...