2.0.1 • Published 5 months ago

jazz-midi-electron v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 months ago

jazz-midi-electron

npm npm build Coverage Status

MIDI for Electron

MIDI integration in Electron applications.

( see also: jazz-midi-vscode ... )

Notice: v2.x.x introduces some breaking changes,
however, upgrading old projects from v1.x.x will well worth the trouble.
You are getting:

  • fewer dependencies
  • improved code security
  • no additional installs required

Examples

sample-midi-piano
screenshot

sample-midi-player
screenshot

Install

npm install jazz-midi-electron --save

Usage

( see the examples above... )

Main Process

const JZZ = require('jzz');
// jazz-midi-electron is not required if using MIDI only in the Main Process
// ...
JZZ().openMidiOut() // ...

Main Process can use JZZ.js as normal Node.js application.
It can access regular MIDI ports and create virtual ports.

Browser Window

<script src='node_modules/jazz-midi-electron/jazz-midi-electron.js'></script>
<script src='node_modules/jzz/javascript/JZZ.js'></script>
// ...
JZZ().openMidiOut() // ...
// when creating the Browser Window:
const JME = require('jazz-midi-electron');
// ...
win = new BrowserWindow({
    // ...
    webPreferences: { // see the preload.js in this repository
        preload: path.join(__dirname, 'preload.js')
    }
});
JME.init(win);
// ...

Browser Window will see all MIDI ports (including virtual) available to the Main Process.
It can create additional Web Audio and HTML-based MIDI ports (see jzz-synth-tiny and jzz-input-kbd).

2.0.1

5 months ago

1.2.6

1 year ago

2.0.0

1 year ago

1.2.5

1 year ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago