Skip to content

Node module for converting a Scala scale file (.scl) to Javascript array.

Notifications You must be signed in to change notification settings

jcpst/scl-to-frequency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scala to MIDI Frequencies

This is for Scala scale files (.scl). Scala is a software program used for experimenting with musical tunings. This has nothing to do with the programming language also called Scala.

This was heavily inspired by the Lua script that eventually became a Renoise plugin:

http://forum.renoise.com/index.php/topic/28495-snippet-load-scala-scl-tuning-file

You point it to an .scl file, and it returns an array of frequencies, where the index matches the MIDI note (0 -127).

Example:

var scl = require('scl-to-frequencies');

scl('/path/to/scl/file');

// Defaults to Middle C at MIDI note 48 and 261.625565300598623 Hz.
scl('/path/to/scl/file', 48, 261.625565300598623);

About

Node module for converting a Scala scale file (.scl) to Javascript array.

Resources

Stars

Watchers

Forks

Packages

No packages published