Hi,<br><br>Yes, recording to mono would be a good idea. <br>I don&#39;t know to what extend the quality would suffer from a sample rate reduction though. I&#39;ve read that it would only cut higher frequencies. Another problem is that I&#39;m not sure i&#39;ll be able to read these file (say at 22050) in a Pd patch (at 44100). <br>
<br>What you&#39;re saying about CPU load and RAM makes sense, but i&#39;d like to try anyway, just to know whether it&#39;d work or not. Somebody on the RPi forum suggested that I use Pulseaudio. I don&#39;t even know if Pd works with Pulse. Anyways...<br>
<br>Thank you for your reply.<br><br>Cheers,<br><br>Pierre.<br><br><div class="gmail_quote">2012/11/25 Greg Schroeder <span dir="ltr">&lt;<a href="mailto:gmschroeder@gmail.com" target="_blank">gmschroeder@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You could write a patch that records 16-bit mono .wav, at as low a<br>
sample rate as you&#39;d like, to .wav with writesf~ . . . more or less<br>
copy-pasting from the help page.<br>
Recording to something besides .wav, especially into a separate<br>
application (which just because it&#39;s a separate application will need<br>
more processing power) in realtime, needs encoding (and thus<br>
processing power and RAM) as you write, which is going to be a bigger<br>
problem than disk space on a raspberry pi, I&#39;d think.<br>
How long are you planning to record, and what is your file size limitation?<br>
<br>
Someone correct me if I&#39;m wrong, for my information as much as his,<br>
Greg<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, Nov 25, 2012 at 2:48 PM, Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt; wrote:<br>
&gt; Hi Hans,<br>
&gt;<br>
&gt; Thanks for your reply. I can&#39;t use writesf~ alone because i want to save<br>
&gt; some disk space, wav is too big.<br>
&gt; Is there a way i can run Pd, and then pipe its output to another program to<br>
&gt; record it whenever I want? I don&#39;t want Pd to continuously write to a file<br>
&gt; because i&#39;m running it for hours.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Pierre.<br>
&gt;<br>
&gt;<br>
&gt; 2012/11/25 Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [writesf~]<br>
&gt;&gt;<br>
&gt;&gt; .hc<br>
&gt;&gt;<br>
&gt;&gt; On 11/25/2012 05:03 AM, Pierre Massat wrote:<br>
&gt;&gt; &gt; Or is there a way to directly pipe Pd&#39;s audio output into another<br>
&gt;&gt; &gt; program?<br>
&gt;&gt; &gt; Too bad JAC doesn&#39;t work on the Pi...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2012/11/24 Pierre Massat &lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I &#39;ve been searching the internet for two days and i couldn&#39;t find any<br>
&gt;&gt; &gt;&gt; satisfying answer, so I thought I&#39;d ask here...<br>
&gt;&gt; &gt;&gt; I&#39;m running PD on my Raspberry Pi, and I need to record Pd&#39;s output. I<br>
&gt;&gt; &gt;&gt; can&#39;t use the standard writesf~ because I lack disk space, and<br>
&gt;&gt; &gt;&gt; oggwrite~<br>
&gt;&gt; &gt;&gt; doesn&#39;t work well on the RPi (it records fine but Pd&#39;s output is<br>
&gt;&gt; &gt;&gt; trashed).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I recently discovered that i could record something in raw with ALSA<br>
&gt;&gt; &gt;&gt; using<br>
&gt;&gt; &gt;&gt; arecord, and pipe this into oggenc, or flac, or whatever I need to<br>
&gt;&gt; &gt;&gt; record<br>
&gt;&gt; &gt;&gt; the file. Something like:<br>
&gt;&gt; &gt;&gt; arecord &lt;parameters&gt; raw | oggenc &lt;parameter&gt; file.ogg<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The thing is that the RPi has no capture device (the single PCM doesn&#39;t<br>
&gt;&gt; &gt;&gt; seem to be capable of capture).<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; A lot of things seem to be possible using a .asoundrc configuration<br>
&gt;&gt; &gt;&gt; file<br>
&gt;&gt; &gt;&gt; for ALSA, but I don&#39;t know how to use it.<br>
&gt;&gt; &gt;&gt; What I would want is to copy the PCM output so that ALSA can recognize<br>
&gt;&gt; &gt;&gt; this copy as an input in a record. Note that I need to be able to<br>
&gt;&gt; &gt;&gt; listen to<br>
&gt;&gt; &gt;&gt; the output while recording.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Do you thing this is possible at all?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Cheers,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Pierre.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Pd-ot mailing list<br>
&gt;&gt; &gt; <a href="mailto:Pd-ot@iem.at">Pd-ot@iem.at</a><br>
&gt;&gt; &gt; <a href="http://lists.puredata.info/listinfo/pd-ot" target="_blank">http://lists.puredata.info/listinfo/pd-ot</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pd-ot mailing list<br>
&gt;&gt; <a href="mailto:Pd-ot@iem.at">Pd-ot@iem.at</a><br>
&gt;&gt; <a href="http://lists.puredata.info/listinfo/pd-ot" target="_blank">http://lists.puredata.info/listinfo/pd-ot</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pd-ot mailing list<br>
&gt; <a href="mailto:Pd-ot@iem.at">Pd-ot@iem.at</a><br>
&gt; <a href="http://lists.puredata.info/listinfo/pd-ot" target="_blank">http://lists.puredata.info/listinfo/pd-ot</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Pd-ot mailing list<br>
<a href="mailto:Pd-ot@iem.at">Pd-ot@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-ot" target="_blank">http://lists.puredata.info/listinfo/pd-ot</a><br>
</div></div></blockquote></div><br>