JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Win10)

Asynchronous MIDI library for Node.js and HTML

JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Win10)

Postby smrz2001 » Wed Nov 15, 2017 7:51 pm

Hi sema,

First of all, thank you so much for your work! It is greatly appreciated.

I am unable to get the JZZ.js/Jazz-MIDI add-on/plugin combination to work for MIDI input on Firefox 57 (latest version of FF) on Windows 10. I am using the following sample code from the JZZ reference:

JZZ().or('Cannot start MIDI engine!')
.openMidiIn().or('MIDI-In: Cannot open!')
.and(function(){ console.log('MIDI-In:', this.name()); })
.connect(JZZ().openMidiOut()) // redirect to the default MIDI-Out port
.connect(function(msg){ console.log(msg.toString()); }) // and log to the console
.wait(10000).close().and('Thank you!');

I see only the string "MIDI-In: USB Midi" on FF. On Chrome, I see this string and then a continuous stream of "fe -- Active Sensing" messages from my MIDI piano as well as note on/off messages when I press any keys.

Then, I tried the following code, also from the samples:

JZZ().and(function(){
var s1 = "";
var outs = this.info().outputs;
for (var i = 0; i < outs.length; i++) {
s1 += "\n" + outs[i].name + ": v." + outs[i].version + " - " + outs[i].manufacturer + " (" + outs[i].engine + ")";
}
if (!outs.length) s1 += "not found";
var s2 = "";
var ins = this.info().inputs;
for (var i = 0; i < ins.length; i++) {
s2 += "\n" + ins[i].name + ": v." + ins[i].version + " - " + ins[i].manufacturer + " (" + ins[i].engine + ")";
}
if (!ins.length) s2 += "not found";
console.log("MIDI Out: " + s1 + "\nMIDI In: " + s2);
});

On FF, I see:

MIDI Out:
Microsoft GS Wavetable Synth: v.1.0 - Microsoft Corporation (crx)
USB Midi : v.241.16 - unknown (crx)
MIDI In:
USB Midi : v.241.16 - unknown (crx)

On Chrome, I see:

MIDI Out:
USB Midi : v.241.16 - (webmidi)
MIDI In:
USB Midi : v.241.16 - (webmidi)

Do you have any idea why I can't get MIDI input to work on FF? I am able to use MIDI output without any issues on FF.

Best regards.
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby sema » Wed Nov 15, 2017 9:50 pm

It looks like both FF and Chrome see the "USB Midi" device.
Can it be that FF cannot open the device because it is already open by Chrome or another application?
sema
Site Admin
 
Posts: 327
Joined: Mon Oct 17, 2011 7:28 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Thu Nov 16, 2017 11:23 am

I thought that as well and closed Chrome. I tried restarting my laptop and then tried only in FF to be sure, but that didn't work either.

I also tried on an older version of FF (51) and still wasn't able to get it to work, unfortunately.
Last edited by smrz2001 on Thu Nov 16, 2017 11:31 am, edited 1 time in total.
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby sema » Thu Nov 16, 2017 11:27 am

Oh, and by the way, did it work in FF 56?
sema
Site Admin
 
Posts: 327
Joined: Mon Oct 17, 2011 7:28 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Thu Nov 16, 2017 11:32 am

I tried on FF 51 but couldn't get it to work. I will try on FF 56 and let you know how it goes.

Thank you!
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Thu Nov 16, 2017 12:10 pm

Huh, it seems to be working fine with a virtual MIDI input. I see traces in both Chrome and FF 57 at the same time.

I will try again with my piano and let you know how it goes. I will try FF 56 also.

Thank you!
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Thu Nov 16, 2017 10:27 pm

Just tried using my piano with FF 56. Still no MIDI input messages :(
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby sema » Fri Nov 17, 2017 11:44 am

Will try to investigate during the weekend...
One more question: does it work correct in Safari ?
sema
Site Admin
 
Posts: 327
Joined: Mon Oct 17, 2011 7:28 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Fri Nov 17, 2017 12:34 pm

Thanks, sema!

I'll test on Safari and let you know in a few hours.
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Sat Nov 18, 2017 4:38 pm

Did not have any luck with Safari. I'm on Windows 10 and Safari for Windows doesn't seem to be very stable (it's stalled/crashed a couple of times already).

I can't get JZZ to initialize:

TypeError: 'undefined' is not a function (evaluating '_engine._access.outputs.forEach') => JZZ.js:615
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby sema » Thu Nov 23, 2017 9:13 pm

Strage... Seems to work fine with all devices I tried to connect.
https://jazz-soft.github.io/modules/jzz-crx.html
I have Firefox v.57.0 64-bit on Windows 10 Home 1709

Wonder if there is some issue with your device driver...
Did you try to connect other devices to your PC?
sema
Site Admin
 
Posts: 327
Joined: Mon Oct 17, 2011 7:28 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby platywompus » Sat Nov 25, 2017 1:25 pm

Hey Sema,

I've tried your test page with both
FF 57.0 64-bit (windows 8.1 64-bit)) and
FF Dev edition 58.0b6 64-bit (windows 8.1 64-bit)
*both using the latest version of Jazz-plugin and Jazz-Midi

and while the engine is returned, and the inputs/outputs are correctly listed and openMidiOut() works and plays notes, the openMidiIn().connect() is not working. No outputs are listed and debugger;/breakpoints set aren't triggered on the connect(function(msg){ }) event.

I tested the same page in google chrome and it works correctly with midiIn connect events listing.


When you tested were you able to see midiIn connect events in FF?

Best wishes,

Michael
platywompus
 
Posts: 4
Joined: Sun Nov 19, 2017 12:57 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby platywompus » Sat Nov 25, 2017 1:32 pm

My apologies, i spoke way too soon.

I just tried again after a computer restart and it's working. I'm 99% certain now that I had left a chrome window open and it had an exclusive lock on the midi input device. When i test again FF works 57.0 works correctly now as long as its the only window open.

Sorry for the bad report and thanks so much for a great plug-in/JS library!

Keep up the good work

-Michael
platywompus
 
Posts: 4
Joined: Sun Nov 19, 2017 12:57 pm

Re: JZZ.js/Jazz-MIDI addon/plugin not working (Firefox 57/Wi

Postby smrz2001 » Sun Nov 26, 2017 7:08 pm

I'll try again (or with another device) sema and let you know.

Thanks so much for looking at this!!!
smrz2001
 
Posts: 8
Joined: Wed Nov 15, 2017 3:33 pm


Return to JZZ.js

Who is online

Users browsing this forum: sema and 1 guest