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

Documentation missing for p5.sound's noteToFreq()

Open thrly opened this issue 11 months ago • 3 comments

Increasing Access

Note names (i.e.: C, F#, Ab) are often more recognisable to beginner musicians than MIDI note numbers or frequencies. the noteToFreq() function provides an easy way to convert familiar note names into standard values for synthesis... but there is no mention of this function in the docs.

Most appropriate sub-area of p5.js?

Reference

Feature request details

Reference documentation should be provided for this function.

https://github.com/processing/p5.js/blob/1ed240c3b4f9f286010a47d456d216f639f741f5/lib/addons/p5.sound.js#L892-L924

I would like to be assigned to work on this if its required, please (I teach electronic music).

thrly avatar Jan 04 '25 11:01 thrly

Wondering if I should have added this to https://github.com/processing/p5.sound.js instead. Can anybody point me in the right direction?

thrly avatar Jan 08 '25 17:01 thrly

I believe this function is deprecated in this new version of p5.sound. I think you can add it as a feature request in the new library.

rndexe avatar Jan 10 '25 14:01 rndexe

This issue will be addressed by this PR; so once that is merged and live, this thread will be closed too. Thanks everyone!

ksen0 avatar Mar 28 '25 17:03 ksen0