mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-31 10:22:21 -05:00
Update jsdocs
This commit is contained in:
parent
b91226f9e8
commit
ce9766451f
2 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,7 @@ function InstrumentPlayer (outputNode) {
|
|||
* @param {number} note - a MIDI note number
|
||||
* @param {number} sec - a duration in seconds
|
||||
* @param {number} instrumentNum - an instrument number (0-indexed)
|
||||
* @param {number} vol - a volume level (0-100%)
|
||||
*/
|
||||
InstrumentPlayer.prototype.playNoteForSecWithInstAndVol = function (note, sec, instrumentNum, vol) {
|
||||
var gain = vol / 100;
|
||||
|
|
|
@ -91,10 +91,11 @@ AudioEngine.prototype.loadSounds = function (sounds) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Play a note for a duration on an instrument
|
||||
* Play a note for a duration on an instrument with a volume
|
||||
* @param {number} note - a MIDI note number
|
||||
* @param {number} beats - a duration in beats
|
||||
* @param {number} inst - an instrument number (0-indexed)
|
||||
* @param {number} vol - a volume level (0-100%)
|
||||
* @return {Promise} a Promise that resolves after the duration has elapsed
|
||||
*/
|
||||
AudioEngine.prototype.playNoteForBeatsWithInstAndVol = function (note, beats, inst, vol) {
|
||||
|
|
Loading…
Reference in a new issue