Timing Problem
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
I have a strange behavior with rgb matrixes. i can tap the tempo and the tap-widget shows me the correct beat, but the fixures get a totaly different timing and are not in beat. Tested with QLC+ 4.8.5 GIT on OSX 10.6 and Raspberry.
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
ok, here are the workspace
- Attachments
-
- trav3.qxw
- (99.25 KiB) Downloaded 36 times
-
- Posts: 1331
- Joined: Mon Apr 13, 2015 7:05 am
- Location: Bratislava, Slovakia
- Real Name: Jano Svitok
- Contact:
My guess is that tapping adjusts speed (step duration) but doesn't adjust when the step starts, so it the matrix (or anything else) is in tempo but may be off beat.
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
No. As long as i tap the tempo, all fixures are in beat. if i stop tapping, the speed changes.
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
This workspace is for the liveset of my band (rolling stones tribute) and the effect happens on every speed (i think from 70bpm to 130bpm. i tap quarter notes)
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
now i have found the file engine/src/mastertimer-unix.cpp (currently im on debian) and set the tread priority to time-critical but it changes nothing.
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
Oh, great. Then i wait a few days (i need this at the end of the month)plugz wrote:If you can compile from sources, the RGBMatrix + speed dial tap should look way better now.
Chasers have to be fixed still.
-
- Posts: 637
- Joined: Sun Apr 12, 2015 6:30 pm
- Real Name: David
Chaser timings improved too.
Here's a sample workspace for testing.
How to test the bug ?
- Start the chaser and the rgbmatrix
- You have to tap to a tempo that is not a multiple of the MasterTimer tick. Like 0s.290 (default tick is 20ms, so 0s.280 or 0s.300 may show a correct behavior)
- The speed dial tap and the lights will quickly be out of sync
How to test the fix ?
- Install QLC+ from git sources, do the same as above.
Now, a question: Would 1ms precision instead of 10ms precision be useful for you ?
Also, if you can compile from sources, can you tell the sync is better now ?
Here's a sample workspace for testing.
How to test the bug ?
- Start the chaser and the rgbmatrix
- You have to tap to a tempo that is not a multiple of the MasterTimer tick. Like 0s.290 (default tick is 20ms, so 0s.280 or 0s.300 may show a correct behavior)
- The speed dial tap and the lights will quickly be out of sync
How to test the fix ?
- Install QLC+ from git sources, do the same as above.
Now, a question: Would 1ms precision instead of 10ms precision be useful for you ?
Also, if you can compile from sources, can you tell the sync is better now ?
- Attachments
-
- tempo_test.qxw
- (5.23 KiB) Downloaded 26 times
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
There seems to be another small problem: QTimer::setTimerType and Qt::PreciseTimer are not available in QT 4.8, so the patch is a little bit evil.
-
- Posts: 103
- Joined: Tue Apr 14, 2015 6:54 am
- Real Name:
Now it looks (and works) good. Thank you for the fix.plugz wrote:Fixed, thanks for reporting my mistake
I don't know about the default precision of QTimer on Qt4 though, but it seems to be precise enough.