This file is indexed.

/usr/share/SuperCollider/HelpSource/Classes/Dswitch1.schelp is in supercollider-common 1:3.8.0~repack-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
class:: Dswitch1
summary:: Demand rate generator for switching between inputs.
related:: Classes/Demand, Classes/Duty, Classes/TDuty, Classes/Dswitch
categories:: UGens>Demand

Description::

Demand rate generator for switching between inputs.

See link::Classes/Pswitch1:: for structurally related equivalent.


classmethods::

method::new

argument::list

Array of values or other UGens.


argument::index

Which of the inputs to return.


Examples::

code::

(
{
	var a, freq, trig;
	a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));
	trig = Impulse.kr(3);
	freq = Demand.kr(trig, 0, a) * 30 + 340;
	SinOsc.ar(freq) * 0.1

}.play;
)

(
{
	var a, freq, trig;
	a = Dswitch1({ |i| Dseq((0..i*3), inf) } ! 5, MouseX.kr(0, 4));
	trig = Impulse.kr(6);
	freq = Demand.kr(trig, 0, a) * 30 + 340;
	SinOsc.ar(freq) * 0.1

}.play;
)

::