WIP export UI

This commit is contained in:
Nikita 2025-10-19 23:02:20 +03:00
parent 9a47e0f11e
commit b3715dc5df
6 changed files with 134 additions and 17 deletions

View file

@ -63,7 +63,7 @@ export async function renderPatternAudio(pattern, cps, begin, end) {
}
})
context.startRendering().then(async (renderedBuffer) => {
return context.startRendering().then(async (renderedBuffer) => {
console.log(renderedBuffer)
const wavBuffer = audioBufferToWav(renderedBuffer);
const blob = new Blob([wavBuffer], { type: 'audio/wav' });