Shell script runs OK, but needs to keep going and doesn't...

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#21 Post by starhawk »

It's more for playback of files. I don't have any MIDI cards or inputs either.

Google the *.mid file format... maybe that will help explain things.

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#22 Post by starhawk »

Local guru helped me out.

Code: Select all

#!/bin/sh
killall -9 fluidsynth
fluidsynth /root/my-documents/chorium.sf2 -si &
...is what he wrote. Tested, working :)

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#23 Post by starhawk »

Sorry to drag a thread back from its long rest... but I think I fixed it :)

With Audacious installed, and my beloved Chorium soundfont at /root/my-documents/chorium.sf2

(1) Install the TiMIDIty *.pet here --> http://murga-linux.com/puppy/viewtopic.php?t=32611
You do NOT need the eawpatches *.pet!

(2) Edit /usr/share/timidity/timidity.cfg. The last non-blank line should read:

Code: Select all

soundfont /root/my-documents/chorium.sf2
...obviously if you have a different soundfont, or it's in a different place, you should make sure the names and path match properly...

(3) Open a Terminal window and type...

Code: Select all

/etc/init.d/timidity_server start
...followed by a smack of the [ENTER] key.

(4) Open Audacious. Open the Preferences window, go to Plugins. Select the Input tab. Highlight "AMIDI-Plug (MIDI Player)" and click Preferences down below. Select "ALSA backend" on the left-hand side. Check all "TiMidity" ports (0,1,2,3) and make absolutely sure that "MIDI Through Port-0" is NOT CHECKED. (You will get nothing but perfect crickety silence if it IS checked!)

(5) OK out of all those boxes.

(6) Play a MIDI file. I hope it's a good one ;)

...that's it.

Note that I haven't rebooted yet. If you see a post full of symbols as the next post here, that means that I'm bleeping out swear words because it didn't stay put. LOL. Not expecting that tho...

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#24 Post by starhawk »

Yep, still works after a reboot :D

Very much [SOLVED]!

Post Reply