Re: [LAU] makesfz.sh

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frank Neumann <beachnase@...>
Cc: <linux-audio-user@...>
Date: Tuesday, January 3, 2012 - 3:29 am

Hi Frank!

You're right that that option should be included so I've just updated
my script on the LS forums to include said option and tidied it up a
bit too - the modified script follows.

Thanks for your feedback!

Dan

--------------------------------------------------------

#!/bin/bash
# makesfz.sh reads all wav files in the current dir and creates an .sfz file
# for use by Linuxsampler named after the folder containing them.
# by Dan MacDonald 2012

key=0

rm -f ${PWD##*/}.sfz
echo -e "# This file was auto-generated by
makesfz.sh\n\n\nloop_mode=one_shot\n" >> ${PWD##*/}.sfz

for wavs in *.wav
do
echo -e "\nsample=$wavs\nkey=$key\nlovel=0 hivel=127\n" >>
${PWD##*/}.sfz
key=$(($key+1))
done

On Mon, Jan 2, 2012 at 10:46 PM, Frank Neumann wrote:

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAU] makesfz.sh, Dan MacDonald, (Sun Jan 1, 12:54 pm)
Re: [LAU] makesfz.sh, Frank Neumann, (Mon Jan 2, 10:46 pm)
Re: [LAU] makesfz.sh, Dan MacDonald, (Tue Jan 3, 3:29 am)