p5.js-sound icon indicating copy to clipboard operation
p5.js-sound copied to clipboard

Change the name of setPitch() function

Open 4molybdenum2 opened this issue 4 years ago • 0 comments

Hi, I was kinda confused by the name of the setPitch() function in this piece of code because its setting the playback rate of the sound file when we provide it with a note value. If its so then shouldn't it be setRate() (or something similar...) instead ? :thinking: https://github.com/processing/p5.js-sound/blob/a74dd7eadba27a1e27c46cc7b523faf1b2867dc5/src/soundfile.js#L890-L893

4molybdenum2 avatar Jun 20 '21 15:06 4molybdenum2