Scala:
Filter:
Classes (extension) | Tuning > TuningLib

Scala
ExtensionExtension

open Scala files
Location: NOT INSTALLED!

Description

Reads Scala files and creates a Tuning based on them. It can also generate a Scale that includes every interval in the Tuning. See Tuning for the principle methods.

More information about the Scala file format, and a link to the scale library, can be found at:

http://www.huygens-fokker.org/scala/scl_format.html

Class Methods

.open

a more intiutive syntax for opening a Scala file

Arguments:

path

path to the Scala file.

Returns:

a new Scala object

.new

open a Scala file

Arguments:

path

path to the Scala file.

Inherited class methods

Instance Methods

.scale

Generates a Scale which contains as a degree every step in the tuning

Inherited instance methods

Examples

The scale archive, and rules for formatting .scl files, are described at http://www.huygens-fokker.org/scala/scl_format.html as of Nov.11, 2005:

So these lines are all valid pitch lines:

81/64
408.0
408.
5
-5.0
10/20
100.0 cents
 100.0 C#
 5/4   E\

Here is an example of a valid file:

! meanquar.scl
!
1/4-comma meantone scale. Pietro Aaron's temperament (1523)
 12
!
 76.04900
 193.15686
 310.26471
 5/4
 503.42157
 579.47057
 696.57843
 25/16
 889.73529
 1006.84314
 1082.89214
 2/1

An advise for writing a scale file: put the filename on the first line behind an exclamation mark. Then someone receiving the file and reading it knows a name under which to save it.