syncit ei toimi
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@ -146,7 +146,7 @@ int __cdecl main(int argc, char* argv[])
|
||||
{ 0.0f, 0.0f, 0.0f }
|
||||
};
|
||||
|
||||
float test[3] = { 0.0f, 0.1f, 0.0f }; // test float of one shape
|
||||
float test[3] = { 0.0f, 0.0f, 0.0f }; // test float of one shape
|
||||
|
||||
int currentShape = 0; // mark location which shape we are currently building
|
||||
|
||||
@ -246,20 +246,20 @@ int __cdecl main(int argc, char* argv[])
|
||||
// if sound has stopped, end shape
|
||||
// if shape is finished, move shape forward
|
||||
|
||||
float captureSync = syncs[5];
|
||||
float captureSync = 0.0;
|
||||
|
||||
if (captureSync >= 0.001f) {
|
||||
isPlaying = true;
|
||||
}
|
||||
|
||||
if (isPlaying) {
|
||||
//if (isPlaying) {
|
||||
vec3ShapeArray[currentShape][1] = captureSync;
|
||||
vec3ShapeArray[currentShape][2] = vec3ShapeArray[currentShape][2] + shapeIncrement;
|
||||
|
||||
test[0] = captureSync; // y position
|
||||
test[1] = test[1] + shapeIncrement; // x position
|
||||
test[0] = test[0] + shapeIncrement; // x position
|
||||
test[1] = captureSync; // y position
|
||||
test[2] = 0.3f; // length
|
||||
}
|
||||
//}
|
||||
|
||||
|
||||
// when note changes -- reset
|
||||
|
||||
Reference in New Issue
Block a user