Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.10 #337

Merged
merged 1 commit into from
Jan 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions lib/p5.sound.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! p5.sound.js v0.3.9 2018-09-10 */
/*! p5.sound.js v0.3.10 2019-01-10 */
/**
* p5.sound extends p5 with <a href="http://caniuse.com/audio-api"
* target="_blank">Web Audio</a> functionality including audio input,
Expand Down Expand Up @@ -6199,7 +6199,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.2;
* var susPercent = 0.2;
* var releaseTime = 0.5;
Expand All @@ -6224,7 +6224,7 @@ envelope = function () {
* cnv.mousePressed(playEnv);
* }
*
* function playEnv(){
* function playEnv() {
* env.play();
* }
* </code></div>
Expand Down Expand Up @@ -6375,7 +6375,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.2;
* var susPercent = 0.2;
* var releaseTime = 0.5;
Expand All @@ -6400,7 +6400,7 @@ envelope = function () {
* cnv.mousePressed(playEnv);
* }
*
* function playEnv(){
* function playEnv() {
* env.play();
* }
* </code></div>
Expand All @@ -6426,7 +6426,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.2;
* var susPercent = 0.2;
* var releaseTime = 0.5;
Expand All @@ -6451,7 +6451,7 @@ envelope = function () {
* cnv.mousePressed(playEnv);
* }
*
* function playEnv(){
* function playEnv() {
* env.play();
* }
* </code></div>
Expand Down Expand Up @@ -6545,7 +6545,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.2;
* var susPercent = 0.2;
* var releaseTime = 0.5;
Expand All @@ -6570,7 +6570,7 @@ envelope = function () {
* cnv.mousePressed(playEnv);
* }
*
* function playEnv(){
* function playEnv() {
* // trigger env on triOsc, 0 seconds from now
* // After decay, sustain for 0.2 seconds before release
* env.play(triOsc, 0, 0.2);
Expand Down Expand Up @@ -6605,7 +6605,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.3;
* var susPercent = 0.4;
* var releaseTime = 0.5;
Expand All @@ -6630,7 +6630,7 @@ envelope = function () {
* cnv.mousePressed(envAttack);
* }
*
* function envAttack(){
* function envAttack() {
* console.log('trigger attack');
* env.triggerAttack();
*
Expand Down Expand Up @@ -6709,7 +6709,7 @@ envelope = function () {
* var attackLevel = 1.0;
* var releaseLevel = 0;
*
* var attackTime = 0.001
* var attackTime = 0.001;
* var decayTime = 0.3;
* var susPercent = 0.4;
* var releaseTime = 0.5;
Expand All @@ -6734,7 +6734,7 @@ envelope = function () {
* cnv.mousePressed(envAttack);
* }
*
* function envAttack(){
* function envAttack() {
* console.log('trigger attack');
* env.triggerAttack();
*
Expand Down Expand Up @@ -8505,7 +8505,6 @@ filter = function () {
freq = 1;
}
if (typeof freq === 'number') {
this.biquad.frequency.value = freq;
this.biquad.frequency.cancelScheduledValues(this.ac.currentTime + 0.01 + t);
this.biquad.frequency.exponentialRampToValueAtTime(freq, this.ac.currentTime + 0.02 + t);
} else if (freq) {
Expand Down Expand Up @@ -10425,14 +10424,14 @@ looper = function () {
};
/**
* <p>A p5.Part plays back one or more p5.Phrases. Instantiate a part
* with steps and tatums. By default, each step represents 1/16th note.</p>
* with steps and tatums. By default, each step represents a 1/16th note.</p>
*
* <p>See p5.Phrase for more about musical timing.</p>
*
* @class p5.Part
* @constructor
* @param {Number} [steps] Steps in the part
* @param {Number} [tatums] Divisions of a beat (default is 1/16, a quarter note)
* @param {Number} [tatums] Divisions of a beat, e.g. use 1/4, or 0.25 for a quater note (default is 1/16, a sixteenth note)
* @example
* <div><code>
* var box, drum, myPart;
Expand Down Expand Up @@ -10511,7 +10510,7 @@ looper = function () {
this.metro.setBPM(tempo, rampTime);
};
/**
* Returns the Beats Per Minute of this currently part.
* Returns the tempo, in Beats Per Minute, of this part.
*
* @method getBPM
* @return {Number}
Expand Down Expand Up @@ -10565,7 +10564,7 @@ looper = function () {
};
};
/**
* Stop the part and cue it to step 0.
* Stop the part and cue it to step 0. Playback will resume from the begining of the Part when it is played again.
*
* @method stop
* @param {Number} [time] seconds from now
Expand Down Expand Up @@ -10636,8 +10635,7 @@ looper = function () {
}
};
/**
* Get a phrase from this part, based on the name it was
* given when it was created. Now you can modify its array.
* Find all sequences with the specified name, and replace their patterns with the specified array.
*
* @method replaceSequence
* @param {String} phraseName
Expand All @@ -10664,7 +10662,7 @@ looper = function () {
}
};
/**
* Fire a callback function at every step.
* Set the function that will be called at every step. This will clear the previous function.
*
* @method onStep
* @param {Function} callback The name of the callback
Expand Down
Loading