tanh() and expf(x) or approximations in code block?
Archive · 20057 old posts
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
Kingston ·
Hi,
I found a bug of sorts in the moog filter SM highlevel block. In one menu of the provided moog filter is says it's based on this: http://www.musicdsp.org/showArchiveComm ... hiveID=196
when in fact it's far from it. I'd like to implement that filter properly in the SM code block. But how to do tanh() expf()?
There's apparently great asm implementation of tanh when you scroll down that page, but how to do that in SM? I'd hate to write the whole filter in asm..
Does SM code block support asm macros?
Any help appreciated.
sambean ·
In the early adopters thread I have a synth that uses an implementation of the ladder filter from Antti's DAFX paper, and in that very thread there was a discussion on different implemetations of the tanh function..
Here's a link to a test done on different tanh implementations,
In there you will find different versions of the tanh function..
The fastest version I got used reciprocals, it was pretty fast but only 12 bits accurate..
Does SM code block support asm macros?
If you select developer mode there is an asm module you can use, you can also write code in the code module, output the asm code generated through the string connector, and then paste this to an asm module for modification etc..
Kingston ·
sambean wrote: In the early adopters thread I have a synth that uses an implementation of the ladder filter from Antti's DAFX paper, and in that very thread there was a discussion on different implemetations of the tanh function..
Here's a link to a test done on different tanh implementations,
In there you will find different versions of the tanh function..
The fastest version I got used reciprocals, it was pretty fast but only 12 bits accurate..
Does SM code block support asm macros?
If you select developer mode there is an asm module you can use, you can also write code in the code module, output the asm code generated through the string connector, and then paste this to an asm module for modification etc..
Looks like I need to buy this thing ASAP.
Right, so I first write the code in SM C, output and paste to asm block.
Thanks
I was hoping it would be possible to do asm macros within the C code block...
sambean ·
I was hoping it would be possible to do asm macros within the C code block...
It has been requested before, maybe after version one has been released we may see improvents such like this to the code module..
Shifrin ·
Yeah, I'd love to see a :-
asm{
...
...
...
}
Construct in the code component, hint hint 😉 😉
Shif.
infuzion ·
Shifrin wrote: Yeah, I'd love to see a Construct in the code component, hint hint
Been suggested before 🙂
Possibly a mad idea: code component with a code input
Shifrin ·
infuzion wrote:
Shifrin wrote: Yeah, I'd love to see a Construct in the code component, hint hint
Been suggested before 🙂
Possibly a mad idea: code component with a code input
More than once too 😉
Shif.
Wrote something here? To have a post removed or your name hidden, write to [email protected].