Coder Social home page Coder Social logo

zthxxx / midk Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 8.63 MB

Mapping MIDI keypress to PC keyboard, that you can work or code with your MIDI kerboard ๐ŸŽ‰

Home Page: https://midk.zthxxx.me

License: MIT License

JavaScript 10.13% TypeScript 84.26% HTML 3.07% CSS 2.39% Shell 0.14%
midi keyboard keyboard-layout midi-keyboard portal

midk's Introduction

๐ŸŽน MIDK

Build Status NPM Version NPM Downloads Node.js License

Mapping MIDI keypress to PC keyboard, that you can work or code with your MIDI kerboard ๐ŸŽ‰

(e.g. this project is code in midk)

midk-portal

Install & Usage

npm i -g midk

midk

Dev & Debug

launch midk portal and watching files change

npm start

visual the keys-mapping like the above preview image, preview in https://midk.zthxxx.me

npm run cheatsheet

Customization

you can customize keys-mapping in config file ~/.midk/midk.yml (created after install).

the default config is stored in src/portal.ts

# choose a pitch notation which is used for note names in config
# https://en.wikipedia.org/wiki/Helmholtz_pitch_notation
# https://en.wikipedia.org/wiki/Scientific_pitch_notation
pitchNotation: Scientific  # Scientific | Helmholtz

# if enable playMode, stop to control keyboard
playMode:
  # default enable when start
  enable: false
  # composite keys to toggle enable/disable playMode
  toggle:
    - CSharp2
    - DSharp2
    - ASharp5

# all supported key names are written in `keyboard.ts`
# https://github.com/zthxxx/midk/blob/master/src/keyboard.ts
#
# interface Portal {
#   [NoteName]: KeyName
# }
portal:
  CSharp2: escape
  FSharp2: tab
  G2: control
  GSharp2: capsLock
  A2: alt
  ASharp2: shift
  B2: command

  C3: a
  CSharp3: q
  D3: z
  DSharp3: w
  E3: s
  F3: x

  ...

# when press the Fn-key, alter some keys mapping
#
# interface FnPortal {
#   [NoteName]: Portal
# }
fnPortal:
  C2:
    CSharp3: f1
    D3: f2
    DSharp3: f3
    E3: f4
    F3: f5

    ...

License

MIT LICENSE

Author

midk ยฉ zthxxx, Released under the MIT License.

Blog @zthxxx ยท GitHub @zthxxx

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.