{"issue":{"user":{"id":547186,"login":"jussi-kalliokoski","url":"https://api.github.com/users/jussi-kalliokoski","gravatar_id":"c3bcb09305a87e09cc612a0918a49237","avatar_url":"https://secure.gravatar.com/avatar/c3bcb09305a87e09cc612a0918a49237?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"created_at":"2011-06-28T07:09:14Z","title":"Not enough people!","labels":[{"name":"community","url":"https://api.github.com/repos/jussi-kalliokoski/audiolib.js/labels/community","color":"0b02e1"}],"state":"open","updated_at":"2011-12-21T20:47:45Z","id":1127173,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jussi-kalliokoski/audiolib.js/issues/4","closed_at":null,"body":"The project has escalated in such a manner, that I could really use a hand here and there, and hear from people who are using audiolib.js, what they like, what they'd change, if they've already changed it and want to merge. I'm swamped, please help me out, people! :P","number":4,"url":"https://api.github.com/repos/jussi-kalliokoski/audiolib.js/issues/4","comments":1,"assignee":null},"comment":{"user":{"id":9797,"login":"kindohm","url":"https://api.github.com/users/kindohm","gravatar_id":"85de4a155c4036be725d1fa9633b7880","avatar_url":"https://secure.gravatar.com/avatar/85de4a155c4036be725d1fa9633b7880?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-21T20:47:45Z","updated_at":"2011-12-21T20:47:45Z","id":3239345,"body":"love the library. I've been searching for a non-plugin, browser-based audio synthesis library for a while. question: I'm building on the oscillator LFO tutorial and am trying to create a LFO-based amplitude modulator. Is the GainController the best effect to use for that? I've been able to automate the gain controller's gain property with some success, but I haven't been able to figure out the right values. Sample:\r\n\r\n// ... set up osc at 440 first, then... //\r\nlfoGain = audioLib.Oscillator(rate, 0.55); // LFO at 55 hz\r\ngain = audioLib.GainController(rate, 0); // initial gain of zero\r\ngain.addAutomation('gain', lfoGain, 1, 'additiveModulation');\r\n\r\nOn that last line - the 'amount' is 1. I'd expect that the gain controller's gain would be automated and oscillate between -1 and 1.  But, I only hear a constant tone.\r\n\r\nMy audioCallback looks like this:\r\n\r\n\r\nosc.append(buffer, channelCount);    \r\nlfoGain.generateBuffer(buffer.length / channelCount);\r\ngain.append(buffer, channelCount);\r\n\r\nI've played with the gain controller's initial gain value and with the gain LFO's 'amount', but I can never get a tone that seems to oscillate between \"zero volume\" and \"full volume\". Any thoughts on what I'm doing wrong?","url":"https://api.github.com/repos/jussi-kalliokoski/audiolib.js/issues/comments/3239345"},"action":"created"}