From a97c9a1fd36e175983fcee53ceee4a6972b4c051 Mon Sep 17 00:00:00 2001 From: ziqiangao <88281267+ziqiangao@users.noreply.github.com> Date: Thu, 17 Aug 2023 12:17:22 +0800 Subject: [PATCH] Update jazzmidi.js --- extensions/ziqian11/jazzmidi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/ziqian11/jazzmidi.js b/extensions/ziqian11/jazzmidi.js index 4b44d09947..aadb4f44e4 100644 --- a/extensions/ziqian11/jazzmidi.js +++ b/extensions/ziqian11/jazzmidi.js @@ -22,7 +22,7 @@ let port; class JZ { getInfo() { - const icon = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSIxODAuNjUzMDQiIGhlaWdodD0iMTgwLjY1MzAzIiB2aWV3Qm94PSIwLDAsMTgwLjY1MzA0LDE4MC42NTMwMyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE0OS42NzM0OCwtODkuNjczNDkpIj48ZyBkYXRhLXBhcGVyLWRhdGE9InsmcXVvdDtpc1BhaW50aW5nTGF5ZXImcXVvdDs6dHJ1ZX0iIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjAiIHN0cm9rZS1saW5lY2FwPSJidXR0IiBzdHJva2UtbGluZWpvaW49Im1pdGVyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1kYXNoYXJyYXk9IiIgc3Ryb2tlLWRhc2hvZmZzZXQ9IjAiIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTogbm9ybWFsIj48cGF0aCBkPSJNMTQ5LjY3MzQ4LDI1OS42NDYwM2MwLC0zNC4wNjUzMiAwLC0xMzkuMDQzMzkgMCwtMTU4LjU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Mi4yNTk4NiAtMy43MDg5NCwtNC45NjEzMnoiIGZpbGw9IiNhYzg5MzkiLz48cGF0aCBkPSJNMjU3LjcyOTgzLDE5NS44ODk5MWMwLC0xMi41MTgwOCAwLC05OC4wMjMyOSAwLC05OC4wMjMyOWgyMi44ODg1NWMwLDAgMCw4Ny41ODE1OSAwLDk4LjczOTI2YzAsMi4yNTc1MyAtMi4wNzEwMyw0Ljc4NzQzIC01LjEwMSw0Ljc4NzQzYy00LjU0MTA0LDAgLTEwLjkzODU1LDAgLTEzLjM2NDc4LDBjLTEuOTc5NjcsMCAtNC40MjI3OCwtMi41MzcyOCAtNC40MjI3OCwtNS41MDM0eiIgZmlsbD0iI2FjODkzOSIvPjwvZz48L2c+PC9zdmc+PCEtLXJvdGF0aW9uQ2VudGVyOjkwLjMyNjUxOTk5OTk5OTk5OjkwLjMyNjUxNDk5OTk5OTk3LS0+'; var port = null; return { menuIconURI: icon, @@ -94,14 +94,14 @@ var port = null; } play(args) { try { - port.note(args.ch-1, args.note, args.vel, args.dur * 1000); + port.note(args.ch - 1, args.note, args.vel, args.dur * 1000); } catch (msgerr) { console.warn(msgerr.message); } } instrument(args) { try { - port.program(args.ch-1,args.inst); + port.program(args.ch - 1,args.inst); } catch (msgerr) { console.warn(msgerr.message); }