This file is indexed.

/usr/share/SuperCollider/HelpSource/Classes/Tuning.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
CLASS::Tuning
summary::represents a musical tuning
related::Classes/Scale
categories:: Tuning

DESCRIPTION::
Represents a musical tuning (e.g. equal temperament, just intonation, etc.). Used in conjunction with link::Classes/Scale:: to generate pitch information.

code::
t = Tuning.et12;
t.semitones;		// [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]
t.ratios;		// [ 1, 1.0594630943591, 1.1224620483089, 1.1892071150019, etc. ]

Pbind(\scale, Scale.major(t), \degree, Pseq((0..7) ++ (6..0) ++ [\rest], 1), \dur, 0.25).play;

// use non-standard tuning
t = Tuning.just;
t.semitones;		// [ 0, 1.1173128526978, 2.0391000173077, 3.1564128700055, etc. ]
t.ratios.collect(_.round(0.001));	// [ 1, 1.067, 1.125, 1.2, 1.25, 1.333, 1.406, 1.5, etc. ]

Pbind(\scale, Scale.major(t), \degree, Pseq((0..7) ++ (6..0) ++ [\rest], 1), \dur, 0.25).play;
::

subsection::Creation

strong::just, pythagorean, werckmeister, johnston, partch, wcAlpha, bp, etc.::

Creates a tuning from the library stored in link::Classes/TuningInfo::. For a complete list of available tunings, execute
code::
Tuning.directory
::

CLASSMETHODS::

method::et
Creates an equal-tempered scale based on pitchesPerOctave.

method::choose
Creates a random tuning from the library, constrained by size (which defaults to 12).
code::
Scale.major(Tuning.choose).tuning.name;
::

method::new
Creates a Tuning using some or all of the parameters as follows: strong::tuning:: can be the name of a library tuning (in which case that tuning is returned); an array of floats representing the semitone values of the tuning (in which case pitchesPerOctave will be set to the size of the array regardless of the second parameter); or nil (in which case the default tuning for strong::pitchesPerOctave:: will be returned). strong::octaveRatio:: defaults to 2.0, but can be set differently for stretched or compressed tunings.
code::
Tuning.new(\et12);	// standard equal temperament
// custom tuning
Tuning.new(#[ 0, 0.795, 2.251, 3.251, 4.036, 4.680, 5.915, 7.221, 8.013, 9.29, 9.930, 11.032 ]);
Tuning.new((0..11).collect(_ * (2.08 ** (1/12))), 2.08, "Stretched ET12");
::

INSTANCEMETHODS::

private::storeOn, storedKey, storeArgs, printOn

method::semitones
Returns an array of semitone values for the pitch set. link::#-as::(Array) is equivalent; link::#-as::(List) returns it as a list, etc.

method::cents
Returns a array of cent values for the pitch set.

method::ratios
Returns a tuned array of ratios for the pitch set.

EXAMPLES::

For examples of use, see the link::Classes/Scale:: help file.