Show MusicXML file in app inventor

I have advanced my JavaScript practice enough to capture the humdrum plugin and run it in an AI2 Companion on an emulator.

Here is my source, for you to test offline, as I have run out of time.



javascript_humdrum_test.aia (33.8 KB)
testfile.txt (381 Bytes)

My html code:

<html>
<head>
<title>An example</title>
<script src="file://localhost/humdrum-notation-plugin-worker.js"></script>
</head>
<body>
<p> Using the worker version of the Humdrum Notation Plugin. </p>

<script>displayHumdrum({source: "note"})</script>

<script type="text/x-humdrum" id="note">
**kern
*M2/4
=1
1c;
==
*-
</script>

</body>
</html>

Notice how I changed my references to external URLs to file://localhost/ , which points to the Media folder where I uploaded a copy of the humdrum plugin.js and my html file.

1 Like