Re: [LAU] sfz convert / tools

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: rosea.grammostola <rosea.grammostola@...>
Cc: linux-audio-user <linux-audio-user@...>
Date: Thursday, December 20, 2012 - 11:49 am

--e0cb4efe325cc5f35a04d147512f
Content-Type: text/plain; charset=ISO-8859-1

the script expects the files to use upper case for the note (A3 not a3,
etc).

On Thu, Dec 20, 2012 at 6:28 AM, rosea.grammostola <
rosea.grammostola@gmail.com> wrote:

> On 12/20/2012 12:19 PM, rosea.grammostola wrote:

--e0cb4efe325cc5f35a04d147512f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

the script expects the files to use upper case for the note (A3 not a3, etc=
). On Thu=
, Dec 20, 2012 at 6:28 AM, rosea.grammostola <rosea.grammostola=
@gmail.com
> wrote:
On 1=
2/20/2012 12:19 PM, rosea.grammostola wrote:

On 12/19/2012 11:09 PM, rosea.grammostola wrote:

On 12/19/2012 08:16 PM, rosea.grammostola wrote:

On 12/19/2012 06:58 PM, rosea.grammostola wrote:

On 12/19/2012 04:20 PM, Jeremy Jongepier wrote:

On 12/19/2012 02:48 PM, rosea.grammostola wrote:

Does someone have these scripts on his hdd? It seems to be offline

makesfz.pl perl scripts=
, by Peter L. Jones:
http://www.drealm=
.info/sfz/

http://web.archive.org/web/201003=
17152936/http://www.drealm.info/sfz/makesfz.pl

Thx!
Anyone an idea how these scripts work?

I tried:

$perl makesfz.pl /path/=
to/sampledir/

But that doesn't do anything.

It would be really nice if an perl expert could help me out here!

Without really knowing what I'm doing, I tried the command displayed on=

the drealm website
http://web.archive.org/web/20100317152936/ht=
tp://www.drealm.info/sfz

and tested it on the 1st violins of the sonatina library. I do get an
sfz file but it doesn't seems totally right. I do also get an error:

/tmp/sonatina/1st Violins$ find -type d | grep -v '^\.$' | while re=
ad
dir; do find "$dir" -iname '*.wav' | sed -e 's,/,\\,g=
' | (cd
/home/derick/linuxaudio/SFZ-tools/drealm/; perl makesfz.pl | sort | perl
spansfz.pl) > "=
${dir}.sfz"; echo "$dir" ; done
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 1.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 2.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 3.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 4.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 5.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 6.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 7.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 8.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 9.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 10.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 11.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 12.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 13.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 14.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 15.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 16.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 17.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 18.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 19.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 20.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 21.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 22.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 23.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 24.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 25.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 26.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 27.
Use of uninitialized value in addition (+) at makesfz.pl line 11, <>
line 28.
./piz

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
output sfz file

<region> lokey=3D060 hikey=3D060 pitch_keycenter=3D060
sample=3D.\piz\1st-violins-piz-rr1-a#3.wav
<region> lokey=3D060 hikey=3D060 pitch_keycenter=3D060
sample=3D.\piz\1st-violins-piz-rr1-g3.wav
<region> lokey=3D060 hikey=3D060 pitch_keycenter=3D060
sample=3D.\piz\1st-violins-piz-rr2-a#3.wav
<region> lokey=3D060 hikey=3D060 pitch_keycenter=3D060
sample=3D.\piz\1st-violins-piz-rr2-g3.wav
<region> lokey=3D061 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr1-a#4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr1-c#4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr1-e4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr1-g4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr2-a#4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr2-c#4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr2-e4.wav
<region> lokey=3D072 hikey=3D072 pitch_keycenter=3D072
sample=3D.\piz\1st-violins-piz-rr2-g4.wav
<region> lokey=3D073 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr1-a#5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr1-c#5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr1-e5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr1-g5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr2-a#5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr2-c#5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr2-e5.wav
<region> lokey=3D084 hikey=3D084 pitch_keycenter=3D084
sample=3D.\piz\1st-violins-piz-rr2-g5.wav
<region> lokey=3D085 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr1-a#6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr1-c#6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr1-e6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr1-g6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr2-a#6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr2-c#6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr2-e6.wav
<region> lokey=3D096 hikey=3D096 pitch_keycenter=3D096
sample=3D.\piz\1st-violins-piz-rr2-g6.wav

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
makesfz.pl

#!perl -w
%noteoff =3D (
'C', 0, 'C#', 1, 'D', 2, 'D#', 3, 'E&#3=
9;, 4,
'F', 5, 'F#', 6, 'G', 7, 'G#', 8, 'A&#3=
9;, 9, 'A#', 10, 'B', 11
);

