binary-set
v0.1.1
Published
Work with binary representations of pitch sets
Downloads
3
Maintainers
Readme
binary-set
binary-set
is a collection of javascript functions to manipulate binary sets. Binary sets are binary representations of pitch sets and are very useful to compare them (among other things).
var binarySet = require('binary-set')
binarySet.toBinary('C D E F G A B') // => '101011010101'
binarySet.fromBinary('101011010101', 'C') // => ['C', 'D', 'E', 'F', 'G', 'A', 'B']
This is part of tonal:
var tonal = require('tonal')
tonal.binarySet.toBinary('C D E')
Install
Only via npm: npm i --save binary-set
License
MIT License