{"action":"created","issue":{"url":"https://api.github.com/repos/brunchboy/afterglow/issues/9","labels_url":"https://api.github.com/repos/brunchboy/afterglow/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/brunchboy/afterglow/issues/9/comments","events_url":"https://api.github.com/repos/brunchboy/afterglow/issues/9/events","html_url":"https://github.com/brunchboy/afterglow/issues/9","id":120433485,"number":9,"title":"More oscillators?","user":{"login":"dandaka","id":2384694,"avatar_url":"https://avatars.githubusercontent.com/u/2384694?v=3","gravatar_id":"","url":"https://api.github.com/users/dandaka","html_url":"https://github.com/dandaka","followers_url":"https://api.github.com/users/dandaka/followers","following_url":"https://api.github.com/users/dandaka/following{/other_user}","gists_url":"https://api.github.com/users/dandaka/gists{/gist_id}","starred_url":"https://api.github.com/users/dandaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandaka/subscriptions","organizations_url":"https://api.github.com/users/dandaka/orgs","repos_url":"https://api.github.com/users/dandaka/repos","events_url":"https://api.github.com/users/dandaka/events{/privacy}","received_events_url":"https://api.github.com/users/dandaka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brunchboy/afterglow/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-04T16:12:54Z","updated_at":"2015-12-11T06:34:42Z","closed_at":null,"body":"I'm thinking about using oscillators with user input and MIDI input. General idea is to mix, say, sine-generated values with sound intensity. One simple way is to achieve this is to use ```:max``` parameter of ```(afterglow.effects.params/build-oscillated-param oscillator)```.\r\n\r\nBut music/show has another dimension — time, which is interesting to use.\r\n\r\nI'm thinking about this kind of oscillators:\r\n\r\n![osc](https://cloud.githubusercontent.com/assets/2384694/11594364/40c099c2-9ab2-11e5-9769-4df3a7ebb16e.png)\r\n\r\nThe third one is a bit tricky to design. I have showed 0.5x beat case. To use floats in this case (\"make me a sine every 0.4 beat) Afterglow has to \"collect\" them.\r\n\r\nWhat do you think of it? Are this types achievable with current Afterglow?"},"comment":{"url":"https://api.github.com/repos/brunchboy/afterglow/issues/comments/163856117","html_url":"https://github.com/brunchboy/afterglow/issues/9#issuecomment-163856117","issue_url":"https://api.github.com/repos/brunchboy/afterglow/issues/9","id":163856117,"user":{"login":"brunchboy","id":2228869,"avatar_url":"https://avatars.githubusercontent.com/u/2228869?v=3","gravatar_id":"","url":"https://api.github.com/users/brunchboy","html_url":"https://github.com/brunchboy","followers_url":"https://api.github.com/users/brunchboy/followers","following_url":"https://api.github.com/users/brunchboy/following{/other_user}","gists_url":"https://api.github.com/users/brunchboy/gists{/gist_id}","starred_url":"https://api.github.com/users/brunchboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunchboy/subscriptions","organizations_url":"https://api.github.com/users/brunchboy/orgs","repos_url":"https://api.github.com/users/brunchboy/repos","events_url":"https://api.github.com/users/brunchboy/events{/privacy}","received_events_url":"https://api.github.com/users/brunchboy/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T06:34:42Z","updated_at":"2015-12-11T06:34:42Z","body":"Now that the oscillator redesign coding is finished, I can confirm that you can use dynamic parameters inside your `shape-fn`; the new `sawtooth` and `square` implementations take advantage of this. Because dynamic parameters need access to the show, metronome snapshot, and perhaps a lighting head in order to be evaluated, it is more complicated than the simple one-argument example above in such cases, but it is still pretty simple; you can look at the code for those oscillators to see how I do it."}}