Code Monkey home page Code Monkey logo

midikeys's Introduction

midikeys

browser keyboard that reads MIDI input

various technical details that are helpful to know:

message.data = Uint8Array containing the data bytes of a single MIDI message midi specs: midi.org/specifications-old/item/table-1-summary-of-midi-message

values in decimal by default, convert to hex when referencing specs

message.data[0]: status/event (e.g. 144:note on, 128:note off)

data[1,2] content/formats depends on the event some events won't return data[2] at all (e.g. 208:after-touch, only returns pressure value)

when data[0] = 144 || 128: message.data[1]: note number message.data[2]: velocity 0-127

other data[0] values: 248: Timing Clock. Sent 24 times per quarter note 254: Active Sensing. Sent repeatedly to tell the receiver that connection is alive

For my own keyboard, middle C is note 60- this demo utilizes 2 octaves

sample ABC notation (donna lee) right z4(3gag f=e|_edcB =ACEF|(3_GAG FE =DFAc|GF z2 z2 =E=D left [A,,E,C]8|[F,,E,=A,]8|[B,,=D,A,]8

midikeys's People

Contributors

bsharpcb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.