Last active
December 11, 2015 19:51
-
-
Save MadcapJake/afa8a2d5e4f718ade99c to your computer and use it in GitHub Desktop.
Atom Package Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIDI = require 'midi' | |
{CompositeDisposable} = require 'atom' | |
module.exports = ActivateAuxiliaryControls = | |
subscriptions: null | |
activate: (state) -> | |
@subscriptions = new CompositeDisposable | |
input = new MIDI.input() | |
name = input.getPortName(1) | |
console.log name | |
# input.on 'message', (deltaTime, message) -> | |
# console.log "m: #{message} d: #{deltaTime}" | |
consumeStatusBar: (statusBar) -> | |
auxIcon = document.createElement('span') | |
auxIcon.classList.add('icon', 'icon-settings') | |
@statusBarTile = statusBar.addRightTile(item: auxIcon, priority: 250) | |
deactivate: -> | |
@subscriptions.dispose() | |
@statusBarTile?.destroy() | |
@statusBarTile = null | |
# serialize: -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "activate-auxiliary-controls", | |
"main": "./lib/main", | |
"version": "0.0.1", | |
"description": "Execute keyboard shortcuts with your MIDI devices", | |
"keywords": [ | |
"midi", | |
"keyboard", | |
"shortcuts" | |
], | |
"repository": "https://github.com/madcapjake/activate-auxiliary-controls", | |
"license": "MIT", | |
"engines": { | |
"atom": "*" | |
}, | |
"dependencies": { | |
"midi": "^0.9.4" | |
}, | |
"consumedServices": { | |
"status-bar": { | |
"versions": { "^1.0.0": "consumeStatusBar" } | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── CHANGELOG.md | |
├── keymaps | |
│ └── activate-auxiliary-controls.cson | |
├── lib | |
│ └── main.coffee | |
├── LICENSE.md | |
├── node_modules | |
│ └── midi | |
├── package.json | |
├── README.md | |
├── spec | |
│ └── activate-auxiliary-controls-spec.coffee | |
└── styles | |
6 directories, 7 files | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment