text
stringlengths 0
14.1k
|
---|
Incudine is also the name of a standalone executable. Please consult the
|
<code>INSTALL</code> file if you'd like to install it.
|
</p>
|
<p>
|
Here is a basic tutorial to introduce the command.
|
</p>
|
<pre class=""src src-sh"">mkdir incudine_tut
|
<span style=""color: #b0c4de;"">cd</span> !$
|
<span style=""color: #ff7f24;""># </span><span style=""color: #ff7f24;"">usage</span>
|
incudine -h
|
<span style=""color: #ff7f24;""># </span><span style=""color: #ff7f24;"">Simple files for the test</span>
|
cat >foo.cudo <<'---'
|
(dsp! simple (freq db (env envelope) gate)
|
(stereo (* (envelope env gate 1 #'free)
|
(sine freq (db->linear db) 0))))
|
---
|
cat >quux.rego <<'---'
|
with (env1 (make-adsr .1 .09 .9 .5))
|
0 simple 440 -14 env1 1
|
0 simple 220 -20 env1 1
|
0.5 simple 225 -26 env1 1
|
1 simple 448 -14 env1 1
|
3 simple 450 -20 (make-adsr 1 .2 .7 1 :curve :sin) 1
|
5 set-control 0 :gate 0
|
---</pre>
|
<p>
|
Note: the package is <code>INCUDINE.SCRATCH</code>
|
(nickname <code>SCRATCH</code>) by default.
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo -s quux.rego</pre>
|
<p>
|
It remembers orchestra+score in Csound, however we can use multiple
|
files and a lisp file can contain what you want, not necessarily
|
specific code for Incudine. A rego file (see <a href=""tutorial_03.html#rego-file"">Getting Start - Part 3</a>)
|
is transformed in an intermediate lisp file containing also the code
|
to execute the score in realtime or to write a soundfile to disk.
|
</p>
|
<p>
|
We get a soundfile `quux.wav' and two FASL called `foo.fasl' and
|
`quux.fasl'. If we run again the previous command line…
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo -s quux.rego</pre>
|
<p>
|
… the execution is faster, because we are using the compiled files.
|
A source file is re-compiled if:
|
</p>
|
<ol>
|
<li>the source is modified after the compilation</li>
|
<li>the command line arguments before the name of the source file are changed</li>
|
</ol>
|
<p>
|
There aren't options before foo.cudo, therefore it also works without
|
re-compilation:
|
</p>
|
<pre class=""src src-sh"">incudine foo quux</pre>
|
<p>
|
The sound is truncated after 5 beats; we can add some padding:
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo --pad 1.2 -s quux.rego</pre>
|
<p>
|
and only <code>quux.rego</code> is re-compiled, because the new argument
|
<code>`–pad 1.2'</code> doesn't precede <code>foo.cudo</code>.
|
</p>
|
<p>
|
Changing the name of the output file:
|
</p>
|
<pre class=""src src-sh"">incudine foo.cudo -o <span style=""color: #ffa07a;"">""battimenti zincati.wav""</span> -s quux.rego</pre>
|
<p>
|
Score from standard input:
|
</p>
|
<pre class=""src src-sh"">echo '0 simple 1000 -6 (make-perc .1 1.5) 1' \
|
| incudine foo.cudo -d 2 -s - > rego-from-stdin-1.wav
|
cat quux.rego | incudine foo.cudo -o rego-from-stdin-2.wav -s -</pre>
|
<p>
|
Redirection of the audio to the standard output:
|
</p>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.