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
Sin Osc (for curiosity)
13 posts
• Page 2 of 2 • 1, 2
Re: Sin Osc (for curiosity)
Find a little optimization for the last one.
For both code there's 3 line that are not necessary !)
There's no need to make a triangle first.
The operation do the same with a ramp 0-1.
For both code there's 3 line that are not necessary !)
There's no need to make a triangle first.
The operation do the same with a ramp 0-1.
- Attachments
-
- fast sin v2.fsm
- (69.7 KiB) Downloaded 521 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Sin Osc (for curiosity)
I'm surprise !
I was thinking that the last sin osc i made could be a little faster that the sin of Martin Vicanek.
(Comparing with a version with no phase)
It take no variable, less multiply. But 12 instruction against 11.
And it's a little slower !!
I was thinking that using less variable could help.
That using add is faster than multiply. or andps than add..
But no, doesn't seams to change anything on my cpu !!
Whatever, i'm happy to explore the sin complexity !)
I was thinking that the last sin osc i made could be a little faster that the sin of Martin Vicanek.
(Comparing with a version with no phase)
It take no variable, less multiply. But 12 instruction against 11.
And it's a little slower !!
I was thinking that using less variable could help.
That using add is faster than multiply. or andps than add..
But no, doesn't seams to change anything on my cpu !!
Whatever, i'm happy to explore the sin complexity !)
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
Re: Sin Osc (for curiosity)
There was 2 lines that was not necessary in the last code.
(How can i not see this !) There's so many way to do !
So now it's a little faster than the MV Sin while aliasing at +- 7000hz.
But honestly the cpu gain is very very insignificant.
Now the volume is slower than 1. It's 0.313 or depending of the parameter.
Strangely i also have another version using sign to make the ramp.
It take more line, 11 against 6 but it's just a very little slower.
(How can i not see this !) There's so many way to do !
So now it's a little faster than the MV Sin while aliasing at +- 7000hz.
But honestly the cpu gain is very very insignificant.
Now the volume is slower than 1. It's 0.313 or depending of the parameter.
Strangely i also have another version using sign to make the ramp.
It take more line, 11 against 6 but it's just a very little slower.
- Attachments
-
- fast sin v3.fsm
- (88.15 KiB) Downloaded 525 times
- Tepeix
- Posts: 361
- Joined: Sat Oct 16, 2021 3:11 pm
13 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 23 guests