@@ -3210,8 +3210,8 @@ function MusicKeyboard(activity) {
32103210 this . activity . blocks . loadNewBlocks ( newStack ) ;
32113211 }
32123212
3213- if ( actionGroups > 1 ) this . activity . textMsg ( _ ( "New action blocks generated." ) ) ;
3214- else this . activity . textMsg ( _ ( "New action block generated." ) ) ;
3213+ if ( actionGroups > 1 ) activity . textMsg ( _ ( "New action blocks generated." ) , 3000 ) ;
3214+ else activity . textMsg ( _ ( "New action block generated." ) , 3000 ) ;
32153215 } ;
32163216
32173217 /**
@@ -3396,18 +3396,18 @@ function MusicKeyboard(activity) {
33963396 // re-init widget
33973397 if ( this . midiON ) {
33983398 this . midiButton . style . background = "#00FF00" ;
3399- this . activity . textMsg ( _ ( "MIDI device present." ) ) ;
3399+ activity . textMsg ( _ ( "MIDI device present." ) , 3000 ) ;
34003400 return ;
34013401 }
34023402 midiAccess . inputs . forEach ( ( input ) => {
34033403 input . onmidimessage = onMIDIMessage ;
34043404 } ) ;
34053405 if ( midiAccess . inputs . size ) {
34063406 this . midiButton . style . background = "#00FF00" ;
3407- this . activity . textMsg ( _ ( "MIDI device present." ) ) ;
3407+ activity . textMsg ( _ ( "MIDI device present." ) , 3000 ) ;
34083408 this . midiON = true ;
34093409 } else {
3410- this . activity . textMsg ( _ ( "No MIDI device found." ) ) ;
3410+ activity . textMsg ( _ ( "No MIDI device found." ) , 3000 ) ;
34113411 }
34123412 } ;
34133413
@@ -3417,7 +3417,7 @@ function MusicKeyboard(activity) {
34173417 * @memberof ClassName
34183418 */
34193419 const onMIDIFailure = ( ) => {
3420- this . activity . errorMsg ( _ ( "Failed to get MIDI access in browser." ) ) ;
3420+ activity . errorMsg ( _ ( "Failed to get MIDI access in browser." ) , 3000 ) ;
34213421 this . midiON = false ;
34223422 } ;
34233423
0 commit comments