Skip to content

Commit

Permalink
Merge branch '7.0' of https://github.com/csound/manual into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Sep 5, 2024
2 parents 5b97208 + d30b1a1 commit e9451f3
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 11 deletions.
2 changes: 1 addition & 1 deletion control/sensing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<listitem><para><link linkend="changed2"><citetitle>changed2</citetitle></link></para></listitem>
<listitem><para><link linkend="metro"><citetitle>metro</citetitle></link></para></listitem>
<listitem><para><link linkend="metro2"><citetitle>metro2</citetitle></link></para></listitem>
<listitem><para><link linkend="metrobmp"><citetitle>metrobmp</citetitle></link></para></listitem>
<listitem><para><link linkend="metrobpm"><citetitle>metrobpm</citetitle></link></para></listitem>
<listitem><para><link linkend="miditempo"><citetitle>miditempo</citetitle></link></para></listitem>
<listitem><para><link linkend="seqtime"><citetitle>seqtime</citetitle></link></para></listitem>
<listitem><para><link linkend="seqtime2"><citetitle>seqtime2</citetitle></link></para></listitem>
Expand Down
4 changes: 2 additions & 2 deletions examples/chnset.csd
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ anois rand .1
chnset anois, "noise"
loop:
idur random .3, 1.5
timout 0, idur, do
timout 0, idur, do_
reinit loop
do:
do_:
ifreq random 400, 1200
iamp random .1, .3
asig oscils iamp, ifreq, 0
Expand Down
48 changes: 48 additions & 0 deletions examples/matrices_compare.csd
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<CsoundSynthesizer>
<CsOptions>
-o dac
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
initial ftgen 1, 0, 128, 10, 1 ; initial position = sine wave
idispl ftgen 2, 0, 128, -7, .01, 128, .01 ; displace
imass ftgen 3, 0, 128, -7, 5, 128, 5 ; masses
icent ftgen 4, 0, 128, -7, 1, 128, 1 ; centering
idamp ftgen 5, 0, 128, -7, -.1, 128, -.1 ; damping
itraj ftgen 6, 0, 128, -7, 0, 128, 127 ; trajectory
a0 init 0
irate = .01
;scanu2 init, irate, ifndisplace, ifnmass, imatrix, ifncentr, ifndamp, kmass, kmtrxstiff, kcentr, kdamp, ileft, iright, kpos, kdisplace, ain, idisp, id
scanu2 1, irate, 2, 3, p4, 4, 5, 20, 9, 0.1, .9, .5, .1, 0, 0, a0, 0, 2
;ar scans kamp, kfreq, ifntraj, id
a1 scans 1, 200, 6, 2
if p4 == 50 then
prints "\n using binary matrix system\n", p4
else
prints "\n and now the text matrix system\n", p4
endif
outs a1, a1
endin
</CsInstruments>
<CsScore>
; both matrices are to be found in the examples forlder of the manual
f50 0 16384 -23 "string-128.matrxB" ; binary matrix
f100 0 128 -44 "string-128.matrxT" ; text matrix
i1 0 10 50
i1 12 10 100
e
</CsScore>
</CsoundSynthesizer>
256 changes: 256 additions & 0 deletions examples/string-128.matrxT
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
<MATRIX size=128>
1 2 1
2 1 1
2 3 1
3 2 1
3 4 1
4 3 1
4 5 1
5 4 1
5 6 1
6 5 1
6 7 1
7 6 1
7 8 1
8 7 1
8 9 1
9 8 1
9 10 1
10 9 1
10 11 1
11 10 1
11 12 1
12 11 1
12 13 1
13 12 1
13 14 1
14 13 1
14 15 1
15 14 1
15 16 1
16 15 1
16 17 1
17 16 1
17 18 1
18 17 1
18 19 1
19 18 1
19 20 1
20 19 1
20 21 1
21 20 1
21 22 1
22 21 1
22 23 1
23 22 1
23 24 1
24 23 1
24 25 1
25 24 1
25 26 1
26 25 1
26 27 1
27 26 1
27 28 1
28 27 1
28 29 1
29 28 1
29 30 1
30 29 1
30 31 1
31 30 1
31 32 1
32 31 1
32 33 1
33 32 1
33 34 1
34 33 1
34 35 1
35 34 1
35 36 1
36 35 1
36 37 1
37 36 1
37 38 1
38 37 1
38 39 1
39 38 1
39 40 1
40 39 1
40 41 1
41 40 1
41 42 1
42 41 1
42 43 1
43 42 1
43 44 1
44 43 1
44 45 1
45 44 1
45 46 1
46 45 1
46 47 1
47 46 1
47 48 1
48 47 1
48 49 1
49 48 1
49 50 1
50 49 1
50 51 1
51 50 1
51 52 1
52 51 1
52 53 1
53 52 1
53 54 1
54 53 1
54 55 1
55 54 1
55 56 1
56 55 1
56 57 1
57 56 1
57 58 1
58 57 1
58 59 1
59 58 1
59 60 1
60 59 1
60 61 1
61 60 1
61 62 1
62 61 1
62 63 1
63 62 1
63 64 1
64 63 1
64 65 1
65 64 1
65 66 1
66 65 1
66 67 1
67 66 1
67 68 1
68 67 1
68 69 1
69 68 1
69 70 1
70 69 1
70 71 1
71 70 1
71 72 1
72 71 1
72 73 1
73 72 1
73 74 1
74 73 1
74 75 1
75 74 1
75 76 1
76 75 1
76 77 1
77 76 1
77 78 1
78 77 1
78 79 1
79 78 1
79 80 1
80 79 1
80 81 1
81 80 1
81 82 1
82 81 1
82 83 1
83 82 1
83 84 1
84 83 1
84 85 1
85 84 1
85 86 1
86 85 1
86 87 1
87 86 1
87 88 1
88 87 1
88 89 1
89 88 1
89 90 1
90 89 1
90 91 1
91 90 1
91 92 1
92 91 1
92 93 1
93 92 1
93 94 1
94 93 1
94 95 1
95 94 1
95 96 1
96 95 1
96 97 1
97 96 1
97 98 1
98 97 1
98 99 1
99 98 1
99 100 1
100 99 1
100 101 1
101 100 1
101 102 1
102 101 1
102 103 1
103 102 1
103 104 1
104 103 1
104 105 1
105 104 1
105 106 1
106 105 1
106 107 1
107 106 1
107 108 1
108 107 1
108 109 1
109 108 1
109 110 1
110 109 1
110 111 1
111 110 1
111 112 1
112 111 1
112 113 1
113 112 1
113 114 1
114 113 1
114 115 1
115 114 1
115 116 1
116 115 1
116 117 1
117 116 1
117 118 1
118 117 1
118 119 1
119 118 1
119 120 1
120 119 1
120 121 1
121 120 1
121 122 1
122 121 1
122 123 1
123 122 1
123 124 1
124 123 1
124 125 1
125 124 1
125 126 1
126 125 1
126 127 1
127 126 1
127 128 1
128 127 1
</MATRIX>
2 changes: 1 addition & 1 deletion opcodes/vibes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ url="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/"><citetit
</example>
</para>
<para>
A musical examples featuring the vibes opcode: <ulink url="examples/musical/Vibes_Pena.csd"><citetitle>Vibes_Pena.csd</citetitle></ulink>, by luis Antunes Pena.
A musical example featuring the vibes opcode: <ulink url="examples/musical/Vibes_Pena.csd"><citetitle>Vibes_Pena.csd</citetitle></ulink>, by luis Antunes Pena.
</para>
</refsect1>

