{"action":"created","issue":{"url":"https://api.github.com/repos/Tonejs/Tone.js/issues/180","repository_url":"https://api.github.com/repos/Tonejs/Tone.js","labels_url":"https://api.github.com/repos/Tonejs/Tone.js/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/Tonejs/Tone.js/issues/180/comments","events_url":"https://api.github.com/repos/Tonejs/Tone.js/issues/180/events","html_url":"https://github.com/Tonejs/Tone.js/issues/180","id":190236274,"number":180,"title":"Swing implementation","user":{"login":"algomusic","id":872088,"avatar_url":"https://avatars.githubusercontent.com/u/872088?v=3","gravatar_id":"","url":"https://api.github.com/users/algomusic","html_url":"https://github.com/algomusic","followers_url":"https://api.github.com/users/algomusic/followers","following_url":"https://api.github.com/users/algomusic/following{/other_user}","gists_url":"https://api.github.com/users/algomusic/gists{/gist_id}","starred_url":"https://api.github.com/users/algomusic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algomusic/subscriptions","organizations_url":"https://api.github.com/users/algomusic/orgs","repos_url":"https://api.github.com/users/algomusic/repos","events_url":"https://api.github.com/users/algomusic/events{/privacy}","received_events_url":"https://api.github.com/users/algomusic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T04:56:30Z","updated_at":"2016-11-18T07:41:05Z","closed_at":null,"body":"When setting the swing value in the Transport, the first two 16th notes in each beat are correctly lengthened and shortened, but the remaining two 16ths seem not to be varied. Resulting in an inconsistent swing feel."},"comment":{"url":"https://api.github.com/repos/Tonejs/Tone.js/issues/comments/261468223","html_url":"https://github.com/Tonejs/Tone.js/issues/180#issuecomment-261468223","issue_url":"https://api.github.com/repos/Tonejs/Tone.js/issues/180","id":261468223,"user":{"login":"tambien","id":1323402,"avatar_url":"https://avatars.githubusercontent.com/u/1323402?v=3","gravatar_id":"","url":"https://api.github.com/users/tambien","html_url":"https://github.com/tambien","followers_url":"https://api.github.com/users/tambien/followers","following_url":"https://api.github.com/users/tambien/following{/other_user}","gists_url":"https://api.github.com/users/tambien/gists{/gist_id}","starred_url":"https://api.github.com/users/tambien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tambien/subscriptions","organizations_url":"https://api.github.com/users/tambien/orgs","repos_url":"https://api.github.com/users/tambien/repos","events_url":"https://api.github.com/users/tambien/events{/privacy}","received_events_url":"https://api.github.com/users/tambien/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T07:41:05Z","updated_at":"2016-11-18T07:41:05Z","body":"[This is how](https://github.com/Tonejs/Tone.js/blob/master/Tone/core/Transport.js#L207) swing is currently calculated. I added a sinusoidal curve to the delay amount so that it's not uniformly pushing the beat back which was leading to the swung notes eventually getting pushed onto the beat. Using the sinusoidal curve, the up beat is the most swing at the notes around it are progressively less delayed.\r\n\r\n[Here](https://jsfiddle.net/faxx637t/2/) is a little test case for swing. Sounds pretty swung to me, but i'm open to other suggestions. "}}
{"actor":{"display_login":"tambien"}}