svg-midi-note

Render a Midi Note as SVG with velocitity and a selected state

Downloads
17
Stars
11
Committers
2

svg-midi-note

Render a Midi Note as SVG with velocity and a selected state.

Usage

const Note = require('svg-midi-note')

const note = Note()

const el = note.render({
  height: 20,
  width: 50,
  velocity: 0.8,
  selected: true
})

svg.appendChild(el)

License

MIT