Debian Codegraph @

opcodes/hsboscil.xml

raw symbols SCIP
1
2 <refentry id="hsboscil">
3 <indexterm id="Indexhsboscil"><primary>hsboscil</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Additive Synthesis/Resynthesis</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>hsboscil</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>hsboscil</refname>
13 <refpurpose>
14 An oscillator which takes tonality and brightness as arguments.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 An oscillator which takes tonality and brightness as arguments, relative to a base frequency.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>hsboscil</command> kamp, ktone, kbrite, ibasfreq, iwfn, ioctfn \
28 [, ioctcnt] [, iphs]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ibasfreq</emphasis> -- base frequency to which tonality and brighness are relative
35 </para>
36
37 <para>
38 <emphasis>iwfn</emphasis> -- function table of the waveform, usually a sine
39 </para>
40
41 <para>
42 <emphasis>ioctfn</emphasis> -- function table used for weighting the octaves, usually something like:
43 <literallayout><emphasis role="stamnt">f</emphasis>1 0 1024 -19 1 0.5 270 0.5</literallayout>
44 </para>
45
46 <para>
47 <emphasis>ioctcnt</emphasis> (optional) -- number of octaves used for brightness blending. Must be in the range 2 to 10. Default is 3.
48 </para>
49
50 <para>
51 <emphasis>iphs</emphasis> (optional, default=0) -- initial phase of the oscillator. If <emphasis>iphs</emphasis> = -1, initialization is skipped.
52 </para>
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>kamp</emphasis> -- amplitude of note
59 </para>
60
61 <para>
62 <emphasis>ktone</emphasis> -- cyclic tonality parameter relative to <emphasis>ibasfreq</emphasis> in logarithmic octave, range 0 to 1, values &gt; 1 can be used, and are internally reduced to <emphasis>frac</emphasis>(<emphasis>ktone</emphasis>).
63 </para>
64
65 <para>
66 <emphasis>kbrite</emphasis> -- brightness parameter relative to <emphasis>ibasfreq</emphasis>, achieved by weighting <emphasis>ioctcnt</emphasis> octaves. It is scaled in such a way, that a value of 0 corresponds to the orignal value of <emphasis>ibasfreq</emphasis>, 1 corresponds to one octave above <emphasis>ibasfreq</emphasis>, -2 corresponds to two octaves below <emphasis>ibasfreq</emphasis>, etc. <emphasis>kbrite</emphasis> may be fractional.
67 </para>
68
69 <para>
70 <emphasis>hsboscil</emphasis> takes tonality and brightness as arguments, relative to a base frequency (<emphasis>ibasfreq</emphasis>). Tonality is a cyclic parameter in the logarithmic octave, brightness is realized by mixing multiple weighted octaves. It is useful when tone space is understood in a concept of polar coordinates.
71 </para>
72
73 <para>
74 Making <emphasis>ktone</emphasis> a line, and <emphasis>kbrite</emphasis> a constant, produces Risset's glissando.
75 </para>
76
77 <para>
78 Oscillator table <emphasis>iwfn</emphasis> is always read interpolated. Performance time requires about <emphasis>ioctcnt</emphasis> * <emphasis>oscili</emphasis>.
79 </para>
80 </refsect1>
81
82 <refsect1>
83 <title>Examples</title>
84 <para>
85 Here is an example of the hsboscil opcode. It uses the file <ulink url="examples/hsboscil.csd"><citetitle>hsboscil.csd</citetitle></ulink>.
86
87 <example>
88 <title>Example of the hsboscil opcode.</title>
89
90 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
91 <xi:include href="examples-xml/hsboscil.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
92 </example>
93 </para>
94
95 <para>
96 Here is an example of the hsboscil opcode in a MIDI instrument. It uses the file <ulink url="examples/hsboscil_midi.csd"><citetitle>hsboscil_midi.csd</citetitle></ulink>.
97
98 <example>
99 <title>Example of the hsboscil opcode in a MIDI instrument.</title>
100
101 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
102 <xi:include href="examples-xml/hsboscil_midi.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
103 </example>
104 </para>
105 </refsect1>
106
107 <refsect1>
108 <title>See also</title>
109 <para><link linkend="SiggenAdditive"><citetitle>Additive Synthesis/Resynthesis</citetitle></link></para>
110 </refsect1>
111
112 <refsect1>
113 <title>Credits</title>
114 <para>
115 <simplelist>
116 <member>Author: Peter Neub&auml;cker</member>
117 <member>Munich, Germany</member>
118 <member>August, 1999</member>
119 </simplelist>
120 </para>
121
122 <para>New in Csound version 3.58</para>
123 </refsect1>
124 </refentry>