Node module for converting a Scala scale file (.scl) to Javascript array.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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:

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


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


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