Page 1 of 1

Can't execute fluidsynth with a soundfont from a script

Posted: Wed Dec 04, 2019 12:36 pm
by yama
Doing

Code: Select all

fluidsynth -a jack -j ~/soundfonts/KawaiUprightPiano-20180102.sf2
directly from terminal works as intended, however, putting the exact same line within a bash script results in:
Parameter '~/soundfonts/KawaiUprightPiano-20180102.sf2' not a SoundFont or MIDI file or error occurred identifying it.
Which is evidently wrong since I can load that file directly with terminal.

EDIT: Doing some testing, this works with `xterm`. It does not work with termite, st, or urxvt.

Re: Can't execute fluidsynth with a soundfont from a script

Posted: Wed Dec 04, 2019 8:37 pm
by yama
Well I feel dumb now, solution was to use $HOME instead of ~

Re: Can't execute fluidsynth with a soundfont from a script

Posted: Thu Dec 05, 2019 12:12 am
by milo
Don't worry, mate. We all do stupid things in shell scripts from time to time. Just be glad you didn't erase all the files in your home directory. You're always ahead of the game on days when you avoid that error! :)

Re: Can't execute fluidsynth with a soundfont from a script

Posted: Thu Dec 05, 2019 12:46 pm
by Linuxmusician01
yama wrote:Well I feel dumb now, solution was to use $HOME instead of ~
Thanks for the post. This would be a mistake that I could have made after writing simple shell scripts for myself for almost 15 years. :mrgreen:

Re: Can't execute fluidsynth with a soundfont from a script

Posted: Tue Dec 24, 2019 6:41 pm
by yama
ty for making me feel less dumb about it :)