Control rate
Re: Control rate
Whilst today it takes mere seconds...UrbanCyborg wrote: ↑Sat May 14, 2022 8:48 am Casting about for an appropriate text, I settled on translating the opening chant of the Doors' The Soft Parade into Latin. Actually spent more time on that than on writing the motet itself.
Cum essem reversus in schola seminarii
Homo quidam erat qui emitteret propositionem
Ut a Domino petere possis orando
Rogamus dominum cum oratione
Rogamus dominum cum oratione
Non potes Dominum rogare cum oratione
Re: Control rate
Nah, I think I understood you. I was just thinking about the details and whether this might actually be a better approach than using timer threads for some stuff.
I typically use a 480 sample buffer size (as it's a good compromise between throughput and latency) so calling control code every 64 samples wouldn't make much sense but I can see that using a divisor of something like 960 might be useful (i.e. every 20 ms) or 1920 (i.e. 40 ms) .
In fact dividing by 1920 is something I might test as it would produce a 25 FPS frame rate for some operations that I currently do in a timer thread. Obviously anything that might block shouldn't be called from inside ProcessSample() but there are dozens of tasks in my timer threads that can't block and might be better handled like this.
Food for thought.
-
- Posts: 599
- Joined: Mon Nov 15, 2021 9:23 pm
Re: Control rate
And is likely more accurate, to boot. I was relying on the dictionary I'd used in High School Latin, and had no grammar to check against. Good thing John Cleese wasn't around when I made that translation, or I'd have had my ears pinched.ColinP: Whilst today it takes mere seconds...
Cyberwerks Heavy Industries -- viewforum.php?f=76
Re: Control rate
Mea navis volitans anguillis plena est.UrbanCyborg wrote: ↑Sun May 15, 2022 6:42 am And is likely more accurate, to boot. I was relying on the dictionary I'd used in High School Latin, and had no grammar to check against. Good thing John Cleese wasn't around when I made that translation, or I'd have had my ears pinched.
______________________
Dome Music Technologies
Dome Music Technologies
-
- Posts: 599
- Joined: Mon Nov 15, 2021 9:23 pm
Re: Control rate
My hovercraft is full of eels? Hmmn. I don't think this tram procedes to an estuary.utdgrant: Mea navis volitans anguillis plena est
Cyberwerks Heavy Industries -- viewforum.php?f=76
-
- Posts: 599
- Joined: Mon Nov 15, 2021 9:23 pm
Re: Control rate
Exspectavimus eam.ColinP: Phython Latinam nemo expectet
Cyberwerks Heavy Industries -- viewforum.php?f=76
Re: Control rate
This is great stuff folks , thank you. Gonna go back through and read carefully. I had a hunch that it was a 64 sample counter involved, but surely not that simple. Talk of threads and race conditions and the head explodes a bit!