Clock Accuracy - 10ms?

For general discussion related FlowStone
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Clock Accuracy - 10ms?

Post by martinvicanek »

Todays hardware performance is amazing, isnt it? ;)
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Clock Accuracy - 10ms?

Post by nix »

Yeah man,
FS is sample by sample.
You can get 128k out of it too.
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

martinvicanek wrote:Todays hardware performance is amazing, isnt it? ;)

Hahah, I don't mean this. I mean that such code:

Code: Select all

i = i + speed;
i = i&(i<samples);

processed at different clock (44100hz as you noticed) instead of 48Khz, makes huge differents if I use it for read sample from a Read module (as you suggested). Because it increase the speed of the whole process.

It is not a simple "for statement" that try to iterate in the slower time (more CPU you have, more faster it will be). Its a "for" that must iterate in a fixed time (i.e. sync). Am I right?

nix wrote:Yeah man,
FS is sample by sample.
You can get 128k out of it too.

But not every kind of processing inside FS! Ruby code is way more slower.
For what I see, only DSP code get and stay in synch at that speed (and maybe also Assembler code).
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

Anyway I think I'm making some other mistakes:

Immagine.png
Immagine.png (39.54 KiB) Viewed 23513 times

Without rely on Graph (I removed it; could be delayed as suggested), every time an integer in INDEX module is outputted, I should immediatly see the current sample of that index changing in the other SAMPLE module.

Instead they are way (waayy) to async. What am I missing dudes? Its somethings like 3/4 seconds delayed. Too heavy...

schematic.fsm
(718 Bytes) Downloaded 905 times

can't figure it out! :(

I guess that:

when i==0 output => -0.693325
when i==1 output => 0.755871

and so on. Instead it "change" around i=1.78 for example, and the first step is quicker than the others (i=1 happens quickly).
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Clock Accuracy - 10ms?

Post by nix »

Yep- only streams use samples.

I'll have a peek at your schematic over the weekend
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

nix wrote:Yep- only streams use samples.

I'll have a peek at your schematic over the weekend

Wow, thanks! You will make me very happy, because I need to made this kind of stuff for the project Ive in my mind. Stay tuned...
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Clock Accuracy - 10ms?

Post by nix »

hmm-
can I get the whole LFO schematic?

Do you need to use ppq?

ps- when you use .00001 as the counter iter,
it takes very long to count to 1, which is where it will register an integer step in the wave read
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Clock Accuracy - 10ms?

Post by nix »

Hey again Nowhk,
I saw your post at Fruity, so I learnt more about the ppq hack.
Here is the counter I have modified->
schematic_integer.fsm
(1.15 KiB) Downloaded 951 times

So the string array and the counter read the same.
Does that help?
http://imageshack.com/a/img633/1214/qJgkVp.png
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Clock Accuracy - 10ms?

Post by billv »

This might help.
Check the blue section in this modulator. (It's an old 'myco' circuit from way back.)
schematic_bv.fsm
(277.2 KiB) Downloaded 1056 times
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Clock Accuracy - 10ms?

Post by Nowhk »

nix wrote:Hey again Nowhk,
I saw your post at Fruity, so I learnt more about the ppq hack.
Here is the counter I have modified->
schematic_integer.fsm

So the string array and the counter read the same.
Does that help?
http://imageshack.com/a/img633/1214/qJgkVp.png

Uhm, I don't understand your schematic: it's identical to mine! And in fact using "i + .00001" I've the same problem.

billv wrote:This might help.
Check the blue section in this modulator. (It's an old 'myco' circuit from way back.)
schematic_bv.fsm

Uhm, not really :o The method is the same (stream->read mem->ppq tick->out), but the problem is that the index/output of the stream seems not aligned with the DSP code. I can see the values change, but not at the correct integer time/index :cry:
Post Reply