{"action":"created","comment":{"url":"https://api.github.com/repos/audiokit/AudioKit/pulls/comments/79490033","id":79490033,"diff_hunk":"@@ -31,7 +31,25 @@ open class AKMIDISampler: AKSampler {\n     ///\n     open func enableMIDI(_ midiClient: MIDIClientRef, name: String) {\n         var result: OSStatus\n-        result = MIDIDestinationCreateWithBlock(midiClient, name as CFString, &midiIn, MyMIDIReadBlock as! MIDIReadBlock)\n+        \n+        \n+        let readBlock: MIDIReadBlock = { packetList, srcConnRefCon in\n+            let packetCount = Int(packetList.pointee.numPackets)\n+            let packet = packetList.pointee.packet as MIDIPacket\n+            var packetPointer: UnsafeMutablePointer<MIDIPacket> = UnsafeMutablePointer.allocate(capacity: 1)\n+            packetPointer.initialize(to: packet)\n+            \n+            for _ in 0 ..< packetCount {\n+                let event = AKMIDIEvent(packet: packetPointer.pointee)\n+                //the next line is unique for midiInstruments - otherwise this function is the same as AKMIDI\n+                self.handleMIDI(data1: UInt32(event.internalData[0]),\n+                                data2: UInt32(event.internalData[1]),\n+                                data3: UInt32(event.internalData[2]))\n+                packetPointer = MIDIPacketNext(packetPointer)\n+            }\n+        }\n+        ","path":"AudioKit/Common/MIDI/AKMIDISampler.swift","position":22,"original_position":22,"commit_id":"c060556221229eece7992529636cf5c3cba741c9","original_commit_id":"c060556221229eece7992529636cf5c3cba741c9","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)","created_at":"2016-09-19T21:11:03Z","updated_at":"2016-09-19T21:11:03Z","html_url":"https://github.com/audiokit/AudioKit/pull/558#discussion_r79490033","pull_request_url":"https://api.github.com/repos/audiokit/AudioKit/pulls/558","_links":{"self":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/comments/79490033"},"html":{"href":"https://github.com/audiokit/AudioKit/pull/558#discussion_r79490033"},"pull_request":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/558"}}},"pull_request":{"url":"https://api.github.com/repos/audiokit/AudioKit/pulls/558","id":85870305,"html_url":"https://github.com/audiokit/AudioKit/pull/558","diff_url":"https://github.com/audiokit/AudioKit/pull/558.diff","patch_url":"https://github.com/audiokit/AudioKit/pull/558.patch","issue_url":"https://api.github.com/repos/audiokit/AudioKit/issues/558","number":558,"state":"open","locked":false,"title":"Fixed AKMusicTrack.setLength by removing unused pointer creation - ch…","user":{"login":"eljeff","id":4977304,"avatar_url":"https://avatars.githubusercontent.com/u/4977304?v=3","gravatar_id":"","url":"https://api.github.com/users/eljeff","html_url":"https://github.com/eljeff","followers_url":"https://api.github.com/users/eljeff/followers","following_url":"https://api.github.com/users/eljeff/following{/other_user}","gists_url":"https://api.github.com/users/eljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eljeff/subscriptions","organizations_url":"https://api.github.com/users/eljeff/orgs","repos_url":"https://api.github.com/users/eljeff/repos","events_url":"https://api.github.com/users/eljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eljeff/received_events","type":"User","site_admin":false},"body":"…anged midi readblock for akmidisampler","created_at":"2016-09-19T21:10:54Z","updated_at":"2016-09-19T21:11:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"523bb5e49a5ec31f075cd51e80a1d5b119358620","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/audiokit/AudioKit/pulls/558/commits","review_comments_url":"https://api.github.com/repos/audiokit/AudioKit/pulls/558/comments","review_comment_url":"https://api.github.com/repos/audiokit/AudioKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/audiokit/AudioKit/issues/558/comments","statuses_url":"https://api.github.com/repos/audiokit/AudioKit/statuses/c060556221229eece7992529636cf5c3cba741c9","head":{"label":"eljeff:develop","ref":"develop","sha":"c060556221229eece7992529636cf5c3cba741c9","user":{"login":"eljeff","id":4977304,"avatar_url":"https://avatars.githubusercontent.com/u/4977304?v=3","gravatar_id":"","url":"https://api.github.com/users/eljeff","html_url":"https://github.com/eljeff","followers_url":"https://api.github.com/users/eljeff/followers","following_url":"https://api.github.com/users/eljeff/following{/other_user}","gists_url":"https://api.github.com/users/eljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eljeff/subscriptions","organizations_url":"https://api.github.com/users/eljeff/orgs","repos_url":"https://api.github.com/users/eljeff/repos","events_url":"https://api.github.com/users/eljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eljeff/received_events","type":"User","site_admin":false},"repo":{"id":50607641,"name":"AudioKit","full_name":"eljeff/AudioKit","owner":{"login":"eljeff","id":4977304,"avatar_url":"https://avatars.githubusercontent.com/u/4977304?v=3","gravatar_id":"","url":"https://api.github.com/users/eljeff","html_url":"https://github.com/eljeff","followers_url":"https://api.github.com/users/eljeff/followers","following_url":"https://api.github.com/users/eljeff/following{/other_user}","gists_url":"https://api.github.com/users/eljeff/gists{/gist_id}","starred_url":"https://api.github.com/users/eljeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eljeff/subscriptions","organizations_url":"https://api.github.com/users/eljeff/orgs","repos_url":"https://api.github.com/users/eljeff/repos","events_url":"https://api.github.com/users/eljeff/events{/privacy}","received_events_url":"https://api.github.com/users/eljeff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eljeff/AudioKit","description":"Open-source audio synthesis, processing, & analysis platform.","fork":true,"url":"https://api.github.com/repos/eljeff/AudioKit","forks_url":"https://api.github.com/repos/eljeff/AudioKit/forks","keys_url":"https://api.github.com/repos/eljeff/AudioKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eljeff/AudioKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eljeff/AudioKit/teams","hooks_url":"https://api.github.com/repos/eljeff/AudioKit/hooks","issue_events_url":"https://api.github.com/repos/eljeff/AudioKit/issues/events{/number}","events_url":"https://api.github.com/repos/eljeff/AudioKit/events","assignees_url":"https://api.github.com/repos/eljeff/AudioKit/assignees{/user}","branches_url":"https://api.github.com/repos/eljeff/AudioKit/branches{/branch}","tags_url":"https://api.github.com/repos/eljeff/AudioKit/tags","blobs_url":"https://api.github.com/repos/eljeff/AudioKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eljeff/AudioKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eljeff/AudioKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/eljeff/AudioKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eljeff/AudioKit/statuses/{sha}","languages_url":"https://api.github.com/repos/eljeff/AudioKit/languages","stargazers_url":"https://api.github.com/repos/eljeff/AudioKit/stargazers","contributors_url":"https://api.github.com/repos/eljeff/AudioKit/contributors","subscribers_url":"https://api.github.com/repos/eljeff/AudioKit/subscribers","subscription_url":"https://api.github.com/repos/eljeff/AudioKit/subscription","commits_url":"https://api.github.com/repos/eljeff/AudioKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/eljeff/AudioKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/eljeff/AudioKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/eljeff/AudioKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/eljeff/AudioKit/contents/{+path}","compare_url":"https://api.github.com/repos/eljeff/AudioKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eljeff/AudioKit/merges","archive_url":"https://api.github.com/repos/eljeff/AudioKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eljeff/AudioKit/downloads","issues_url":"https://api.github.com/repos/eljeff/AudioKit/issues{/number}","pulls_url":"https://api.github.com/repos/eljeff/AudioKit/pulls{/number}","milestones_url":"https://api.github.com/repos/eljeff/AudioKit/milestones{/number}","notifications_url":"https://api.github.com/repos/eljeff/AudioKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eljeff/AudioKit/labels{/name}","releases_url":"https://api.github.com/repos/eljeff/AudioKit/releases{/id}","deployments_url":"https://api.github.com/repos/eljeff/AudioKit/deployments","created_at":"2016-01-28T19:28:22Z","updated_at":"2016-01-28T19:28:25Z","pushed_at":"2016-09-19T21:10:25Z","git_url":"git://github.com/eljeff/AudioKit.git","ssh_url":"git@github.com:eljeff/AudioKit.git","clone_url":"https://github.com/eljeff/AudioKit.git","svn_url":"https://github.com/eljeff/AudioKit","homepage":"http://audiokit.io/","size":179105,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"audiokit:develop","ref":"develop","sha":"536271d482bfb8d47fe4622795361e7108aa7306","user":{"login":"audiokit","id":6593633,"avatar_url":"https://avatars.githubusercontent.com/u/6593633?v=3","gravatar_id":"","url":"https://api.github.com/users/audiokit","html_url":"https://github.com/audiokit","followers_url":"https://api.github.com/users/audiokit/followers","following_url":"https://api.github.com/users/audiokit/following{/other_user}","gists_url":"https://api.github.com/users/audiokit/gists{/gist_id}","starred_url":"https://api.github.com/users/audiokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audiokit/subscriptions","organizations_url":"https://api.github.com/users/audiokit/orgs","repos_url":"https://api.github.com/users/audiokit/repos","events_url":"https://api.github.com/users/audiokit/events{/privacy}","received_events_url":"https://api.github.com/users/audiokit/received_events","type":"Organization","site_admin":false},"repo":{"id":16096528,"name":"AudioKit","full_name":"audiokit/AudioKit","owner":{"login":"audiokit","id":6593633,"avatar_url":"https://avatars.githubusercontent.com/u/6593633?v=3","gravatar_id":"","url":"https://api.github.com/users/audiokit","html_url":"https://github.com/audiokit","followers_url":"https://api.github.com/users/audiokit/followers","following_url":"https://api.github.com/users/audiokit/following{/other_user}","gists_url":"https://api.github.com/users/audiokit/gists{/gist_id}","starred_url":"https://api.github.com/users/audiokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audiokit/subscriptions","organizations_url":"https://api.github.com/users/audiokit/orgs","repos_url":"https://api.github.com/users/audiokit/repos","events_url":"https://api.github.com/users/audiokit/events{/privacy}","received_events_url":"https://api.github.com/users/audiokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/audiokit/AudioKit","description":"Open-source audio synthesis, processing, & analysis platform.","fork":false,"url":"https://api.github.com/repos/audiokit/AudioKit","forks_url":"https://api.github.com/repos/audiokit/AudioKit/forks","keys_url":"https://api.github.com/repos/audiokit/AudioKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/audiokit/AudioKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/audiokit/AudioKit/teams","hooks_url":"https://api.github.com/repos/audiokit/AudioKit/hooks","issue_events_url":"https://api.github.com/repos/audiokit/AudioKit/issues/events{/number}","events_url":"https://api.github.com/repos/audiokit/AudioKit/events","assignees_url":"https://api.github.com/repos/audiokit/AudioKit/assignees{/user}","branches_url":"https://api.github.com/repos/audiokit/AudioKit/branches{/branch}","tags_url":"https://api.github.com/repos/audiokit/AudioKit/tags","blobs_url":"https://api.github.com/repos/audiokit/AudioKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/audiokit/AudioKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/audiokit/AudioKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/audiokit/AudioKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/audiokit/AudioKit/statuses/{sha}","languages_url":"https://api.github.com/repos/audiokit/AudioKit/languages","stargazers_url":"https://api.github.com/repos/audiokit/AudioKit/stargazers","contributors_url":"https://api.github.com/repos/audiokit/AudioKit/contributors","subscribers_url":"https://api.github.com/repos/audiokit/AudioKit/subscribers","subscription_url":"https://api.github.com/repos/audiokit/AudioKit/subscription","commits_url":"https://api.github.com/repos/audiokit/AudioKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/audiokit/AudioKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/audiokit/AudioKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/audiokit/AudioKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/audiokit/AudioKit/contents/{+path}","compare_url":"https://api.github.com/repos/audiokit/AudioKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/audiokit/AudioKit/merges","archive_url":"https://api.github.com/repos/audiokit/AudioKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/audiokit/AudioKit/downloads","issues_url":"https://api.github.com/repos/audiokit/AudioKit/issues{/number}","pulls_url":"https://api.github.com/repos/audiokit/AudioKit/pulls{/number}","milestones_url":"https://api.github.com/repos/audiokit/AudioKit/milestones{/number}","notifications_url":"https://api.github.com/repos/audiokit/AudioKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/audiokit/AudioKit/labels{/name}","releases_url":"https://api.github.com/repos/audiokit/AudioKit/releases{/id}","deployments_url":"https://api.github.com/repos/audiokit/AudioKit/deployments","created_at":"2014-01-21T08:16:07Z","updated_at":"2016-09-19T10:07:26Z","pushed_at":"2016-09-19T21:10:55Z","git_url":"git://github.com/audiokit/AudioKit.git","ssh_url":"git@github.com:audiokit/AudioKit.git","clone_url":"https://github.com/audiokit/AudioKit.git","svn_url":"https://github.com/audiokit/AudioKit","homepage":"http://audiokit.io/","size":185614,"stargazers_count":2441,"watchers_count":2441,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":339,"mirror_url":null,"open_issues_count":6,"forks":339,"open_issues":6,"watchers":2441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/558"},"html":{"href":"https://github.com/audiokit/AudioKit/pull/558"},"issue":{"href":"https://api.github.com/repos/audiokit/AudioKit/issues/558"},"comments":{"href":"https://api.github.com/repos/audiokit/AudioKit/issues/558/comments"},"review_comments":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/558/comments"},"review_comment":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/audiokit/AudioKit/pulls/558/commits"},"statuses":{"href":"https://api.github.com/repos/audiokit/AudioKit/statuses/c060556221229eece7992529636cf5c3cba741c9"}}}}
{"actor":{"display_login":"houndci-bot"}}