Fast, accurate Sin generators

Sin generators with better precision and speed than the built-in Sin generator

(24 Votes)
1.1 (Updated 18 years ago)
40.2kB
July 23, 2006
Reaktor 5 or lower

DESCRIPTION

The builtin Sin macro provides very limited precision guarantees, and is not suitable for use in many situations. This download contains a new Core macro implementation of Sin that provides good performance, and full floating-point accuracy.

Since the original posting, QuickSin18 and and QuickSin27 have proven not to be particular efficient or accurate compared to core sin primitives.

RationalSin, however, looks like it's a very good choice. For a modest increase in CPU use, RationalSin provides full-precision floating point sin (24-bit accuracy, with worst-case E less than floating-point Epsilon). RationalSin provides better accuracy, and very slightly better performance the previous high-precision sin macro of choice, SinWT.

RationalSin works well on AMD, Intel and PowerPC platforms, and is -- so far -- the macro of choice for operations that require full floating-point precision.

Notes included in the ZIP file contain analysis of precision, and performance benchmarks in a real-world scenario of several Sin macros [rd: that should be updated to reflect further analysis soon].

Sin18 and Sin24 are not suitable for use in any application, and should be removed from the upload. I'll upload an update without them later. -rd.

COMMENTS  (7)

ant stewart
18 years ago
how amusing, as I refresh this page, I get multiple repeats of the last message I sent even though the commentary box is empty and I am only pressing the Explorer repeat button. Will report the bug.
ant stewart
18 years ago
I am figuring it perhaps can be used as a replacement for the sine in the multi-wave oscillator
ant stewart
18 years ago
sounds brilliant, it must be said that this kind of thing should be set in context for beginners.for an oscillator, what kind of signal generator do you use going into this line input? can just drop it into one of the default core oscillators? I'll have to check it out.
Paule
18 years ago
Danke Rolf.
gabriel mulzer
18 years ago
thanks
Rolf Schmuck
18 years ago
how to "load"? .rcm = core macro (inside a core cell)
Paule
18 years ago
Please, how do you load a RCN-file in R5?
now