]> Shamusworld >> Repos - wozmaker/blobdiff - src/analysisthread.cpp
Move saving code to fileio, add WOZ2 support, misc. DSP tweaks.
[wozmaker] / src / analysisthread.cpp
index bd9daeabe542601af155581ea4a597ab8b665ffb..138da3ad75c874fa5998c41edd8d7fcc9ee4ed4c 100644 (file)
@@ -49,14 +49,24 @@ void AnalysisThread::run()
        if (Global::a2r == NULL)
                return;
 
-//temp, until we get the AA filled ones sorted
-//     for(uint32_t i=0; i<141; i++)
-       for(uint32_t i=0; i<139; i++)
+       // Run full tracks first
+       for(uint32_t i=0; i<141; i+=4)
        {
                SynthesizeTrack(i);
-//             usleep(10000);
-               int a = random();
-               Global::trackStatus[i] = a & 0x03;
+               int a = random() & 0x03;
+               Global::trackStatus[i] = (a == 0 ? 3 : a);
+               emit(ShowTracks());
+       }
+
+       // Then fill in with half/quarter tracks
+       for(uint32_t i=0; i<141; i++)
+       {
+               if ((i % 4) == 0)
+                       continue;
+
+               SynthesizeTrack(i);
+               int a = random() & 0x03;
+               Global::trackStatus[i] = (a == 0 ? 3 : a);
                emit(ShowTracks());
        }
 }