Skip to content

Commit

Permalink
midi-note: whoops, include specified offset
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Nov 29, 2017
1 parent db97ef0 commit 1cfd78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/midi-note.js
Expand Up @@ -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)
Expand Down

0 comments on commit 1cfd78d

Please sign in to comment.