summaryrefslogtreecommitdiff
path: root/examples-xml/outkpc.csd.xml
blob: 94c5dfe9ef079d47fc5280ba798511a419785209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<programlisting>
<emphasis role="csdtag">&lt;CsoundSynthesizer&gt;</emphasis>
<emphasis role="csdtag">&lt;CsOptions&gt;</emphasis>
<emphasis role="comment">; Select audio/midi flags here according to platform</emphasis>
<emphasis role="comment">; Audio out   Audio in    No messages</emphasis>
-odac           -iadc     -d         -M0  -Q1<emphasis role="comment">;;;RT audio I/O with MIDI in</emphasis>
<emphasis role="csdtag">&lt;/CsOptions&gt;</emphasis>
<emphasis role="csdtag">&lt;CsInstruments&gt;</emphasis>

<emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
<emphasis role="ohdr">kr</emphasis> <emphasis role="op">=</emphasis> 4410
<emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 10
<emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2

<emphasis role="comment">; Example by Giorgio Zucco 2007</emphasis>

kprogram <emphasis role="opc">init</emphasis> 0

<emphasis role="oblock">instr</emphasis> 1 <emphasis role="comment">;Triggered by MIDI notes on channel 1</emphasis>

  ifund   <emphasis role="opc">notnum</emphasis>
  ivel 	<emphasis role="opc">veloc</emphasis>
  idur <emphasis role="op">=</emphasis> 1

<emphasis role="comment">; Sends a MIDI program change message according to</emphasis>
<emphasis role="comment">; the triggering note's velocity</emphasis>
<emphasis role="opc">outkpc</emphasis>     1 ,ivel ,0 ,127

<emphasis role="opc">noteondur</emphasis>  1 ,ifund ,ivel ,idur

<emphasis role="oblock">endin</emphasis>

<emphasis role="csdtag">&lt;/CsInstruments&gt;</emphasis>
<emphasis role="csdtag">&lt;CsScore&gt;</emphasis>
<emphasis role="comment">; Dummy ftable</emphasis>
<emphasis role="stamnt">f</emphasis> 0 60
<emphasis role="csdtag">&lt;/CsScore&gt;</emphasis>
<emphasis role="csdtag">&lt;/CsoundSynthesizer&gt;</emphasis>
</programlisting>