<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 &eacute;crit&nbsp;:<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">&lt;ingo@miamiwave.com&gt;</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">&lt;romain.darracq@laposte.net&gt;</a>;
                    'Ingo' <a class="moz-txt-link-rfc2396E" href="mailto:ingo@miamiwave.com">&lt;ingo@miamiwave.com&gt;</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>
                &gt; Thank for your answer, I will trying to modificate
                my own error but now<br>
                &gt; the error message say:<br>
                &gt; <br>
                &gt; error: soundfiler_read: truncated to 4000000
                elements<br>
                &gt; ... you might be able to track this down from the
                Find menu.<br>
                &gt; <br>
                &gt; ....when I load sound with [soundfiler] and
                [tabread~ sound].....<br>
                &gt; <br>
                &gt; I hope that my message is enough clear to permit
                you to understand what's<br>
                &gt; wrong????<br>
                &gt; <br>
                &gt; Thanks to take the time to help me.<br>
                &gt; <br>
                &gt; Romain<br>
                <br>
                <br>
                &gt;&gt; Message du 13/01/13 12:47<br>
                &gt;&gt; De : "Ingo" <br>
                &gt;&gt; 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>
                &gt;&gt; Copie &agrave; : <br>
                &gt;&gt; Objet : AW: [PD] Help to load sound<br>
                &gt;&gt;<br>
                &gt;&gt; Try to use a name and path without spaces.<br>
                &gt;&gt; Try the most simple path first like e.g.
                "C:\\Shake.mp3".<br>
                &gt;&gt; <br>
                &gt;&gt; Out of the objects that you named only
                [mp3play~] can play back MP3s.<br>
                &gt;&gt;Make sure it is a "MP3 layer III" - otherwise it
                won't work.<br>
                &gt;&gt; You could convert it to WAV for the others to
                be able to read it.<br>
                &gt;&gt; <br>
                &gt;&gt; Ingo<br>
                &gt; <br>
                &gt; <br>
                &gt; <br>
                &gt; Hello everybody,<br>
                &gt; I'm starting pd, and i have always the same matter
                when I want to load a<br>
                &gt; sound, pd say me: (error: dsp: C:/Documents and<br>
                &gt; Settings/Romain/Bureau/matrice
                perso/SON/musikkk/Remko Scha - (1982)<br>
                Machine<br>
                &gt; Guitars/01 Shake.mp3: unknown or bad header format)
                and for all format<br>
                &gt; althrough i used [readsf~] or [mp3play~] or
                [soundfiler] objects........<br>
                &gt; I have an other error's message :(error: endianness
                neither 'b' nor 'l'<br>
                &gt; ... you might be able to track this down from the
                Find menu.) ?????<br>
                &gt; If someone can help me ??<br>
                &gt; <br>
                &gt; Thanks<br>
                &gt; <br>
                &gt; Romain<br>
                &gt; <br>
                &gt; <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 -&gt; <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 -&gt; <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>