Skip to content

Commit

Permalink
support mxl file import (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo authored Nov 12, 2024
1 parent f46f533 commit 9c18f89
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.dot
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<script type="text/javascript" src="src/store-ext.js"></script>
<script type="text/javascript" src="src/actions-ext.js"></script>
{{ } else { }}
<script type="text/javascript" src="dist/app.min.js?v=2.4.16"></script>
<script type="text/javascript" src="dist/app.min.js?v=2.4.17"></script>
{{ } }}

</head>
Expand Down
2 changes: 1 addition & 1 deletion src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ IDE_Morph.prototype.droppedText = async function (aString, name, fileType) {
IDE_Morph.prototype.droppedBinary = function (anArrayBuffer, name) {
const ext = name ? name.slice(name.lastIndexOf('.') + 1).toLowerCase() : '';

if (ext === 'musicxml') {
if (ext === 'musicxml' || ext == 'mxl') {
try {
const proj = window.amm_sdk_netsblox_wasm.translate_musicxml(new Uint8Array(anArrayBuffer));
return this.droppedText(proj);
Expand Down
2 changes: 1 addition & 1 deletion src/morphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11824,7 +11824,7 @@ HandMorph.prototype.processDrop = function (event) {
file.name.lastIndexOf('.') + 1
).toLowerCase();

if (contains(['musicxml', 'mid', 'smf'], suffix)) {
if (contains(['musicxml', 'mxl', 'mid', 'smf'], suffix)) {
return readBinary(file);
} else if (file.type.indexOf("svg") !== -1 && !MorphicPreferences.rasterizeSVGs) {
return readSVG(file);
Expand Down
2 changes: 1 addition & 1 deletion src/store-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NetsBloxSerializer.uber = SnapSerializer.prototype;
SnapSerializer.prototype.isSavingHistory = true;

NetsBloxSerializer.prototype.appName = 'NetsBlox';
NetsBloxSerializer.prototype.version = '2.4.16';
NetsBloxSerializer.prototype.version = '2.4.17';
NetsBloxSerializer.prototype.app = NetsBloxSerializer.prototype.appName + ' ' +
NetsBloxSerializer.prototype.version + ', http://netsblox.org';

Expand Down

0 comments on commit 9c18f89

Please sign in to comment.