File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const PROJECT = "ETEXTILE-SYNTH";
88const NAME = "MAPPING-APP" ;
99const VERSION = "1.0.24" ;
1010
11- const DEBUG = true ;
11+ const DEBUG = true ; ///////////////////////////////
1212
1313var current_controleur = { "id" : null } ;
1414var previous_controleur = { "id" : null } ;
Original file line number Diff line number Diff line change @@ -179,10 +179,11 @@ function midi_msg_builder(midi_msg_type) {
179179
180180async function MIDIsetup ( ) {
181181 navigator . permissions . query ( { name : "midi" } ) . then ( ( permissionStatus ) => {
182- if ( permissionStatus . state === "granted" ) {
182+ //console.log(permissionStatus.state);
183+ if ( permissionStatus . state === "prompt" ) {
183184 navigator . requestMIDIAccess ( { sysex : true } ) . then ( onMIDISuccess ) ;
184185 }
185- if ( permissionStatus . state === "prompt " ) {
186+ if ( permissionStatus . state === "denied " ) {
186187 alert_msg ( "no_midi_support" , "This browser does not support MIDI!" , "danger" ) ;
187188 }
188189 } ) ;
@@ -287,7 +288,7 @@ function onMIDIMessage(midiMsg) {
287288 case P_CHANGE :
288289 switch ( status . channel ) {
289290 case MIDI_VERBOSITY_CHANNEL :
290- // console.log("RECEIVED: " + VERBOSITY_CODES[msg.data1]);
291+ console . log ( "RECEIVED: " + VERBOSITY_CODES [ msg . data1 ] ) ;
291292 switch ( msg . data1 ) {
292293
293294 case MATRIX_RAW_MODE_DONE :
You can’t perform that action at this time.
0 commit comments