{"action":"created","issue":{"url":"https://api.github.com/repos/LMMS/lmms/issues/2047","labels_url":"https://api.github.com/repos/LMMS/lmms/issues/2047/labels{/name}","comments_url":"https://api.github.com/repos/LMMS/lmms/issues/2047/comments","events_url":"https://api.github.com/repos/LMMS/lmms/issues/2047/events","html_url":"https://github.com/LMMS/lmms/issues/2047","id":75587516,"number":2047,"title":"TripleOscillator: Oscillators are getting out of sync","user":{"login":"musikBear","id":6662066,"avatar_url":"https://avatars.githubusercontent.com/u/6662066?v=3","gravatar_id":"","url":"https://api.github.com/users/musikBear","html_url":"https://github.com/musikBear","followers_url":"https://api.github.com/users/musikBear/followers","following_url":"https://api.github.com/users/musikBear/following{/other_user}","gists_url":"https://api.github.com/users/musikBear/gists{/gist_id}","starred_url":"https://api.github.com/users/musikBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/musikBear/subscriptions","organizations_url":"https://api.github.com/users/musikBear/orgs","repos_url":"https://api.github.com/users/musikBear/repos","events_url":"https://api.github.com/users/musikBear/events{/privacy}","received_events_url":"https://api.github.com/users/musikBear/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LMMS/lmms/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/LMMS/lmms/labels/core","name":"core","color":"2c974f"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-12T12:35:20Z","updated_at":"2015-07-06T21:43:15Z","closed_at":null,"body":"I have spend some time trying to figure out, why lmms sounds less 'punchy/ agressive' than other daw's\r\nduring that i have seen something strange\r\nTo reproduce\r\ninsert a std 3oc\r\nset all 3 osc to saw\r\ninsert a 18 bar long note in D3\r\nplay\r\nThe sound variates in a sweep-like fashion:\r\n![paste](https://cloud.githubusercontent.com/assets/6662066/7587156/79f8c944-f8b4-11e4-8856-e39e8fb08444.PNG)\r\n\r\nWhy?\r\nThere are no \r\n* envelope settings\r\n* filters\r\n* reso\r\n\r\nwhy is this note not completely uniform in spektrum?\r\nIf i do exactly the same with 3oc in fls-demo, i get a completely uniform spectrum\r\n\r\n![paste](https://cloud.githubusercontent.com/assets/6662066/7587173/a4c4afee-f8b4-11e4-8bfa-75d414a263d3.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/LMMS/lmms/issues/comments/119005763","html_url":"https://github.com/LMMS/lmms/issues/2047#issuecomment-119005763","issue_url":"https://api.github.com/repos/LMMS/lmms/issues/2047","id":119005763,"user":{"login":"grejppi","id":772336,"avatar_url":"https://avatars.githubusercontent.com/u/772336?v=3","gravatar_id":"","url":"https://api.github.com/users/grejppi","html_url":"https://github.com/grejppi","followers_url":"https://api.github.com/users/grejppi/followers","following_url":"https://api.github.com/users/grejppi/following{/other_user}","gists_url":"https://api.github.com/users/grejppi/gists{/gist_id}","starred_url":"https://api.github.com/users/grejppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grejppi/subscriptions","organizations_url":"https://api.github.com/users/grejppi/orgs","repos_url":"https://api.github.com/users/grejppi/repos","events_url":"https://api.github.com/users/grejppi/events{/privacy}","received_events_url":"https://api.github.com/users/grejppi/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T21:43:15Z","updated_at":"2015-07-06T21:43:15Z","body":"This is likely to be a floating point precision thing. Getting the frequency for a note involves a lot of divisions, multiplications, powf() calls and whatnot. The tiniest errors add up and result in the oscillators getting out of phase.\r\n\r\nI made a [test project](https://gist.github.com/grejppi/0bf7818a24c48d76f64d) with two oscillators. The first one has no detuning and plays the notes D4, D4, D4. The second one has its coarse detuning automated as 0, -12, -24 and playing the notes D4, D5, D6.\r\n\r\nThis is their difference.\r\n\r\n![phase difference](https://cloud.githubusercontent.com/assets/772336/8533310/eff4167c-243c-11e5-8c01-210228dd2b83.png)\r\n"}}