Socket
Socket
Sign inDemoInstall

aural-scala

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aural-scala

A codec for Scala scale files.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
13.9 kB
Created
Weekly downloads
 

Changelog

Source

1.0.0 (2015.03.16) :

  • The method parse is now static.
  • The constructor doesn't accept a string to parse as argument anymore.
  • Declare stable (freeze the public API).

Readme

Source

Aural-Scala

Build Status NPM version

A codec for Scala scale files.

Intent

The Scala scale file format is the de facto standard for the description and the exchange of scales and system of tuning.

This module provides a decoder and an encoder for the format.

Installing and testing

With npm do:

npm install aural-scala

To run the test suite, run the following command:

npm test

Examples

Decoding

// the variable string being a valid scala scale format string

var ScalaScale = require('aural-scala'),
    scale = ScalaScale.parse(string);

Encoding

var ScalaScale = require('aural-scala'),
    scale = new ScalaScale();

scale.description = 'Short description of this custom scale';
scale.intervals.push(
    200,
    400,
    600,
    800,
    1000,
    1200
);

var string = scale.toString(); // returns a valid scala scale format string

Public API

Full API documentation

Changelog

1.0.0 (2015.03.16) :

  • The method parse is now static.
  • The constructor doesn't accept a string to parse as argument anymore.
  • Declare stable (freeze the public API).

Full history

Roadmap

  • TBD

License

MIT

FAQs

Last updated on 16 Mar 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc