OsciStudio Version: A6
Operating System: Win10
hey im new to all of this, I know some basics about soundwaves and stuff like that, but i do have experience with coding. Anyways I tried following this video: How To Draw Mushrooms On An Oscilloscope With Sound
and ended up getting this far:
#include <AudioMath.h>
PHASOR (phas1);
PHASOR (phas2);
SLIDER (volx, 0..2);
SLIDER (voly, 0..2);
SLIDER (vertoffset, -10..10);
SLIDER (freqmulti, 0..20);
vec3 gen(float t){
vec3 v;
//circle
v.x = sin(t*2*pi)*volx;
v.y = cos(t*2*pi)*voly;
//sawtooth
v.y = v.y+(phas1*freqmulti)+vertoffset;
//shroom
v.x = v.x*sin(phas1)*volx;
return v;
}
i dont think my code at //sawtooth is great, but I have no clue what to do with //shroom code.
I know its wrong here. So that’s why I’m here :v