How to use the music-scale/all.get function in music-scale

To help you get started, we’ve selected a few music-scale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github danigb / music-scale / app / router.js View on Github external
riot.route(function (decimal, name) {
    var scale = /^\d{4}$/.test(decimal) ? Scale.get(+decimal) : null
    if (scale) {
      if (!/^\s*$/.test(name)) {
        name = (name in scale.names()) ? name : scale.name()
        app.select(name || scale.decimal)
      } else {
        route(scale.decimal, scale.name() || scale.binary)
      }
    } else {
      var clean = decodeURIComponent(name)
      scale = Scale.get(clean)
      if (scale) route(scale.decimal, name)
    }
  })
github danigb / music-scale / app / router.js View on Github external
riot.route(function (decimal, name) {
    var scale = /^\d{4}$/.test(decimal) ? Scale.get(+decimal) : null
    if (scale) {
      if (!/^\s*$/.test(name)) {
        name = (name in scale.names()) ? name : scale.name()
        app.select(name || scale.decimal)
      } else {
        route(scale.decimal, scale.name() || scale.binary)
      }
    } else {
      var clean = decodeURIComponent(name)
      scale = Scale.get(clean)
      if (scale) route(scale.decimal, name)
    }
  })
github danigb / music-scale / browser.js View on Github external
riot.route(function (decimal, name) {
    var scale = /^\d{4}$/.test(decimal) ? Scale.get(+decimal) : null
    if (scale) {
      if (!/^\s*$/.test(name)) {
        name = (name in scale.names()) ? name : scale.name()
        app.select(name || scale.decimal)
      } else {
        route(scale.decimal, scale.name() || scale.binary)
      }
    } else {
      var clean = decodeURIComponent(name)
      scale = Scale.get(clean)
      if (scale) route(scale.decimal, name)
    }
  })
github danigb / music-scale / browser.js View on Github external
riot.route(function (decimal, name) {
    var scale = /^\d{4}$/.test(decimal) ? Scale.get(+decimal) : null
    if (scale) {
      if (!/^\s*$/.test(name)) {
        name = (name in scale.names()) ? name : scale.name()
        app.select(name || scale.decimal)
      } else {
        route(scale.decimal, scale.name() || scale.binary)
      }
    } else {
      var clean = decodeURIComponent(name)
      scale = Scale.get(clean)
      if (scale) route(scale.decimal, name)
    }
  })
github danigb / music-scale / app / scales.js View on Github external
get: function (name, root) {
    return scaleData(name, root, Scale.get(name))
  },
  build: function () {
github danigb / music-scale / browser.js View on Github external
get: function (name, root) {
    return scaleData(name, root, Scale.get(name))
  },
  build: function () {

music-scale

Create music scales

MIT
Latest version published 9 years ago

Package Health Score

66 / 100
Full package analysis