mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-12 22:15:27 -04:00
lookAhead 1
This commit is contained in:
Vendored
+1
-1
@@ -14,7 +14,7 @@ try {
|
||||
} catch (err) {
|
||||
console.warn("failed to decode", err);
|
||||
}
|
||||
Tone.setContext(new Tone.Context({latencyHint: "playback", lookAhead: 0.5}));
|
||||
Tone.setContext(new Tone.Context({latencyHint: "playback", lookAhead: 1}));
|
||||
const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.getDestination());
|
||||
defaultSynth.set({
|
||||
oscillator: {type: "triangle"},
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ try {
|
||||
console.warn('failed to decode', err);
|
||||
}
|
||||
// "balanced" | "interactive" | "playback";
|
||||
Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 0.5 }));
|
||||
Tone.setContext(new Tone.Context({ latencyHint: 'playback', lookAhead: 1 }));
|
||||
const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.getDestination());
|
||||
defaultSynth.set({
|
||||
oscillator: { type: 'triangle' },
|
||||
|
||||
Reference in New Issue
Block a user