Clock Accuracy - 10ms?

For general discussion related FlowStone
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

No way dudes? Is it clear what I'm looking for? Maybe PPQ and manage index/array? (so sync with daw and not DSP code clock).
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Clock Accuracy - 10ms?

Post by martinvicanek »

The green timing system is best effort only. Tick100 doesn't mean precisely 100 triggers per second, depending on the CPU load it may be much less than that. You can't sync green with stream.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Clock Accuracy - 10ms?

Post by tulamide »

Nowhk,

martinvicanek wrote:The green timing system is best effort only. Tick100 doesn't mean precisely 100 triggers per second, depending on the CPU load it may be much less than that. You can't sync green with stream.

This leads you back to my post (the 4th in this thread). If you want a bar to follow the current position, don't forget that each monitor basically outputs at 60 Hz (even if they say something like "400 Hz system"). That means 60 frames per second, or 60 images. So there's no need to and no use in trying to be any faster when displaying something.
"There lies the dog buried" (German saying translated literally)
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

martinvicanek wrote:The green timing system is best effort only. Tick100 doesn't mean precisely 100 triggers per second, depending on the CPU load it may be much less than that. You can't sync green with stream.

So I can't do this application? Can't output (in sync) those 1024 samples? :o :shock:
Or what do you mean with "the green timing"?

tulamide wrote:Nowhk,

martinvicanek wrote:The green timing system is best effort only. Tick100 doesn't mean precisely 100 triggers per second, depending on the CPU load it may be much less than that. You can't sync green with stream.

This leads you back to my post (the 4th in this thread). If you want a bar to follow the current position, don't forget that each monitor basically outputs at 60 Hz (even if they say something like "400 Hz system"). That means 60 frames per second, or 60 images. So there's no need to and no use in trying to be any faster when displaying something.

I don't mind so much for the progression bar and LFO Graph. This can be "unsync", is just for visualization.

What should be in sync are the 1024 samples that I'll send to the output to automate knobs/sliders in my DAW. Those must be strong sync!!!
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

This is the idea I have:

ppq.png
ppq.png (31.38 KiB) Viewed 20278 times

PPQ run at Tempo project (so I guess it is sync enough).

1024 is the max range, than I restart the index (I could set it dynamically if I need less/more samples).
"Playing" will start/reset the index of the array when the DAW start.

I could place a math function to slow down/up the speed of PPQ (so it is not sync with project, but I can choose different ranges) and than (at every OUTPUT INDEX) read the value from the array of samples I've build thanks to the OSC modules (even if I've not idea how to do this in this moment without ruby).

Can't work in this way? Will suffers asynch?

fl index ppq.fsm
(397 Bytes) Downloaded 948 times
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Clock Accuracy - 10ms?

Post by MyCo »

You cannot rely on green calculations for doing anything else than visualisation and slow user inputs. FS allows itself to block green processing whenever it needs a lot of the CPU (so eg. whenever audio chunks are processed). When the CPU is quite busy because of other programs/plugins and FS only has small time slots to do its audio processing, then green calculations can in the worst case get delayed for seconds.
That's like always, if your CPU is busy then the user interface graphics and user inputs get wonky :mrgreen: Although this doesn't happen that often on modern processors...
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

MyCo wrote:You cannot rely on green calculations for doing anything else than visualisation and slow user inputs. FS allows itself to block green processing whenever it needs a lot of the CPU (so eg. whenever audio chunks are processed). When the CPU is quite busy because of other programs/plugins and FS only has small time slots to do its audio processing, then green calculations can in the worst case get delayed for seconds.
That's like always, if your CPU is busy then the user interface graphics and user inputs get wonky :mrgreen: Although this doesn't happen that often on modern processors...

Oh... wow! Nice to know this! So the only way is deal with stream. But at this point seems I cannot output stream to FL Studio? i.e. my whole project will fail? Damn no... I hope to be wrong!
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

Using PPQ as reader clocker seems not so inaccurate anyway. Maybe it could works...

At which clock/speed a DSP code module process iterations? Its a fixed one or it depends due to the CPU I'm using?

That could be a problem if differs between machines... because can output values at different time.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Clock Accuracy - 10ms?

Post by martinvicanek »

You configure the sample rate for audio processing in the audio adapter settings. Common values are 44100 Hz, 48000 Hz, and multiples thereof. It is unrelated to the CPU speed.
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

martinvicanek wrote:You configure the sample rate for audio processing in the audio adapter settings. Common values are 44100 Hz, 48000 Hz, and multiples thereof. It is unrelated to the CPU speed.

So the DSP code works at that speed? Really? 44100 iteratition every sec?
Post Reply