Ajout du sampler et de l'input
This commit is contained in:
@ -71,6 +71,10 @@ export class FourOpFM implements SynthEngine<FourOpFMParams> {
|
||||
return 'Four-operator FM synthesis with multiple algorithms, envelope curves, and LFO waveforms';
|
||||
}
|
||||
|
||||
getType() {
|
||||
return 'generative' as const;
|
||||
}
|
||||
|
||||
generate(params: FourOpFMParams, sampleRate: number, duration: number): [Float32Array, Float32Array] {
|
||||
const numSamples = Math.floor(sampleRate * duration);
|
||||
const leftBuffer = new Float32Array(numSamples);
|
||||
|
||||
Reference in New Issue
Block a user