Using my own data in a P5.js sketch?

solved (the quick way)

just do -

window.setup = function () {…}
window.draw = function () {…}
etc etc…