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
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
DSP Counter Problem
4 posts
• Page 1 of 1
DSP Counter Problem
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.
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
Other values of step increments produce similar results also at interesting binary number boundaries.
Thanks for any help please
Aron
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.
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
Other values of step increments produce similar results also at interesting binary number boundaries.
Thanks for any help please
Aron
-
aronb - Posts: 154
- Joined: Sun Apr 17, 2011 3:08 am
- Location: Florida, USA
Re: DSP Counter Problem
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
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 855 times
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: DSP Counter Problem
Thank You for helping me out Spogg ! ! !
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
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
-
aronb - Posts: 154
- Joined: Sun Apr 17, 2011 3:08 am
- Location: Florida, USA
Re: DSP Counter Problem
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!
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 67 guests