Nefarious Pomegranate Magnate

    interval-simplify

    1.0.1 • Public • Published

    interval-simplify npm version

    tonal

    Simplify musical intervals:

    var simplify = require('interval-simplify')
    simplify('9M') // => '2M'
    ['8P', '9M', '10M', '11P', '12P', '13M', '14M', '15P'].map(simplify)
    // => [ '8P', '2M', '3M', '4P', '5P', '6M', '7M', '8P' ]
    simplify('2M') // => '2M'
    simplify('-2M') // => '7m'

    This is part of tonal:

    var tonal = require('tonal')
    tonal.interval.simplify('9M') // => '2M'

    License

    MIT License

    Install

    npm i interval-simplify

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • avatar