Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

DSP Counter Problem

For general discussion related FlowStone

DSP Counter Problem

Postby aronb » Mon Nov 13, 2017 1:40 am

Hi,

I have seen other questions about counters used for wave positions and do not know if this is related.

I have a counter (actually happens with both, 1 is mine, other is not) that stop counting with small increments in the counter, in the DSP code.

Counter_Issue_01.fsm
Need help please
(78.53 KiB) Downloaded 816 times

I can't seem to fix it... When the counter is started it works fine, but stops at interesting places... as shown here at 4096 :shock:

Other values of step increments produce similar results also at interesting binary number boundaries.

Thanks for any help please :?

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: DSP Counter Problem

Postby Spogg » Mon Nov 13, 2017 10:25 am

The problem is down to the limitations of single precision float values.
This issue can also make large wave files go out of tune when playing back at reduced fractional speed: The smaller index incrementation values become imprecise.

I've attached a solution using Double Precision prims.
Also there's a little tookit included (not by me).

Hope this helps.

Cheers

Spogg
Attachments
Counter_Issue_01 -Spogged .fsm
(213.92 KiB) Downloaded 823 times
User avatar
Spogg
 
Posts: 3318
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: DSP Counter Problem

Postby aronb » Mon Nov 13, 2017 2:55 pm

Thank You for helping me out Spogg 8-) ! ! !

I was not aware that you could build something like that using simple primitives that way... I have way more to learn I guess!

Aron :D
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: DSP Counter Problem

Postby Spogg » Tue Nov 14, 2017 11:19 am

aronb wrote:I was not aware that you could build something like that using simple primitives that way... I have way more to learn I guess!


We all do mate. It never ends, one of the reasons I love FS so much!
User avatar
Spogg
 
Posts: 3318
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England


Return to General

Who is online

Users browsing this forum: No registered users and 53 guests

cron