File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -887,12 +887,17 @@ class SoundFile {
887
887
888
888
// TO DO: document this
889
889
/**
890
- * Set the pitch rate of a sound file. Will change the pitch and the speed also.
890
+ * Set the pitch rate of a sound file by providing ANSI notes
891
+ * value. It Will change the pitch and the speed also.
892
+ * If input note is 60 (middle C), than frequency and speed is normal.
893
+ * And if we increases note input than frequency and speed will increases
894
+ * and vice-versa.
891
895
*
892
896
* @method setPitch
893
897
* @for p5.SoundFile
894
- * @param {Number } pitchRate Set the pitch rate.
895
- * Values less than zero are also accepted.
898
+ * @param {Number } pitchRate If the MIDI note is increased, then both the
899
+ * frequency of the sound and its playback speed
900
+ * will increase as a result.
896
901
*/
897
902
setPitch ( num ) {
898
903
var newPlaybackRate = midiToFreq ( num ) / midiToFreq ( 60 ) ;
You can’t perform that action at this time.
0 commit comments