<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using writesf~ to create files. but could I use tabwrite~ to record sounds, then save to file?]]></title><description><![CDATA[<p>I've got a patch that records audio whenever a threshold it met. it then plays back that audio randomly on several speakers across a venue.</p>
<p>I'm using writesf~ to record the files, as i need to read them randomly.</p>
<p>is there any issue using writefs~ for 500 audio files? should I use tabwrite~ to capture then save a file afters?</p>
<p>Is that possible?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 12:34:01 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14500.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Oct 2023 19:37:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using writesf~ to create files. but could I use tabwrite~ to record sounds, then save to file? on Sat, 28 Oct 2023 19:37:23 GMT]]></title><description><![CDATA[<p>I've got a patch that records audio whenever a threshold it met. it then plays back that audio randomly on several speakers across a venue.</p>
<p>I'm using writesf~ to record the files, as i need to read them randomly.</p>
<p>is there any issue using writefs~ for 500 audio files? should I use tabwrite~ to capture then save a file afters?</p>
<p>Is that possible?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file</guid><dc:creator><![CDATA[yratof]]></dc:creator><pubDate>Sat, 28 Oct 2023 19:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to Using writesf~ to create files. but could I use tabwrite~ to record sounds, then save to file? on Tue, 07 Nov 2023 22:50:57 GMT]]></title><description><![CDATA[<blockquote>
<p>I'm using writesf~ to record the files, as i need to read them randomly.</p>
</blockquote>
<p>Are you running into any problems with this?</p>
<p>How long may the recordings become?<br />
Which hardware is being used?<br />
How much effort do you want to put into this?<br />
...</p>
<p>There are differences of harddrive (solid state or mechanical?) and RAM.<br />
RAM is good for quick read/write access, size is limited (how big? how long the recordings?) and is non-persistent at power-cycles.</p>
<p>Maybe you don't need [writesf~] at all.<br />
But using only [writesf~] may work for you too.</p>
<blockquote>
<p>tabwrite~ to capture then save a file afters?<br />
Is that possible?</p>
</blockquote>
<p>Yes with [soundfiler]<br />
or this: <a href="https://forum.pdpatchrepo.info/topic/14290/array-save-to-textfile-load-from-textfile" rel="nofollow">https://forum.pdpatchrepo.info/topic/14290/array-save-to-textfile-load-from-textfile</a><br />
(may be possible with .wav files too, but not sure)</p>
<hr />
<p>Pd runs into precision issues on large arrays:<br />
<a href="https://forum.pdpatchrepo.info/topic/7705/looper-write-to-hard-drive-or-array/3" rel="nofollow">https://forum.pdpatchrepo.info/topic/7705/looper-write-to-hard-drive-or-array/3</a><br />
but you can use indexing or split into multiple arrays</p>
<p>And loading large .wav files from hd may introduce audio-dropouts (because [readsf~] is running syncronous, in deterministic order, - I think [soundfiler] does, too).</p>
<hr />
<p>If really required (!) and (!) you are up for making things complicated (!):<br />
If you need the hd and have big files or dropouts: save once in a while to harddisk in a second pd instance.<br />
Both instances are running asyncronously: one for everything realtime (threshold/recording/playback),<br />
the other instance only for saving and loading to/from hard-drive.<br />
Sharing data between instances with the shmem library. And communicating with [netsend] / [netreceive] or also with shared arrays.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file/2</guid><dc:creator><![CDATA[lacuna]]></dc:creator><pubDate>Tue, 07 Nov 2023 22:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to Using writesf~ to create files. but could I use tabwrite~ to record sounds, then save to file? on Sun, 29 Oct 2023 06:25:17 GMT]]></title><description><![CDATA[<p>Great! Here are those points:</p>
<ul>
<li>The recordings are anything from 5 seconds to 5 minutes.</li>
<li>Bela is being used</li>
<li>As much as needed? <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":D" alt=":D" /></li>
</ul>
<p>The idea is I've built a microphone in a public place that acts as a recorder that automatically adds the recordings to a pool of .wavs that playback on 8-10 speakers.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14500/using-writesf-to-create-files-but-could-i-use-tabwrite-to-record-sounds-then-save-to-file/3</guid><dc:creator><![CDATA[yratof]]></dc:creator><pubDate>Sun, 29 Oct 2023 06:25:17 GMT</pubDate></item></channel></rss>