while(<>)
{
chop;
/([A-G]#?)(-?\d).wav$/i ? ($note =3D $1, $oct =3D $2) : next;
$notenum =3D $noteoff{$note} + ( $oct * 12 ) + 24;
$key =3D sprintf("%03i", $notenum);
print "<region> lokey=3D$key hikey=3D$key pitch_keycenter=3D$key=
sample=3D$_\n";
}

This are the names of the wavs:

1st-violins-piz-rr1-a#3.wav
1st-violins-piz-rr1-a#4.wav
1st-violins-piz-rr1-a#5.wav
1st-violins-piz-rr1-a#6.wav
1st-violins-piz-rr1-c#4.wav
1st-violins-piz-rr1-c#5.wav
1st-violins-piz-rr1-c#6.wav
1st-violins-piz-rr1-e4.wav
1st-violins-piz-rr1-e5.wav
1st-violins-piz-rr1-e6.wav
1st-violins-piz-rr1-g3.wav
1st-violins-piz-rr1-g4.wav
1st-violins-piz-rr1-g5.wav
1st-violins-piz-rr1-g6.wav
1st-violins-piz-rr2-a#3.wav
1st-violins-piz-rr2-a#4.wav
1st-violins-piz-rr2-a#5.wav
1st-violins-piz-rr2-a#6.wav
1st-violins-piz-rr2-c#4.wav
1st-violins-piz-rr2-c#5.wav
1st-violins-piz-rr2-c#6.wav
1st-violins-piz-rr2-e4.wav
1st-violins-piz-rr2-e5.wav
1st-violins-piz-rr2-e6.wav
1st-violins-piz-rr2-g3.wav
1st-violins-piz-rr2-g4.wav
1st-violins-piz-rr2-g5.wav
1st-violins-piz-rr2-g6.wav

_______________________________________________
Linux-audio-user mailing list
=
Linux-audio-user@lists.linuxaudio.org

http://lists.linuxaudio.org/listinfo/linux-audio-user

--e0cb4efe325cc5f35a04d147512f--

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

Messages in current thread:
[LAU] sfz convert / tools, rosea.grammostola, (Mon Dec 17, 10:43 am)
Re: [LAU] sfz convert / tools, Jeremy Jongepier, (Wed Dec 19, 3:18 pm)
Re: [LAU] sfz convert / tools, Jeremy Jongepier, (Wed Dec 19, 3:21 pm)
Re: [LAU] sfz convert / tools, Brent Busby, (Mon Dec 17, 7:23 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Wed Dec 19, 1:48 pm)
Re: [LAU] sfz convert / tools, Nils Gey, (Wed Dec 19, 3:48 pm)
Re: [LAU] sfz convert / tools, Jeremy Jongepier, (Wed Dec 19, 3:21 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Wed Dec 19, 5:58 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Wed Dec 19, 7:16 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Wed Dec 19, 10:09 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Thu Dec 20, 11:19 am)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Thu Dec 20, 11:28 am)
Re: [LAU] sfz convert / tools (findings), rosea.grammostola, (Thu Dec 20, 3:07 pm)
Re: [LAU] sfz convert / tools (findings), rosea.grammostola, (Thu Dec 20, 10:40 pm)
Re: [LAU] sfz convert / tools, Paul Davis, (Thu Dec 20, 11:49 am)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Thu Dec 20, 3:30 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Sat Dec 22, 12:52 am)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Sat Dec 22, 11:18 am)
Re: [LAU] sfz convert / tools, Ralf Mardorf, (Sat Dec 22, 1:38 pm)
Re: [LAU] sfz convert / tools, Daniel Appelt, (Thu Jan 3, 4:04 pm)
[LAU] sfz files, rosea.grammostola, (Wed Dec 19, 6:23 pm)
Re: [LAU] sfz files, rosea.grammostola, (Wed Dec 19, 10:10 pm)
Re: [LAU] sfz convert / tools, Dan MacDonald, (Wed Dec 19, 3:02 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Tue Dec 18, 10:17 am)
Re: [LAU] sfz convert / tools, Nicola Pandini, (Mon Dec 17, 11:52 am)
Re: [LAU] sfz convert / tools, chickeneps, (Wed Jan 30, 5:53 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Mon Dec 17, 12:25 pm)
Re: [LAU] sfz convert / tools, rosea.grammostola, (Mon Dec 17, 1:21 pm)
Re: [LAU] sfz convert / tools, Leigh Dyer, (Mon Dec 17, 11:13 am)