Skip to content

Commit

Permalink
Remove extraneous parameter from renderToMIDI mapping [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Sep 11, 2024
1 parent 483b6ec commit 6ae6f95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions emscripten/npm/src/emscripten-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ function getToolkitFunction(VerovioModule, method) {
// char *renderToExpansionMap(Toolkit *ic)
mapping.renderToExpansionMap = VerovioModule.cwrap("vrvToolkit_renderToExpansionMap", "string", ["number"]);

// char *renderToMIDI(Toolkit *ic, const char *rendering_options)
mapping.renderToMIDI = VerovioModule.cwrap("vrvToolkit_renderToMIDI", "string", ["number", "string"]);
// char *renderToMIDI(Toolkit *ic)
mapping.renderToMIDI = VerovioModule.cwrap("vrvToolkit_renderToMIDI", "string", ["number"]);

// char *renderToPAE(Toolkit *ic)
mapping.renderToPAE = VerovioModule.cwrap("vrvToolkit_renderToPAE", "string", ["number"]);
Expand Down
4 changes: 2 additions & 2 deletions emscripten/npm/src/verovio-toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export class VerovioToolkit {
return JSON.parse(this.proxy.renderToExpansionMap(this.ptr));
}

renderToMIDI(options) {
return this.proxy.renderToMIDI(this.ptr, JSON.stringify(options));
renderToMIDI() {
return this.proxy.renderToMIDI(this.ptr);
}

renderToPAE() {
Expand Down

0 comments on commit 6ae6f95

Please sign in to comment.