Remove unneeded imports
This commit is contained in:
parent
95700e1196
commit
7b74a902a2
1 changed files with 0 additions and 11 deletions
|
|
@ -12,25 +12,15 @@ import {
|
||||||
doughTrigger,
|
doughTrigger,
|
||||||
registerWorklet,
|
registerWorklet,
|
||||||
setAudioContext,
|
setAudioContext,
|
||||||
getSampleBufferSource,
|
|
||||||
loadBuffer,
|
|
||||||
getSampleInfo,
|
|
||||||
getSound,
|
|
||||||
initAudio,
|
initAudio,
|
||||||
setSuperdoughAudioController,
|
setSuperdoughAudioController,
|
||||||
loadWorklets,
|
|
||||||
setMaxPolyphony,
|
setMaxPolyphony,
|
||||||
setMultiChannelOrbits,
|
setMultiChannelOrbits,
|
||||||
resetGlobalEffects,
|
resetGlobalEffects,
|
||||||
getDefaultValue,
|
|
||||||
getSampleBuffer,
|
|
||||||
} from 'superdough';
|
} from 'superdough';
|
||||||
import './supradough.mjs';
|
import './supradough.mjs';
|
||||||
import { workletUrl } from 'supradough';
|
import { workletUrl } from 'supradough';
|
||||||
import { SuperdoughAudioController } from 'superdough/superdoughoutput.mjs';
|
import { SuperdoughAudioController } from 'superdough/superdoughoutput.mjs';
|
||||||
import { loadModules } from '@src/repl/util.mjs';
|
|
||||||
import { prebake } from '@src/repl/prebake.mjs';
|
|
||||||
import { getFontBufferSource, getFontPitch } from 'node_modules/@strudel/soundfonts/fontloader.mjs';
|
|
||||||
registerWorklet(workletUrl);
|
registerWorklet(workletUrl);
|
||||||
|
|
||||||
const { Pattern, logger, repl } = strudel;
|
const { Pattern, logger, repl } = strudel;
|
||||||
|
|
@ -79,7 +69,6 @@ export async function renderPatternAudio(pattern, cps, begin, end, sampleRate, d
|
||||||
return audioContext
|
return audioContext
|
||||||
.startRendering()
|
.startRendering()
|
||||||
.then((renderedBuffer) => {
|
.then((renderedBuffer) => {
|
||||||
console.log('downloading');
|
|
||||||
const wavBuffer = audioBufferToWav(renderedBuffer);
|
const wavBuffer = audioBufferToWav(renderedBuffer);
|
||||||
const blob = new Blob([wavBuffer], { type: 'audio/wav' });
|
const blob = new Blob([wavBuffer], { type: 'audio/wav' });
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue