Plato on Github
Report Home
delay.js
Maintainability
86.30
Lines of code
14
Difficulty
5.37
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
/** * Creates a Delay. * @param {Object} context A Web Audio context. * @param {Object} [opt_options=] A map of initial properties. * @constructor */ function Delay(context, opt_options) { var options = opt_options || {}; this.node = context.createDelay(); } /** * Sets the delay's delay time. * @param {number} val The delay time. */ Delay.prototype.setDelay = function(val) { this.node.delayTime.value = val; }; module.exports = Delay;