lookAhead 1
This commit is contained in:
parent
70472f11cc
commit
4da1fa4832
2 changed files with 2 additions and 2 deletions
2
docs/dist/App.js
vendored
2
docs/dist/App.js
vendored
|
|
@ -14,7 +14,7 @@ try {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn("failed to decode", 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());
|
const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.getDestination());
|
||||||
defaultSynth.set({
|
defaultSynth.set({
|
||||||
oscillator: {type: "triangle"},
|
oscillator: {type: "triangle"},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ try {
|
||||||
console.warn('failed to decode', err);
|
console.warn('failed to decode', err);
|
||||||
}
|
}
|
||||||
// "balanced" | "interactive" | "playback";
|
// "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());
|
const defaultSynth = new Tone.PolySynth().chain(new Tone.Gain(0.5), Tone.getDestination());
|
||||||
defaultSynth.set({
|
defaultSynth.set({
|
||||||
oscillator: { type: 'triangle' },
|
oscillator: { type: 'triangle' },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue