Skip to content

Commit 3d4fdd5

Browse files
committed
fix audiocontext const conflict
1 parent bbcc104 commit 3d4fdd5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/audiocontext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ define(['StartAudioContext', 'Tone/core/Context', 'Tone/core/Tone'], function (r
7575
* myDiv.position(0, 0);
7676
*
7777
* var mySynth = new p5.MonoSynth();
78-
*
78+
*
7979
* // This won't play until the context has started
8080
* mySynth.play('A6');
8181
*

src/master.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict';
22

3-
const audiocontext = require('audiocontext');
4-
5-
define(function () {
63

4+
define(['audiocontext'], function (require, audiocontext) {
75
/**
86
* Master contains AudioContext and the master sound output.
97
*/

0 commit comments

Comments
 (0)