Skip to content
Permalink
Browse files

midi-note: whoops, include specified offset

  • Loading branch information...
mmckegg committed Nov 29, 2017
1 parent db97ef0 commit 1cfd78dbed5f35e1ad4e3ba845595a926c863488
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/midi-note.js
@@ -4,7 +4,7 @@ module.exports = MidiNote

function MidiNote (context, opts) {
if (!(this instanceof MidiNote)) return new MidiNote(context, opts)
this.offset = context.midiClockOffset()
this.offset = context.midiClockOffset() + (opts.offset || 0)
this.output = opts.output
this.velocity = clamp(Math.round(opts.velocity), 1, 127)
this.channel = clamp(Math.round(opts.channel) || 1, 1, 16)

0 comments on commit 1cfd78d

Please sign in to comment.
You can’t perform that action at this time.