Represents a musical tuning (e.g. equal temperament, just intonation, etc.). Used in conjunction with Scale to generate pitch information.
just, pythagorean, werckmeister, johnston, partch, wcAlpha, bp, etc.
Creates a tuning from the library stored in
Tuning.all. For a complete list of available tunings, execute
Creates an equal-tempered scale based on pitchesPerOctave.
Creates a random tuning from the library, constrained by size (which defaults to 12).
Creates a Tuning using some or all of the parameters as follows: 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 pitchesPerOctave will be returned). octaveRatio defaults to 2.0, but can be set differently for stretched or compressed tunings.
Returns a array of cent values for the pitch set.
Returns a tuned array of ratios for the pitch set.
For examples of use, see the Scale help file.