text
stringlengths 0
14.1k
|
---|
<pre class=""src src-sh"">incudine foo.cudo --pad 1.2 -o - -H ircam -F float <span style=""color: #ffa07a;"">\</span>
|
-s quux.rego | sox - quux.wv</pre>
|
<p>
|
We can also decide to use an absolute duration for the output file:
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo -d 6.5 -s quux.rego</pre>
|
<p>
|
For realtime, please start Jack on Linux and set the rt priorities of
|
Incudine. You can change them in <code>$HOME/.incudinerc</code> or use
|
the options
|
</p>
|
<pre class=""example"">
|
--rt-priority prio for rt thread (default: 68)
|
--nrt-priority prio for nrt thread (default: 60)
|
--receiver-priority prio for receiver thread (default: 63)</pre>
|
<p>
|
In my case, jackd is run with <code>`-R -P70'</code>.
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo -d 6.5 -R -s quux.rego</pre>
|
<p>
|
We can use multiple files and switch from realtime (-R) to non-rt (-N)
|
and vice versa. In the following example, quux is in realtime and bar
|
writes a soundfile to disk.
|
</p>
|
<pre class=""src src-sh"">cp quux.rego bar.rego
|
incudine foo.cudo -d 6.5 -R -s quux.rego -N -s bar.rego</pre>
|
<p>
|
Incudine uses Erik de Castro Lopo's libsndfile to read/write a soundfile
|
from/to disk.
|
</p>
|
<pre class=""src src-sh"">incudine --header-type-list
|
incudine --data-format-list</pre>
|
<p>
|
Header type and format of the sample are respectively `wav' (`aiff' on
|
big endian machines) and `pcm-24'.
|
</p>
|
<p>
|
The following example produces a flac file <code>quux.flac</code>
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo --pad 1.2 -H flac -s quux.rego</pre>
|
<p>
|
and a ogg file <code>quux.ogg</code>
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo --pad 1.2 -H ogg -F vorbis -s quux.rego</pre>
|
<p>
|
There is the possibility to add metadata. It is important to notice the
|
comment in <code>sndfile.h</code>, the c header of libsndfile:
|
</p>
|
<blockquote>
|
<p>
|
… Not all file types support this and even the file types which
|
support one, may not support all string types.
|
</p>
|
</blockquote>
|
<p>
|
Example:
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo --pad 1.2 --title <span style=""color: #ffa07a;"">""Passame n'elettrodo""</span> <span style=""color: #ffa07a;"">\</span>
|
--artist <span style=""color: #ffa07a;"">""Fabro Cadabro Band""</span> -s quux.rego
|
sndfile-metadata-get --str-{title,artist} quux.wav</pre>
|
<p>
|
Often we want manipulate an input file. The next example shows how to
|
use incudine for the convolution between two soundfiles. We put in
|
conv.cudo the code to parse the user options and the definition of the
|
DSP for the convolver.
|
</p>
|
<pre class=""src src-sh"">cat > conv.cudo <<'---'
|
(defvar *pvbuf*
|
(let ((buf (buffer-load (read-arg 1 nil))))
|
(cond (buf (make-part-convolve-buffer buf 2048))
|
(t (msg error ""Failed to open the IR"")
|
(exit 1)))))
|
(defvar *scale* (sample (or (read-arg 2) 1)))
|
(dsp! convolve ()
|
(with-samples ((scale *scale*))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.