Skip to content

Commit c58bec1

Browse files
authored
Merge pull request #707 from Nitesh639/oscillator_pan_doc
example reference added
2 parents 61b849d + 3477346 commit c58bec1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/oscillator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,13 @@ class Oscillator {
405405
}
406406

407407
/**
408-
* Pan between Left (-1) and Right (1)
408+
* Pan between Left (-1) and Right (1).
409+
* See also: <a href="#/p5.SoundFile/pan">Pan Example</a>
409410
*
410411
* @method pan
411412
* @for p5.Oscillator
412413
* @param {Number} panning Number between -1 and 1
413-
* @param {Number} timeFromNow schedule this event to happen
414+
* @param {Number} [timeFromNow] schedule this event to happen
414415
* seconds from now
415416
*/
416417
pan(pval, tFromNow) {

0 commit comments

Comments
 (0)