## simple sine oscillator without using sin1()

Sound synthesis techniques, DSP and related mathematics

Moderators: electrogear, exonerate

### Re: simple sine oscillator without using sin1()

martinvicanek wrote:Here is a three line recursive quadrature oscillator. ..
Code: Select all
`streamin k1;   // -tan(omega/2/SR)streamin k2;   // sin(omega/SR)streamout x;   // sin(omega*t)streamout y;   // cos(omega*t)float tmp;stage(0)  {  x = 0;  y = 1;  }stage(2)  {  tmp = y + k1*x;  x   = x + k2*tmp;  y   = tmp + k1*x;  }`
...I am attaching an OSM with optimized ASM
I have used this as an example: viewtopic.php?f=10&t=10728&start=41
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar

Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

### Re: simple sine oscillator without using sin1()

Yes you can solve it by adding a sin1 cos 1. This will produce a greater modulation.
aaron77
essemer

Posts: 1
Joined: Fri Oct 12, 2012 2:08 pm

Previous