The new version creates an object prototype as a function in transpose_mdom.js
// the routine which uses this needs something like:
// var MDOM = new MusicDOM();
function MusicDOM() {
But the instance of the MusicDOM() object is created and named in the file which uses transpose_mdom.js
<script src="transpose_mdom.js?v=2.66"></script>
<!-- this uses the namespace object MusicDOM in transpose_mdom.js to access transpose functions -->
<script>
// this gets our DOM functions in a object
var osmd_transpose = new MusicDOM();
</script>
If that makes sense, see if you can change things to use the new trasnpose_mdon.js file.
This should also fix the bug where we were not transosing names of chord symbols.
I have created a new version of transpose_xml()
For this version, I removed all global naming from transpose_dom.js and renamed it to transpose_mdom.js.
transpose_dom.js contained code like this:
and created a var object called osmd_transpose which we used in
The new version creates an object prototype as a function in transpose_mdom.js
But the instance of the MusicDOM() object is created and named in the file which uses transpose_mdom.js
If that makes sense, see if you can change things to use the new trasnpose_mdon.js file.
This should also fix the bug where we were not transosing names of chord symbols.