SynthMaker

tanh() and expf(x) or approximations in code block?

Archive · 2005 7 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,

http://freespace.virgin.net/cc.lai/soothsayer/EfficiencyTest-SamPart3.osm

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,

http://freespace.virgin.net/cc.lai/soothsayer/EfficiencyTest-SamPart3.osm

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].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.