Merge branch 'oscillator_enhancements' of https://github.com/daslyfe/strudel into oscillator_enhancements

This commit is contained in:
Felix Roos 2024-03-21 21:26:46 +01:00
commit 89ec87d32a
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ export function repl({
onToggle, onToggle,
editPattern, editPattern,
onUpdateState, onUpdateState,
sync = false, sync = true,
}) { }) {
const state = { const state = {
schedulerError: undefined, schedulerError: undefined,

View file

@ -93,7 +93,7 @@ export function registerSynthSounds() {
frequency, frequency,
begin, begin,
end, end,
freqspread: detune * 0.1, freqspread: detune,
voices, voices,
panspread, panspread,
}, },

View file

@ -244,7 +244,7 @@ class SuperSawOscillatorProcessor extends AudioWorkletProcessor {
const isOdd = (n & 1) == 1; const isOdd = (n & 1) == 1;
//applies unison "spread" detune in semitones //applies unison "spread" detune in semitones
const freq = frequency * Math.pow(2, getUnisonDetune(voices, freqspread, n) / 1.2); const freq = frequency * Math.pow(2, getUnisonDetune(voices, freqspread, n) / 12);
let gainL = gain1; let gainL = gain1;
let gainR = gain2; let gainR = gain2;
// invert right and left gain // invert right and left gain