djipco / webmidi

Tame the Web MIDI API. Send and receive MIDI messages with ease. Control instruments with user-friendly functions (playNote, sendPitchBend, etc.). React to MIDI input with simple event listeners (noteon, pitchbend, controlchange, etc.).
Apache License 2.0
1.54k stars 115 forks source link

rawValue does not work for channelAfterTouch #401

Closed woppa684 closed 9 months ago

woppa684 commented 9 months ago

As can be seen here, the value is always multiplied by 127

https://github.com/djipco/webmidi/blob/c8ab29cac632179f2e0f0d255c56b12d90ecaf16/src/OutputChannel.js#L1138C9-L1138C35

djipco commented 9 months ago

Thank you for reporting this. It has been fixed in release 3.1.8 which is available on NPM right now.