added documentations for getAmp, getType,getFreq,getPan#420
added documentations for getAmp, getType,getFreq,getPan#420endurance21 merged 2 commits intoprocessing:masterfrom
Conversation
|
@therewasaguy i have added documentations, please see if something needs to be added or so! |
therewasaguy
left a comment
There was a problem hiding this comment.
thanks for the PR, and for taking the initiative to add this documentation! I've commented with some suggestions to further improve the documentation.
| * | ||
| * @method getType | ||
| * @for p5.Oscillator | ||
| * @param {String} type 'sine', 'triangle', 'sawtooth' or 'square'. |
There was a problem hiding this comment.
I think you meant @returns? This method doesn't accept a @param but those are the possible return values
There was a problem hiding this comment.
ya ! there must be returns intead of params!
i will be correcting it .
sorry for that 😅
|
@therewasaguy |
endurance21
left a comment
There was a problem hiding this comment.
done the required changes
| * | ||
| * @method getType | ||
| * @for p5.Oscillator | ||
| * @param {String} type 'sine', 'triangle', 'sawtooth' or 'square'. |
There was a problem hiding this comment.
ya ! there must be returns intead of params!
i will be correcting it .
sorry for that 😅
therewasaguy
left a comment
There was a problem hiding this comment.
looks good just resolve merge conflicts and then merge please 🚢
* Fix drywet function bug https://github.com/processing/p5.js-sound/pulls/606 * Fix function name in documentation processing/p5.js-sound#603 * Fix repeat initialization of audioWorklet processing/p5.js-sound#593 * Fix issue with p5.Score that prevented parts from being passed as argument processing/p5.js-sound#543 * Fallback when AudioWorklet buffer array length is zero processing/p5.js-sound#542 * Remove extra callbacks for SoundFile cue processing/p5.js-sound#449 * Fix abnormal behaviour of audio output in p5.signal example section processing/p5.js-sound#476 * Fix error while playing sound through `p5.soundFile.play()` method processing/p5.js-sound#542 * Library is re-written in ESM ( ECMASCRIPT MODULES). * Audio Nodes are written as `Class` style rather than being written as `function` style. * Library using features of es6 like `let` , `const` keywords and many other es6+ features. * Testing architecture has been made more clean and robust. * All above listed improvements are part of [Divyanshu's](https://github.com/endurance21) GSOC-20 Project , more details can be found in his [wrap-up-post](https://github.com/endurance21/GSOC-20-WrapUp). * Improvements in pre-commit-hook action processing/p5.js-sound#574 * Fixed broken anchor tags in p5.Audioln processing/p5.js-sound#450 * Fixed typo in p5.fft documentation processing/p5.js-sound#433 * Added documentations for P5.oscillator APIs processing/p5.js-sound#420 * Improved documentation of p5.soundloop processing/p5.js-sound#437 * Fixed broken links in p5.panner3D documentations processing/p5.js-sound#465 * Typo improvements in p5.soundloop reference processing/p5.js-sound#557 * renames: outputVolume method and Main class processing/p5.js-sound#610 We have deprecated functionality in an effort to focus the API * p5.Signal * p5.SoundFile.processPeaks
Bug Fixes * Fix drywet function bug https://github.com/processing/p5.js-sound/pulls/606 * Fix function name in documentation processing/p5.js-sound#603 * Fix repeat initialization of audioWorklet processing/p5.js-sound#593 * Fix issue with p5.Score that prevented parts from being passed as argument processing/p5.js-sound#543 * Fallback when AudioWorklet buffer array length is zero processing/p5.js-sound#542 * Remove extra callbacks for SoundFile cue processing/p5.js-sound#449 * Fix abnormal behaviour of audio output in p5.signal example section processing/p5.js-sound#476 * Fix error while playing sound through `p5.soundFile.play()` method processing/p5.js-sound#542 Intrastructure Improvements * Library is re-written in ESM ( ECMASCRIPT MODULES). * Audio Nodes are written as `Class` style rather than being written as `function` style. * Library using features of es6 like `let` , `const` keywords and many other es6+ features. * Testing architecture has been made more clean and robust. * All above listed improvements are part of [Divyanshu's](https://github.com/endurance21) GSOC-20 Project , more details can be found in his [wrap-up-post](https://github.com/endurance21/GSOC-20-WrapUp). * Improvements in pre-commit-hook action processing/p5.js-sound#574 Documentation Fixes * Fixed broken anchor tags in p5.Audioln processing/p5.js-sound#450 * Fixed typo in p5.fft documentation processing/p5.js-sound#433 * Added documentations for P5.oscillator APIs processing/p5.js-sound#420 * Improved documentation of p5.soundloop processing/p5.js-sound#437 * Fixed broken links in p5.panner3D documentations processing/p5.js-sound#465 * Typo improvements in p5.soundloop reference processing/p5.js-sound#557 Deprecations and Renames * renames: outputVolume method and Main class processing/p5.js-sound#610 * We have deprecated functionality in an effort to focus the API * p5.Signal * p5.SoundFile.processPeaks
Bug Fixes * Fix drywet function bug https://github.com/processing/p5.js-sound/pulls/606 * Fix function name in documentation processing/p5.js-sound#603 * Fix repeat initialization of audioWorklet processing/p5.js-sound#593 * Fix issue with p5.Score that prevented parts from being passed as argument processing/p5.js-sound#543 * Fallback when AudioWorklet buffer array length is zero processing/p5.js-sound#542 * Remove extra callbacks for SoundFile cue processing/p5.js-sound#449 * Fix abnormal behaviour of audio output in p5.signal example section processing/p5.js-sound#476 * Fix error while playing sound through `p5.soundFile.play()` method processing/p5.js-sound#542 * Bring back p5.PeakDetect which was missing in 1.0.0 Intrastructure Improvements * Library is re-written in ESM ( ECMASCRIPT MODULES). * Audio Nodes are written as `Class` style rather than being written as `function` style. * Library using features of es6 like `let` , `const` keywords and many other es6+ features. * Testing architecture has been made more clean and robust. * All above listed improvements are part of [Divyanshu's](https://github.com/endurance21) GSOC-20 Project , more details can be found in his [wrap-up-post](https://github.com/endurance21/GSOC-20-WrapUp). * Improvements in pre-commit-hook action processing/p5.js-sound#574 Documentation Fixes * Fixed broken anchor tags in p5.Audioln processing/p5.js-sound#450 * Fixed typo in p5.fft documentation processing/p5.js-sound#433 * Added documentations for P5.oscillator APIs processing/p5.js-sound#420 * Improved documentation of p5.soundloop processing/p5.js-sound#437 * Fixed broken links in p5.panner3D documentations processing/p5.js-sound#465 * Typo improvements in p5.soundloop reference processing/p5.js-sound#557 Deprecations and Renames * renames: outputVolume method and Main class processing/p5.js-sound#610 * We have deprecated functionality in an effort to focus the API * p5.Signal * p5.SoundFile.processPeaks
Bug Fixes * Fix drywet function bug https://github.com/processing/p5.js-sound/pulls/606 * Fix function name in documentation processing/p5.js-sound#603 * Fix repeat initialization of audioWorklet processing/p5.js-sound#593 * Fix issue with p5.Score that prevented parts from being passed as argument processing/p5.js-sound#543 * Fallback when AudioWorklet buffer array length is zero processing/p5.js-sound#542 * Remove extra callbacks for SoundFile cue processing/p5.js-sound#449 * Fix abnormal behaviour of audio output in p5.signal example section processing/p5.js-sound#476 * Fix error while playing sound through `p5.soundFile.play()` method processing/p5.js-sound#542 * Bring back p5.PeakDetect which was missing in 1.0.0 Intrastructure Improvements * Library is re-written in ESM ( ECMASCRIPT MODULES). * Audio Nodes are written as `Class` style rather than being written as `function` style. * Library using features of es6 like `let` , `const` keywords and many other es6+ features. * Testing architecture has been made more clean and robust. * All above listed improvements are part of [Divyanshu's](https://github.com/endurance21) GSOC-20 Project , more details can be found in his [wrap-up-post](https://github.com/endurance21/GSOC-20-WrapUp). * Improvements in pre-commit-hook action processing/p5.js-sound#574 Documentation Fixes * Fixed broken anchor tags in p5.Audioln processing/p5.js-sound#450 * Fixed typo in p5.fft documentation processing/p5.js-sound#433 * Added documentations for P5.oscillator APIs processing/p5.js-sound#420 * Improved documentation of p5.soundloop processing/p5.js-sound#437 * Fixed broken links in p5.panner3D documentations processing/p5.js-sound#465 * Typo improvements in p5.soundloop reference processing/p5.js-sound#557 Deprecations and Renames * renames: outputVolume method and Main class processing/p5.js-sound#610 * We have deprecated functionality in an effort to focus the API * p5.Signal * p5.SoundFile.processPeaks
solves the issue
#411
added documentations for required METHODS
areas of impact
src/oscillator.js