SynthMaker

inv sine (ce stuff again)

Archive · 2012 7 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

tester ·

According to cool edit, this picture is an inverted sine (generated at max gain and no DC modification). What is the mathematics (SM) behind? Without using wavetable.

DigitalWhiteByte ·

math for acos(inverse cosine) function is

streamin x; streamout y; y =(3.14/2)-x-((1/6)*pow(x,3))-((3/40)*pow(x,5))-((5/112)*pow(x,7))-((35/1152)*pow(x,9));

DigitalWhiteByte ·

Both, of course the 16-bit accuracy.

streamin x; streamout acos; streamout asin; acos =(3.1415927/2)-x-((1/6)*pow(x,3))-((3/40)*pow(x,5))-((5/112)*pow(x,7))-((35/1152)*pow(x,9)); asin =x+((1/6)*pow(x,3))+((3/40)*pow(x,5))+((5/112)*pow(x,7))+((35/1152)*pow(x,9));

I hope I did not forget anything.

tester ·

Thanks, I check that when I'm on my second machine; graph and sound will tell. So generally - this equation is an approximate mathematical series? (don't know what is proper translation here - series, string or sequence). Is it the same as the green "sin/cos inverse primitive"?

martinvicanek ·

Yes, DWB's code shows the first terms of the power series for the inverse circular functions arcsin(x) and arccos(x). However, the Cool Edit screenshot seems unrelated to that, looks more like an inverted (in the sense of upside down) rectified sine with DC removed, like

out = a - b*abs(sin(omega*t));

with suitably chosen a and b. (CE draws a smooth curve through the discrete set of samples, hence the overshoots where you would expect kinks). That's my guess anyway, since my version 1.2a of CE does not offer this feature.

tester ·

Tone generator and FFT filter were present up to Adobe Audition v 3.0 (adobe buyed out syntrillium after CE pro was released). However in most recent version (I'm not sure if this is 4.0 or 4.5) - they rebuilded CE from scratch, and removed manu yseful things, like the whole technical tone generator with it's advanced features and as far I remember - FFT filter too.

I don't know what is exactly behind CE inv sine, but it sounds nice 🙂 So I thought to include it (as a handy shape selection) in my gadged too. By the way - are there any other basic shapes, that are sounding nice, and are related to some basinc mathematical functions? I'm including a wavetable (and slow-noise modifiers) too, but shape loader is a different story there.

tester ·

Hmm... I have no sound on output, neither with frequency input in (0-1) normalized range nor in stanradrd Hz range. So I guess this is not the equivalent of inv sine from cool edit or something is missing here.

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.