Debian Codegraph @

opcodes/bob.xml

raw symbols SCIP
1
2 <!--Change refentry id and indexterm id-->
3 <refentry id="bob">
4 <indexterm id="IndexBob"><primary>bob</primary></indexterm>
5 <!--Make sure the category below is a valid one! See categories.py-->
6 <refentryinfo><title>Signal Modifiers:Standard Filters:Resonant</title></refentryinfo>
7 <refmeta>
8 <refentrytitle>bob</refentrytitle>
9 </refmeta>
10
11 <refnamediv>
12 <refname>bob</refname>
13 <refpurpose>
14 Runge-Kutte numerical simulation of the Moog analog resonant filter.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Bob is based on bob~ by Miller Puckette in Pure Data. The design is based on the papers by Tim Stilson, Timothy E. Stinchcombe, and Antti Huovilainen.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf version-->
28 <synopsis>asig <command>bob</command> ain, xcf, xres, xsat [, iosamps, istor]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <!-- If applicable list i-time arguments-->
33 <title>Initialization</title>
34 <para>
35 <emphasis>iosamps</emphasis> -- number of times of oversampling used in the filtering process. This will determine the maximum sharpness of the filter resonance (Q). More oversampling allows higher Qs, less oversampling will limit the resonance. The default is 2 times (iosamps=0).
36 </para>
37 <para>
38 <emphasis>istor</emphasis> -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0.
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Performance</title>
44 <!-- First list all input and output performance parameters-->
45 <para>
46 <emphasis>asig</emphasis> -- input signal
47 </para>
48 <para>
49 <emphasis>xcf</emphasis> -- filter cutoff frequency
50 </para>
51 <para>
52 <emphasis>xres</emphasis> -- filter resonance. Nominally, a value of 4 should be the limit of stability -- above that, the filter oscillates.
53 </para>
54 <para>
55 <emphasis>xsat</emphasis> -- saturation. This parameter determines at what signal level the "transistors" in the model saturate. The maximum output amplitude is about 2/3 of that value.
56 </para>
57 <para>
58 According to bob~ manual page, "By default bob~ does one step of 4th-order Runge-Kutte
59 integration per audio sample. This works OK for resonant/cutoff frequencies up to about 1/2 Nyquist.
60 To improve accuracy and/or to extend the range of the filter to higher cutoff frequencies you can
61 oversample by any factor - but note that computation time rises accordingly.
62 At high cutoff frequencies/resonance values the RK approximation can go unstable.
63 You can combat this by raising the oversampling factor.
64 The saturation parameter determines at what signal level the "transistors"
65 in the model saturate. The maximum output amplitude is about 2/3 of that value".
66 </para>
67
68 </refsect1>
69
70
71 <refsect1>
72 <!--To add examples, create the csd file in the examples directory, then run:-->
73 <!--python csd2docbook.py -f newopcodename.csd-->
74 <!--to generate the xml highlighted version used below-->
75 <title>Examples</title>
76 <para>
77 Here is an example of the bob opcode. It uses the file <ulink url="examples/bob.csd"><citetitle>bob.csd</citetitle></ulink>.
78 <example>
79 <title>Example of the bob opcode.</title>
80 <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>
81 <xi:include href="examples-xml/bob.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
82 </example>
83 </para>
84 </refsect1>
85
86 <refsect1>
87 <title>See also</title>
88 <para><link linkend="SigmodStandard"><citetitle>Standard Filters: Resonant Low-pass filters</citetitle></link></para>
89 </refsect1>
90
91 <refsect1>
92 <!-- And put your name and other relevant information here-->
93 <title>Credits</title>
94 <para>By: Gleb Rogozinsky 2020</para>
95 <para>New in version 6.15</para>
96 </refsect1>
97
98 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
99 <!--Add the entity to manual.xml-->
100 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
101 <!--And you're set! Maybe delete the comments as well...-->
102
103 </refentry>