Expand Down
23 changes: 16 additions & 7 deletions siggen/scantop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,14 @@ As an example for the binary matrix, for 4 masses we have the following grid des
</para>

<para>
As an example of a text matrix (see <link linkend="GEN44"><citetitle>GEN44</citetitle></link>), for 4 masses we have the following grid describing the possible connections:
As an example of a text matrix (see <link linkend="GEN44"><citetitle>GEN44</citetitle></link>), for the same 4 masses we have the following grid describing the connections:
</para>
<informalexample>
<programlisting>
&lt;MATRIX size=4&gt;
0 0 4
1 1 2
2 2 4
3 3 3
1 2 4
2 3 2
3 4 6
&lt;/MATRIX&gt;
</programlisting>
</informalexample>
Expand All @@ -195,9 +194,19 @@ As an example for the binary matrix, for 4 masses we have the following grid des
<para>
Both these matrix examples are very small and simple. In practice, most scanned synthesis instruments will use many more masses than four, so their matrices will be much larger and more complex. See the example in the <link linkend="scans"><citetitle>scans</citetitle></link> documentation.
</para>


<refsect1>
<para>
Here is an example that compares the binary and the text matrix. They sound the same. It uses the file <ulink url="examples/matrices_compare.csd"><citetitle>matrices_compare.csd</citetitle></ulink>.
<example>
<title>Example comparing the use of the binary and the text matrix.</title>
<xi:include href="examples-xml/matrices_compare.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
</refsect1>

<para>
Please note that the generated dynamic wavetables can be very unstable. Certain values for masses, centering, and damping can cause the system to <quote>blow up</quote> and the most interesting sounds to emerge from your loudspeakers!
Please note that generated dynamic wavetables can be very unstable. Certain values for masses, centering, and damping can cause the system to <quote>blow up</quote> and the most interesting sounds to emerge from your loudspeakers!
</para>

<para>
Expand Down

0 comments on commit e9451f3

Please sign in to comment.