<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 13/01/2013 18:42, Ed Kelly a écrit :<br>
</div>
<blockquote
cite="mid:1358098921.83131.YahooMailNeo@web29806.mail.ird.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div><span>It is, by default 4000000. You can load larger files
by changing the message to soundfiler from:</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>[read -resize
myfile.wav sound(</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>to</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>[sound resize 8000000;</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>read myfile.wav sound(</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>In short, you resize a
table manually to some number of samples (here it's 8000000)
before you load a soundfile into it.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>I believe there is an
object called soundfileinfo~ or something that gives you the
length of a soundfile...but I can't remember off the top of
my head what it's called or where it is in pd-extended</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span>Alternatively, if you
don't want to use the soundfile as though it were a table
(i.e. if you just want to play the file) it's better to use
[readsf~]</span></div>
<div><br>
</div>
<div>Ed</div>
<div><br>
</div>
<div>Gemnotes-0.2: Live music notation for Pure Data, now with
dynamics!<br>
<a class="moz-txt-link-freetext" href="http://sharktracks.co.uk/">http://sharktracks.co.uk/</a><br>
<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255);
margin-left: 5px; margin-top: 5px; padding-left: 5px;">
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt;">
<div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt;">
<div dir="ltr"> <font face="Arial" size="2">
<hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
Ingo <a class="moz-txt-link-rfc2396E" href="mailto:ingo@miamiwave.com"><ingo@miamiwave.com></a><br>
<b><span style="font-weight: bold;">To:</span></b>
'romain.darracq' <a class="moz-txt-link-rfc2396E" href="mailto:romain.darracq@laposte.net"><romain.darracq@laposte.net></a>;
'Ingo' <a class="moz-txt-link-rfc2396E" href="mailto:ingo@miamiwave.com"><ingo@miamiwave.com></a> <br>
<b><span style="font-weight: bold;">Cc:</span></b>
<a class="moz-txt-link-abbreviated" href="mailto:pd-list@iem.at">pd-list@iem.at</a> <br>
<b><span style="font-weight: bold;">Sent:</span></b>
Sunday, 13 January 2013, 14:31<br>
<b><span style="font-weight: bold;">Subject:</span></b>
Re: [PD] Help to load sound<br>
</font> </div>
<br>
There is a size limit for the file. I'm not sure whether
this is 4000000 or<br>
anything else. Sombody else here might know.<br>
<br>
Ingo<br>
<br>
<br>
<br>
> Thank for your answer, I will trying to modificate
my own error but now<br>
> the error message say:<br>
> <br>
> error: soundfiler_read: truncated to 4000000
elements<br>
> ... you might be able to track this down from the
Find menu.<br>
> <br>
> ....when I load sound with [soundfiler] and
[tabread~ sound].....<br>
> <br>
> I hope that my message is enough clear to permit
you to understand what's<br>
> wrong????<br>
> <br>
> Thanks to take the time to help me.<br>
> <br>
> Romain<br>
<br>
<br>
>> Message du 13/01/13 12:47<br>
>> De : "Ingo" <br>
>> A : "'romain.darracq'" , <a
moz-do-not-send="true" ymailto="mailto:pd-list@iem.at"
href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
>> Copie à : <br>
>> Objet : AW: [PD] Help to load sound<br>
>><br>
>> Try to use a name and path without spaces.<br>
>> Try the most simple path first like e.g.
"C:\\Shake.mp3".<br>
>> <br>
>> Out of the objects that you named only
[mp3play~] can play back MP3s.<br>
>>Make sure it is a "MP3 layer III" - otherwise it
won't work.<br>
>> You could convert it to WAV for the others to
be able to read it.<br>
>> <br>
>> Ingo<br>
> <br>
> <br>
> <br>
> Hello everybody,<br>
> I'm starting pd, and i have always the same matter
when I want to load a<br>
> sound, pd say me: (error: dsp: C:/Documents and<br>
> Settings/Romain/Bureau/matrice
perso/SON/musikkk/Remko Scha - (1982)<br>
Machine<br>
> Guitars/01 Shake.mp3: unknown or bad header format)
and for all format<br>
> althrough i used [readsf~] or [mp3play~] or
[soundfiler] objects........<br>
> I have an other error's message :(error: endianness
neither 'b' nor 'l'<br>
> ... you might be able to track this down from the
Find menu.) ?????<br>
> If someone can help me ??<br>
> <br>
> Thanks<br>
> <br>
> Romain<br>
> <br>
> <br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a moz-do-not-send="true"
ymailto="mailto:Pd-list@iem.at"
href="mailto:Pd-list@iem.at">Pd-list@iem.at</a>
mailing list<br>
UNSUBSCRIBE and account-management -> <a
moz-do-not-send="true"
href="http://lists.puredata.info/listinfo/pd-list"
target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
<br>
Hello,<br>
<br>
To adapt the size of a table with [soundfiler] when you read a sound
file use the -maxsize option.<br>
The value of maxsize should be greater than the size of the sound
file.<br>
for example :<br>
<br>
[read -maxsize 8e+06 my_sound.wav my_target_table(<br>
|<br>
[soundfiler(<br>
<br>
With this example, your table "my_target_table" will be resize at
the size of my_sound.wav (if the size of my_sound.wav is lower than
8e+06).<br>
++<br>
<br>
Jack<br>
<br>
<br>
</body>
</html>