Hi,<br><br>i think the easiest way would be to write on the disk first (using writesf~), and then read the file to a table (using soundfiler and the &quot;resize&quot; flag). This way the size of the table will be automatically adjusted to match the size of the file.<br>
The downside is, you don&#39;t have access to the sound during the recording.<br>If you do need access while recording (or if you just don&#39;t want to use the HDD) maybe you should prepare a table with the max recording length (according to your system capabilities, taste etc.) and after the recording is done (with a noteoff message for example..) you resize the table to the actual length of the recording by sending a message like the following:<br>
<br>;<br>mytable resize $1<br><br>(where $1 is the length of the recording in samples)<br><br>and at the same time you prepare the next &quot;big&quot; table for the next recording..<br><br>i guess, this is one flexible and economical approach.. but i&#39;m sure there are many ways to do it. just told you what came to me first!<br>
sorry if i can&#39;t be clear enough right now.. :-)<br><br><br>ciao<br><br><br><br><br><div class="gmail_quote">2009/9/27 Andrew Faraday <span dir="ltr">&lt;<a href="mailto:jbturgid@hotmail.com">jbturgid@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<span style="font-family: &#39;Times New Roman&#39;; font-size: 16px;">Hey Guys</span><div><font face="&#39;Times New Roman&#39;" size="4"><span style="font-size: 16px;"><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<br></p><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">I&#39;m trying to record to a table between two given points (e.g. note on and note off at a given pitch) so that an array </p>
<p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">will resize the length of time between those points. So far I can only set the array size in advance and then record</p>
<p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">(using [tabwrite~]) from a given point. Any ideas how I&#39;d record like that?</p>
<p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br></p><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
God Bless</p><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br></p>
<font color="#888888"><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
Andrew</p></font><p style="margin: 0px; font-family: Times New Roman; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;"><br>
</p></span></font></div><div class="hm">                                               <br><hr>Beyond Hotmail - see what else you can do with Windows Live. <a href="http://clk.atdmt.com/UKM/go/134665375/direct/01/" target="_blank">Find out more.</a></div></div>

<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>ypatios<br>