simple sine oscillator without using sin1()

Sound synthesis techniques, DSP and related mathematics

Moderators: electrogear, exonerate

Re: simple sine oscillator without using sin1()

Postby infuzion on Wed Aug 08, 2012 5:23 am

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
Not sure if this is your latest version; I am confused by this whole thread anyway. :blush:
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
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: simple sine oscillator without using sin1()

Postby aaron77 on Fri Oct 19, 2012 10:26 pm

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

Return to Sound

Who is online

Users browsing this forum: No registered users and 1 guest