change to fat synth, finetune parameters

This commit is contained in:
2025-12-29 13:05:39 +02:00
parent df43d3b476
commit 0e1bff8259
4 changed files with 26 additions and 24 deletions

View File

@@ -3,14 +3,16 @@ import * as Tone from 'tone';
export function createPadSynth(isDay: boolean): Tone.PolySynth {
return new Tone.PolySynth(Tone.Synth, {
oscillator: {
type: isDay ? 'triangle' : 'sine'
type: 'fatsine', // Fat oscillator creates multiple detuned voices for lush sound
count: 3, // Number of detuned oscillators
spread: 30 // Amount of detune in cents for width and movement
},
envelope: {
attack: 1.5,
decay: 1,
sustain: 0.7,
release: 1.0
attack: isDay ? 2.0 : 3.0, // Longer, smoother attack
decay: 1.5,
sustain: 0.85, // Higher sustain for consistent pad presence
release: isDay ? 2.5 : 4.0 // Longer release for smooth tail-off
},
volume: -20
volume: -24 // Quieter to sit back in the mix and reduce mid heaviness
});
}