Custom DSP Code 2 (comunity project)

For general discussion related FlowStone
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

OK guys... update time... DSPC now supports functions to be added. min, max and abs functions are already added. Unfortunately I haven't got time to write any documentation yet, nor make the adding more user-friendly. Arrays are still not supported, nor loop and hop statements.
Attachments
DSPC3.1.fsm
(11.81 KiB) Downloaded 999 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Arrays now work too (be careful - index overflow is not checked by default) and I've added sin1, cos1, tan1, log2, and pow(a,b) functions (adapted from MartinVicanek's stream math functions). It would be helpful if some of you guys tested the DSPC3 with some codes you come up with and PM me any potential errors.
Attachments
DSPC3.1_test.fsm
(16.31 KiB) Downloaded 1030 times
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Major bugfixes...
also added hop and loop statements. And a few new functions: "to_f(x)" converts integer to float "to_i(x)" vice versa and "trunc" converts float to integer with truncation (it means only whole number part counts example: to_i(2.7)=>3 but trunc(2.7)=> 2).

Also guys do you want detailed manual in pdf or something?
Attachments
DSPC3.2.fsm
(16.44 KiB) Downloaded 1006 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Custom DSP Code 2 (comunity project)

Post by tester »

Why not?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Custom DSP Code 2 (comunity project)

Post by Spogg »

Yes please!!
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Here's a documentation on all the features... I've haven't documented the part about adding new functions yet, because it's complicated. I will add that soon...
Attachments
DSP Code v3.rar
(21.26 KiB) Downloaded 1164 times
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Custom DSP Code 2 (comunity project)

Post by Spogg »

Many thanks for doing this KG :D

I intend to start playing with this properly after you have declared it finished so will you be in a position to do this soon? Until I retire my time is limited you see...

Cheers

Spogg
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Spogg wrote:Many thanks for doing this KG :D

I intend to start playing with this properly after you have declared it finished so will you be in a position to do this soon? Until I retire my time is limited you see...

Cheers

Spogg


Well... the thing is... compilers are like MMORPG (like world of warcraft) - you never really finish it - you just level up. The compiler is already working good enough to be usable in projects. In fact, feedback from real-life users will help me find and fix bugs faster. I myself found and fixed many bugs by using it in my projects. SO GUYS, START USING IT PLEASE - IT SPEEDS UP DEVELOPMENT!
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Custom DSP Code 2 (comunity project)

Post by KG_is_back »

Here is an updated manual and latest version of DSPC3. Guys, please read it and point out any errors. Also if you know a little assembly and ruby, try to make your own function according to the tutorial, to see if it's clear enough.
Attachments
DSPC3.2.fsm
the compiler
(16.71 KiB) Downloaded 1032 times
DSP Code v3.rar
the manual
(34.84 KiB) Downloaded 1189 times
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Custom DSP Code 2 (comunity project)

Post by tulamide »

I would really like to help. But I am so untalented when it comes to DSP code, that I simply am the wrong guy for this task. But since your module is such a great help for all people who do their own dsp codes, I really, really hope you will get some support!
"There lies the dog buried" (German saying translated literally)
Post Reply