Skip to content

Commit

Permalink
Updated version and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Sep 14, 2019
1 parent 7e7dce9 commit e61d44e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: [ 'javascript/*.js', 'test/*.js' ]
all: [ 'javascript/*.js' ]
},
uglify: {
javascript: {
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ by running `npm remove midi-test --save-dev`.
##### CDN

<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@0.9.1"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@0.9.2"></script> // any particular version
//...

##### CommonJS (Browserify and Node.js command line applications)
Expand Down Expand Up @@ -119,6 +119,25 @@ by running `npm remove midi-test --save-dev`.
port.ch(0).noteOn('C#5').wait(500).noteOff('C#5'); // using channels
port.ch(0).note('C#5', 127, 500); // using channels

##### Asynchronous calls

// in the environments that support async/await:
async function playNote() {
var midi = await JZZ();
var port = await midi.openMidiOut();
await port.noteOn(0, 'C5', 127);
await port.wait(500);
await port.noteOff(0, 'C5');
await port.close();
console.log('done!');
}
// or:
async function playAnotherNote() {
var port = await JZZ().openMidiOut();
await port.noteOn(0, 'C5', 127).wait(500).noteOff(0, 'C5').close();
console.log('done!');
}

## Additional modules
- [**JZZ-midi-SMF**](https://github.com/jazz-soft/JZZ-midi-SMF) - Standard MIDI files: read / write / play
- [**JZZ-midi-GM**](https://github.com/jazz-soft/JZZ-midi-GM) - General MIDI instrument names: MIDI to string / string to MIDI
Expand Down
2 changes: 1 addition & 1 deletion javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '0.9.1';
var _version = '0.9.2';
var i, j, k, m, n;

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "0.9.1",
"version": "0.9.2",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand Down

0 comments on commit e61d44e

Please sign in to comment.