the script expects the files to use upper case for the note (A3 not a3, etc). <br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 20, 2012 at 6:28 AM, rosea.grammostola <span dir="ltr"><<a href="mailto:rosea.grammostola@gmail.com" target="_blank">rosea.grammostola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 12/20/2012 12:19 PM, rosea.grammostola wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/19/2012 11:09 PM, rosea.grammostola wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/19/2012 08:16 PM, rosea.grammostola wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/19/2012 06:58 PM, rosea.grammostola wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/19/2012 04:20 PM, Jeremy Jongepier wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/19/2012 02:48 PM, rosea.grammostola wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does someone have these scripts on his hdd? It seems to be offline<br>
<br>
<a href="http://makesfz.pl" target="_blank">makesfz.pl</a> perl scripts , by Peter L. Jones:<br>
<a href="http://www.drealm.info/sfz/" target="_blank">http://www.drealm.info/sfz/</a><br>
</blockquote>
<br>
<a href="http://web.archive.org/web/20100317152936/http://www.drealm.info/sfz/makesfz.pl" target="_blank">http://web.archive.org/web/<u></u>20100317152936/http://www.<u></u>drealm.info/sfz/makesfz.pl</a><br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
Thx!<br>
Anyone an idea how these scripts work?<br>
<br>
I tried:<br>
<br>
$perl <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> /path/to/sampledir/<br>
<br>
<br>
But that doesn't do anything.<br>
</blockquote></blockquote></blockquote>
<br>
It would be really nice if an perl expert could help me out here!<br>
<br>
Without really knowing what I'm doing, I tried the command displayed on<br>
the drealm website<br>
<a href="http://web.archive.org/web/20100317152936/http://www.drealm.info/sfz" target="_blank">http://web.archive.org/web/<u></u>20100317152936/http://www.<u></u>drealm.info/sfz</a><br>
and tested it on the 1st violins of the sonatina library. I do get an<br>
sfz file but it doesn't seems totally right. I do also get an error:<br>
<br>
<br>
/tmp/sonatina/1st Violins$ find -type d | grep -v '^\.$' | while read<br>
dir; do find "$dir" -iname '*.wav' | sed -e 's,/,\\,g' | (cd<br>
/home/derick/linuxaudio/SFZ-<u></u>tools/drealm/; perl <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> | sort | perl<br>
<a href="http://spansfz.pl" target="_blank">spansfz.pl</a>) > "${dir}.sfz"; echo "$dir" ; done<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 1.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 2.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 3.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 4.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 5.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 6.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 7.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 8.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 9.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 10.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 11.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 12.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 13.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 14.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 15.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 16.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 17.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 18.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 19.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 20.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 21.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 22.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 23.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 24.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 25.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 26.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 27.<br>
Use of uninitialized value in addition (+) at <a href="http://makesfz.pl" target="_blank">makesfz.pl</a> line 11, <><br>
line 28.<br>
./piz<br>
<br>
<br>
<br>
==============================<u></u>==============================<u></u>======<br>
output sfz file<br>
<br>
<br>
<region> lokey=060 hikey=060 pitch_keycenter=060<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-a#3.wav<br>
<region> lokey=060 hikey=060 pitch_keycenter=060<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-g3.wav<br>
<region> lokey=060 hikey=060 pitch_keycenter=060<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-a#3.wav<br>
<region> lokey=060 hikey=060 pitch_keycenter=060<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-g3.wav<br>
<region> lokey=061 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-a#4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-c#4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-e4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-g4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-a#4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-c#4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-e4.wav<br>
<region> lokey=072 hikey=072 pitch_keycenter=072<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-g4.wav<br>
<region> lokey=073 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-a#5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-c#5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-e5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-g5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-a#5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-c#5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-e5.wav<br>
<region> lokey=084 hikey=084 pitch_keycenter=084<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-g5.wav<br>
<region> lokey=085 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-a#6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-c#6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-e6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr1-g6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-a#6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-c#6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-e6.wav<br>
<region> lokey=096 hikey=096 pitch_keycenter=096<br>
sample=.\piz\1st-violins-piz-<u></u>rr2-g6.wav<br>
<br>
<br>
==============================<u></u>==============================<u></u>==<br>
<a href="http://makesfz.pl" target="_blank">makesfz.pl</a><br>
<br>
<br>
#!perl -w<br>
%noteoff = (<br>
'C', 0, 'C#', 1, 'D', 2, 'D#', 3, 'E', 4,<br>
'F', 5, 'F#', 6, 'G', 7, 'G#', 8, 'A', 9, 'A#', 10, 'B', 11<br>
);<br>
<br>
while(<>)<br>
{<br>
chop;<br>
/([A-G]#?)(-?\d).wav$/i ? ($note = $1, $oct = $2) : next;<br>
$notenum = $noteoff{$note} + ( $oct * 12 ) + 24;<br>
$key = sprintf("%03i", $notenum);<br>
print "<region> lokey=$key hikey=$key pitch_keycenter=$key sample=$_\n";<br>
}<br>
</blockquote>
<br>
<br></div></div>
This are the names of the wavs:<br>
<br>
<br>
1st-violins-piz-rr1-a#3.wav<br>
1st-violins-piz-rr1-a#4.wav<br>
1st-violins-piz-rr1-a#5.wav<br>
1st-violins-piz-rr1-a#6.wav<br>
1st-violins-piz-rr1-c#4.wav<br>
1st-violins-piz-rr1-c#5.wav<br>
1st-violins-piz-rr1-c#6.wav<br>
1st-violins-piz-rr1-e4.wav<br>
1st-violins-piz-rr1-e5.wav<br>
1st-violins-piz-rr1-e6.wav<br>
1st-violins-piz-rr1-g3.wav<br>
1st-violins-piz-rr1-g4.wav<br>
1st-violins-piz-rr1-g5.wav<br>
1st-violins-piz-rr1-g6.wav<br>
1st-violins-piz-rr2-a#3.wav<br>
1st-violins-piz-rr2-a#4.wav<br>
1st-violins-piz-rr2-a#5.wav<br>
1st-violins-piz-rr2-a#6.wav<br>
1st-violins-piz-rr2-c#4.wav<br>
1st-violins-piz-rr2-c#5.wav<br>
1st-violins-piz-rr2-c#6.wav<br>
1st-violins-piz-rr2-e4.wav<br>
1st-violins-piz-rr2-e5.wav<br>
1st-violins-piz-rr2-e6.wav<br>
1st-violins-piz-rr2-g3.wav<br>
1st-violins-piz-rr2-g4.wav<br>
1st-violins-piz-rr2-g5.wav<br>
1st-violins-piz-rr2-g6.wav<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.<u></u>linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/<u></u>listinfo/linux-audio-user</a><br>
</div></div></blockquote></div><br></div>