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