@leejaeuk The getScript function is responsible for making p5.js available to your code. Thats why it reads like
getScripts: function() {
return [
"https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.0/p5.js"
];
},
Keep in mind that p5.js runs in the client. That’s why you need it in your module’s js file.
The easiest way to incorporate your sound frequency code would be to insert it in the makeSketch function.
makeSketch: function(conf) {
return function(pFive) {
YOUR CODE HERE
}
}
Your code will have a setup and a draw function. These need to be prefixed with pFive. Just look at my code to get the idea.