Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 13:29
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Shell script runs OK, but needs to keep going and doesn't...
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Author Message
starhawk

Joined: 22 Nov 2010
Posts: 3133
Location: Everybody knows this is nowhere...

PostPosted: Tue 20 May 2014, 18:00    Post subject:  

That looks about like what I have.

It's for playing MIDI music. MIDI is encoded as a set of instrument-note pairings -- what those instruments and notes actually sound like is left to other software -- the player, and more specifically, the soundfont. That soundfont (*.sf2 file) contains all of the MIDI sounds. Fluidsynth plays the role of a synthesizer, enabling the media player (in this case, Audacious) to output sound to the speakers.

MIDI is a rather old format, but I have a few that actually sound pretty good. (MIDI is well known for the really bad stuff, which is unfortunate -- with a little effort it can come out quite nice...) It hails from the era of floppy disks and 14.4k modems.

_________________

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 20 May 2014, 18:06    Post subject:  

So fluidsynth is a sound server listening on port localhost:9800 ?

Never used audacity ..

Are there any other known programs that use such soundfont server like aqualung or gxine or mhwaveedit ?
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 3133
Location: Everybody knows this is nowhere...

PostPosted: Tue 20 May 2014, 20:18    Post subject:  

AFAIK, Fluidsynth is not a networked anything. Server or client. It is a synthesizer.

Audacious hands note/instrument (eg, C#/piano or D/guitar) pairs to Fluidsynth. Fluidsynth matches those up with corresponding sounds in a soundfont. Fluidsynth returns the sounds to Audacious, which pipes out to a speaker set.

_________________

Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 3133
Location: Everybody knows this is nowhere...

PostPosted: Wed 21 May 2014, 13:31    Post subject:  

Still stumped on this...
_________________

Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Wed 21 May 2014, 13:52    Post subject:  

I have no midi cards -nor any instruments to attach to MIDI cards .

I had few reads about MIDI and they were from kernel 2.4 times .

Don't know anything further after reading ,
except that /dev/midi should exist as link to /dev/midi0[0-4] char device file .


About the port :

bash-3.00# fluidsynth
...

Type 'help' for help topics.

> help

> settings
shell.port 9800


More I cannot decipher from the help or manual page .

To me it seems that it needs a controlling terminal ,
because the -i option is not working correctly or should work for other purposes .
Back to top
View user's profile Send private message Visit poster's website 
starhawk

Joined: 22 Nov 2010
Posts: 3133
Location: Everybody knows this is nowhere...

PostPosted: Wed 21 May 2014, 14:51    Post subject:  

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.

_________________

Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 3133
Location: Everybody knows this is nowhere...

PostPosted: Thu 22 May 2014, 12:08    Post subject:  

Local guru helped me out.

Code:
#!/bin/sh
killall -9 fluidsynth
fluidsynth /root/my-documents/chorium.sf2 -si &

...is what he wrote. Tested, working Smile

_________________

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [22 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0532s ][ Queries: 11 (0.0064s) ][ GZIP on ]