aboutsummaryrefslogtreecommitdiffstats
path: root/HelpSource/Classes/ZZZ.schelp
blob: f62a95c0fbdf9b61b6356c71448a37642378dc94 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
TITLE:: ZZZ
summary:: Abstract superclass of all module specific Expert Sleepers classes
categories:: External Control>Eurorack
related:: Classes/ZZZDevice

DESCRIPTION:: Users will normally not directly create instances of ZZZ, but
only use it through its subclasses. It provides basic conversion methods, that
can be used to drive DC coupled hardware of the Eurorack standard.
Additionally it provides link::Classes/SynthDef##SynthDefs::, which will be
added during instantiation, that can be used for clock and gate signals.

CLASSMETHODS::

subsection:: Initialization

METHOD:: new
Initialize a new instance.

note::Do not call this method directly but instead derive a class from this one
and use this method in the child's classes initialization method (see
link::Classes/ZZZDevice:: for an example).::

ARGUMENT:: channels
An link::Classes/Array:: of link::Classes/Integer##Integers:: representing
output bus channels (within the range of
link::Classes/ServerOptions#-numOutputBusChannels::) on a
link::Classes/Server::.

ARGUMENT:: server
An instance of link::Classes/Server::.

returns:: An instance of link::Classes/ZZZ::.

METHOD:: initClass
Uses link::Classes/StartUp#*add:: to add link::Classes/SynthDef##SynthDefs:: 
used by child classes.

list::
## code::\ZZZGate::: A gate link::Classes/SynthDef:: utilizing link::Classes/DC::.
## code::\ZZZClock::: A clock link::Classes/SynthDef:: (24 beats per quarter
note) utilizing link::Classes/LFPulse::.
## code::\ZZZClockKorg::: A clock link::Classes/SynthDef:: (48 beats per quarter
note) utilizing link::Classes/LFPulse::.
::

subsection::Conversion

METHOD:: ampmidi
Calculates midi note for supplied amplitude.

ARGUMENT:: amplitude
Amplitude in the range from 0.0 to 1.0.

returns:: MIDI note for corresponding amplitude, nil if amplitude is not within
the allowed octave range.

METHOD:: noteCpsRangeMax
Cps for MIDI note C10.

returns:: Returns cps for MIDI note C10.

METHOD:: cvMaxADSR
Maximum voltage for ADSR on Eurorack modules.

returns:: Returns maximum voltage for ADSR.

METHOD:: noteCpsRangeMin
Cps for MIDI note C-2.

returns:: Returns cps for MIDI note C-2.

METHOD:: midiamp
Calculates amplitude for supplied MIDI note.

ARGUMENT:: midi
MIDI note.

returns:: Amplitude for corresponding midi note, nil if < 0 or > 127

METHOD:: cvMinADSR
Minimum voltage for ADSR on Eurorack modules.

returns:: Returns minimum voltage for ADSR.

METHOD:: cvMaxTriggerGateClock
Maximum trigger/gate/clock control voltage for Eurorack modules.

returns:: Returns maximum maximum trigger/gate/clock control voltage for Eurorack modules.

METHOD:: cpsvoltage
Calculates voltage for supplied cycles per second.

ARGUMENT:: cps
Cycles per seconds

returns:: Returns voltage for corresponding cycles per second.

METHOD:: noteVoltageRangeMin
Maximum voltage for a note on Eurorack modules.

returns:: Returns maximum voltage for notes.

METHOD:: amplitudevoltage
(describe method here)

ARGUMENT:: amplitude
(describe argument here)

returns:: (describe returnvalue here)

METHOD:: cvMaxLFO
(describe method here)

returns:: (describe returnvalue here)

METHOD:: noteVoltageRangeMax
(describe method here)

returns:: (describe returnvalue here)

METHOD:: ampcps
(describe method here)

ARGUMENT:: amplitude
(describe argument here)

returns:: (describe returnvalue here)

METHOD:: cvMinTriggerGateClock
(describe method here)

returns:: (describe returnvalue here)

METHOD:: voltageamplitude
(describe method here)

ARGUMENT:: voltage
(describe argument here)

returns:: (describe returnvalue here)

METHOD:: cpsamp
(describe method here)

ARGUMENT:: cps
(describe argument here)

returns:: (describe returnvalue here)

METHOD:: cvMinLFO
(describe method here)

returns:: (describe returnvalue here)

METHOD:: voltagecps
(describe method here)

ARGUMENT:: voltage
(describe argument here)

returns:: (describe returnvalue here)


INSTANCEMETHODS::

METHOD:: channels
Returns an link::Classes/Array:: of link::Classes/Integer##Integers:: 
representing output bus channels (within the range of
link::Classes/ServerOptions#-numOutputBusChannels::) on a
link::Classes/Server:: that was used in link::#*new:: to initialize an instance
of this class (or any of its subclasses).

returns:: An link::Classes/Array:: of link::Classes/Integer##Integers::.

METHOD:: server
Returns a link::Classes/Server:: instance that was used in link::#*new:: to
initialize an instance of this class (or any of its subclasses).

returns:: A link::Classes/Server:: instance.