Node.js version

Low level MIDI support for Node.js

Node.js version

Postby sema » Thu Aug 28, 2014 7:43 pm

I have created a Node.js version as a proof-of-the-concept: http://jazz-soft.net/download/Jazz-Plug ... z-midi.zip
Will appreciate your feedback.
Currently it's Midi-Out only.
Will publish it on npm shortly - as soon as I finish the Midi-In portion.
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Thu Aug 28, 2014 11:30 pm

I unpacked the archive to disk E:
after uninstalling Jazz-Plugin the Command Prompt displays the same output and it works!
cheers :P
Code: Select all
E:\>cd jazz-midi

E:\jazz-midi>node test
Package version: 0.0.0
Jazz-MIDI version: 1.3
isJazz: true
midi.out: true
midi.in: false
Supported functions:
[ 'MidiOut',
  'MidiOutClose',
  'MidiOutList',
  'MidiOutLong',
  'MidiOutOpen',
  'MidiOutRaw',
  'Support',
  'Time' ]
MIDI-Out ports:
[ 'CoolSoft VirtualMIDISynth',
  'Microsoft GS Wavetable Synth',
  'LoopBe Internal MIDI' ]
MIDI-In ports:
[ 'LoopBe Internal MIDI' ]
Testing: CoolSoft VirtualMIDISynth - OK!
Testing: Microsoft GS Wavetable Synth - OK!
Testing: LoopBe Internal MIDI - OK!
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby sema » Fri Aug 29, 2014 8:49 am

Yes, that's how it's supposed to work. test.js is more like a usage example. If Windows Notepad screws up the line endings, use the WordPad :)
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Sun Aug 31, 2014 5:30 am

rewrote my first application using addon instead of browser object: https://github.com/letoribo/drums-io
there are two branches, both work on local host, but not working, deployed on heroku.com
not yet understand, what is the problem.
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby sema » Sun Aug 31, 2014 10:59 am

You are doing me a great advertising! Thanks a lot! :)
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby sema » Sun Aug 31, 2014 1:08 pm

I'm not sure if I understand your concern correctly, but the Node plugin only has access to the MIDI resources on the machine it runs on.
If you use it as a part of the Node server, http-clients will not know anything about it.
The only way to play MIDI on the client side is to use browser plugins (or WebMIDI Api).
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Sun Aug 31, 2014 4:05 pm

I understand now why does not work online - I had no idea that the node.js version only for local operation...
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby sema » Tue Sep 09, 2014 11:01 pm

Enabled MIDI-In. Please check it out!
Need a couple more fixes before publishing at npm.
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Wed Sep 10, 2014 3:12 pm

Code: Select all
E:\jazz-midi_in>node test
Package version: 1.3.0
Jazz-MIDI version: 1.3
isJazz: true
midi.out: true
midi.in: true
Supported functions:
[ 'ClearMidiIn',
  'MidiInClose',
  'MidiInList',
  'MidiInOpen',
  'MidiOut',
  'MidiOutClose',
  'MidiOutList',
  'MidiOutLong',
  'MidiOutOpen',
  'MidiOutRaw',
  'QueryMidiIn',
  'Support',
  'Time' ]
MIDI-Out ports:
[ 'CoolSoft VirtualMIDISynth',
  'Microsoft GS Wavetable Synth',
  'LoopBe Internal MIDI' ]
MIDI-In ports:
[ 'LoopBe Internal MIDI' ]

=== MIDI-Out test ===
Testing: CoolSoft VirtualMIDISynth - OK!
Testing: Microsoft GS Wavetable Synth - OK!
Testing: LoopBe Internal MIDI - OK!

=== MIDI-In test ===
Opening: LoopBe Internal MIDI - OK!

Thank you for using Jazz-MIDI!
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby sema » Wed Sep 10, 2014 3:48 pm

It is going to print MIDI messages if you play your instrument during the "MIDI-In test".
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby sema » Sun Sep 14, 2014 7:41 pm

It's now available at https://www.npmjs.org/package/jazz-midi

Special thanks to letoribo for early feedback!
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Sun Feb 01, 2015 12:59 pm

currently published a module that encapsulates jazz-midi: https://www.npmjs.com/package/jam-midi
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby sema » Tue Feb 10, 2015 7:46 pm

Change the "description" in your package.json ;)
sema
Site Admin
 
Posts: 316
Joined: Mon Oct 17, 2011 7:28 pm

Re: Node.js version

Postby letoribo » Wed Feb 11, 2015 11:00 pm

It provides interface for create, retrieve, update && delete operations. Is "CRUD MIDI" better?
letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine

Re: Node.js version

Postby letoribo » Tue Mar 10, 2015 9:03 am

letoribo
 
Posts: 98
Joined: Fri Sep 13, 2013 8:25 am
Location: Odessa,Ukraine


Return to jazz-midi

Who is online

Users browsing this forum: No registered users and 1 guest

cron