-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hi,
I'm trying to use the render
function to export the generated audio. Unfortunately I receive a out of bounds error. I have also trouble retrieving the totalTicks of the player, I only get 0.
So here is my code (initialization works since I can play notes with midiNoteOn
function):
await this.synth.addSMFDataToPlayer(this.props.midiBuffer);
const audioBuffer = new AudioBuffer({
numberOfChannels: 2,
length: 44100 * (totalTicks+1),
sampleRate: 44100,
});
this.synth.render(audioBuffer);
and it raises this error
Uncaught (in promise) RuntimeError: memory access out of bounds
at fluid_synth_write_float_channels_LOCAL (001354da:0x1b1d7)
at fluid_synth_write_float (001354da:0x1b01d)
at Synthesizer.renderRaw (Synthesizer.js?3001:804:1)
at Synthesizer.render (Synthesizer.js?3001:350:1)
Any help would be much appreciated.
Thanks in advance.
Best regards,
Vincent
Metadata
Metadata
Assignees
Labels
No labels