Code: Select all
glLineWidth(1f);
glBegin(3);
for (int i = 0; i < AudioArray.SizeDim1-2; i+=2){
glColor3f(0f,255f,0f);
glVertex2f(AudioArray[i],AudioArray[i+1]);
}
glEnd();
The problem:
The script runs in fl studio if you load it by itself on a single layer, but things start acting weird when I try to various things . Scripts that use the audio array don't work if i add them to another layer, for example joy dividers. Applying an effect like feedback does not work. After things act up most effects stop working. Trying to export video renders black...there is more but overall it causes the visualizer to go haywire.
If anyone can see whats causing all this weird behavior, please let me know. It would be very useful to use a dynamic VBO in scripts for a lot of other applications, but right now I can't because the way I implement it is not stable -
Here is the current version: