mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 00:07:08 +00:00
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
This commit is contained in:
commit
bfa600399f
4 changed files with 9 additions and 9 deletions
|
@ -438,7 +438,7 @@ export class Context extends BaseContext {
|
|||
* to initially start the AudioContext. See [[Tone.start]]
|
||||
*/
|
||||
resume(): Promise<void> {
|
||||
if (this._context.state === "suspended" && isAudioContext(this._context)) {
|
||||
if (isAudioContext(this._context)) {
|
||||
return this._context.resume();
|
||||
} else {
|
||||
return Promise.resolve();
|
||||
|
|
|
@ -22,7 +22,7 @@ export interface ChorusOptions extends StereoFeedbackEffectOptions {
|
|||
* Read more on the chorus effect on [SoundOnSound](http://www.soundonsound.com/sos/jun04/articles/synthsecrets.htm).
|
||||
*
|
||||
* @example
|
||||
* const chorus = new Tone.Chorus(4, 2.5, 0.5);
|
||||
* const chorus = new Tone.Chorus(4, 2.5, 0.5).toDestination().start();
|
||||
* const synth = new Tone.PolySynth().connect(chorus);
|
||||
* synth.triggerAttackRelease(["C3", "E3", "G3"], "8n");
|
||||
*
|
||||
|
|
|
@ -75,7 +75,7 @@ export interface ToneOscillatorInterface {
|
|||
* const osc = new Tone.Oscillator("F3").toDestination().start();
|
||||
* setInterval(() => {
|
||||
* // generate 8 random partials
|
||||
* osc.partials = new Array(8).map(() => Math.random());
|
||||
* osc.partials = new Array(8).fill().map(() => Math.random());
|
||||
* }, 1000);
|
||||
*/
|
||||
partials: number[];
|
||||
|
|
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -5108,9 +5108,9 @@
|
|||
}
|
||||
},
|
||||
"highlight.js": {
|
||||
"version": "10.0.1",
|
||||
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.0.1.tgz",
|
||||
"integrity": "sha512-l1HB5S9nmBuvurFIOPbpeJv4psKh2MyKCTOYRK/E6dwRXkbG96PLH7amP/xpGNyZOK8OWqv45DxLS/ZAIb3n9w==",
|
||||
"version": "10.4.1",
|
||||
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.4.1.tgz",
|
||||
"integrity": "sha512-yR5lWvNz7c85OhVAEAeFhVCc/GV4C30Fjzc/rCP0aCWzc1UUOPUk55dK/qdwTZHBvMZo+eZ2jpk62ndX/xMFlg==",
|
||||
"dev": true
|
||||
},
|
||||
"hmac-drbg": {
|
||||
|
@ -5479,9 +5479,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"ini": {
|
||||
"version": "1.3.5",
|
||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
|
||||
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
|
||||
"version": "1.3.7",
|
||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz",
|
||||
"integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==",
|
||||
"dev": true
|
||||
},
|
||||
"inline-source-map": {
|
||||
|
|
Loading…
Reference in a new issue