{"action":"created","comment":{"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/comments/48477353","id":48477353,"diff_hunk":"@@ -0,0 +1,16 @@\n+#function for generating a tone.\n+def toneGeneration():\n+    secs = 5                                                  #setting the length, frequencey and amplitude of the clip.\n+    freq = 150\n+    amplitude = 3000\n+    buildSin = makeEmptySoundBySeconds(secs)                  #building the clip\n+    sampleRate = getSamplingRate(buildSin)\n+    interval = 1.0/freq\n+    samplesPerCycle = interval * sampleRate                   #working out the samples per cycle.\n+    maxCycle = 2 * pi\n+    for pos in range (0,getLength(buildSin)):\n+        rawSample = sin((pos / samplesPerCycle) * maxCycle)   \n+        sampleValue = int(amplitude * rawSample)              #gets the value of the sample.\n+        setSampleValueAt(buildSin, pos, sampleValue)          #sets that value to be played for the length of the clip.","path":"code for tinkering audio/tone_generation.py","position":14,"original_position":14,"commit_id":"aef2ab487866ec8faefa744b17bc8750553bf643","original_commit_id":"aef2ab487866ec8faefa744b17bc8750553bf643","user":{"login":"Adrir","id":2940419,"avatar_url":"https://avatars.githubusercontent.com/u/2940419?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrir","html_url":"https://github.com/Adrir","followers_url":"https://api.github.com/users/Adrir/followers","following_url":"https://api.github.com/users/Adrir/following{/other_user}","gists_url":"https://api.github.com/users/Adrir/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrir/subscriptions","organizations_url":"https://api.github.com/users/Adrir/orgs","repos_url":"https://api.github.com/users/Adrir/repos","events_url":"https://api.github.com/users/Adrir/events{/privacy}","received_events_url":"https://api.github.com/users/Adrir/received_events","type":"User","site_admin":false},"body":":+1: The comments in the section are quite helpful and formatted well. Consider doing this for some of the other methods that you have defined.","created_at":"2015-12-28T12:46:27Z","updated_at":"2015-12-28T12:46:27Z","html_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4#discussion_r48477353","pull_request_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/comments/48477353"},"html":{"href":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4#discussion_r48477353"},"pull_request":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4","id":54623324,"html_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4","diff_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4.diff","patch_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4.patch","issue_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/4","number":4,"state":"open","locked":false,"title":"4 out of the 6 tinkering audio","user":{"login":"teasterbrook17","id":14273189,"avatar_url":"https://avatars.githubusercontent.com/u/14273189?v=3","gravatar_id":"","url":"https://api.github.com/users/teasterbrook17","html_url":"https://github.com/teasterbrook17","followers_url":"https://api.github.com/users/teasterbrook17/followers","following_url":"https://api.github.com/users/teasterbrook17/following{/other_user}","gists_url":"https://api.github.com/users/teasterbrook17/gists{/gist_id}","starred_url":"https://api.github.com/users/teasterbrook17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teasterbrook17/subscriptions","organizations_url":"https://api.github.com/users/teasterbrook17/orgs","repos_url":"https://api.github.com/users/teasterbrook17/repos","events_url":"https://api.github.com/users/teasterbrook17/events{/privacy}","received_events_url":"https://api.github.com/users/teasterbrook17/received_events","type":"User","site_admin":false},"body":"random audio generation i am still working on but i am still not sure\r\nhow to do it. Also what is expected with parsing tokens into audio.","created_at":"2015-12-27T20:20:42Z","updated_at":"2015-12-28T12:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c870a2458ee5ae238cffdf1d81c3f33fe6d2adcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/4/comments","statuses_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/statuses/aef2ab487866ec8faefa744b17bc8750553bf643","head":{"label":"teasterbrook17:master","ref":"master","sha":"aef2ab487866ec8faefa744b17bc8750553bf643","user":{"login":"teasterbrook17","id":14273189,"avatar_url":"https://avatars.githubusercontent.com/u/14273189?v=3","gravatar_id":"","url":"https://api.github.com/users/teasterbrook17","html_url":"https://github.com/teasterbrook17","followers_url":"https://api.github.com/users/teasterbrook17/followers","following_url":"https://api.github.com/users/teasterbrook17/following{/other_user}","gists_url":"https://api.github.com/users/teasterbrook17/gists{/gist_id}","starred_url":"https://api.github.com/users/teasterbrook17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teasterbrook17/subscriptions","organizations_url":"https://api.github.com/users/teasterbrook17/orgs","repos_url":"https://api.github.com/users/teasterbrook17/repos","events_url":"https://api.github.com/users/teasterbrook17/events{/privacy}","received_events_url":"https://api.github.com/users/teasterbrook17/received_events","type":"User","site_admin":false},"repo":{"id":46343238,"name":"comp-120-tinkering-audio","full_name":"teasterbrook17/comp-120-tinkering-audio","owner":{"login":"teasterbrook17","id":14273189,"avatar_url":"https://avatars.githubusercontent.com/u/14273189?v=3","gravatar_id":"","url":"https://api.github.com/users/teasterbrook17","html_url":"https://github.com/teasterbrook17","followers_url":"https://api.github.com/users/teasterbrook17/followers","following_url":"https://api.github.com/users/teasterbrook17/following{/other_user}","gists_url":"https://api.github.com/users/teasterbrook17/gists{/gist_id}","starred_url":"https://api.github.com/users/teasterbrook17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teasterbrook17/subscriptions","organizations_url":"https://api.github.com/users/teasterbrook17/orgs","repos_url":"https://api.github.com/users/teasterbrook17/repos","events_url":"https://api.github.com/users/teasterbrook17/events{/privacy}","received_events_url":"https://api.github.com/users/teasterbrook17/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/teasterbrook17/comp-120-tinkering-audio","description":"Re-purposing audio generation and manipulation algorithms in Python.","fork":true,"url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio","forks_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/forks","keys_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/teams","hooks_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/hooks","issue_events_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/issues/events{/number}","events_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/events","assignees_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/assignees{/user}","branches_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/branches{/branch}","tags_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/tags","blobs_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/git/refs{/sha}","trees_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/statuses/{sha}","languages_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/languages","stargazers_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/stargazers","contributors_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/contributors","subscribers_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/subscribers","subscription_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/subscription","commits_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/commits{/sha}","git_commits_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/git/commits{/sha}","comments_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/comments{/number}","issue_comment_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/issues/comments{/number}","contents_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/contents/{+path}","compare_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/merges","archive_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/downloads","issues_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/issues{/number}","pulls_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/pulls{/number}","milestones_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/milestones{/number}","notifications_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/labels{/name}","releases_url":"https://api.github.com/repos/teasterbrook17/comp-120-tinkering-audio/releases{/id}","created_at":"2015-11-17T11:37:53Z","updated_at":"2015-12-27T20:20:23Z","pushed_at":"2015-12-27T20:20:22Z","git_url":"git://github.com/teasterbrook17/comp-120-tinkering-audio.git","ssh_url":"git@github.com:teasterbrook17/comp-120-tinkering-audio.git","clone_url":"https://github.com/teasterbrook17/comp-120-tinkering-audio.git","svn_url":"https://github.com/teasterbrook17/comp-120-tinkering-audio","homepage":"","size":2,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Falmouth-Games-Academy:master","ref":"master","sha":"95f108dc36007e7b52ce83fe79a588c99565acc6","user":{"login":"Falmouth-Games-Academy","id":13518108,"avatar_url":"https://avatars.githubusercontent.com/u/13518108?v=3","gravatar_id":"","url":"https://api.github.com/users/Falmouth-Games-Academy","html_url":"https://github.com/Falmouth-Games-Academy","followers_url":"https://api.github.com/users/Falmouth-Games-Academy/followers","following_url":"https://api.github.com/users/Falmouth-Games-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Falmouth-Games-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Falmouth-Games-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Falmouth-Games-Academy/subscriptions","organizations_url":"https://api.github.com/users/Falmouth-Games-Academy/orgs","repos_url":"https://api.github.com/users/Falmouth-Games-Academy/repos","events_url":"https://api.github.com/users/Falmouth-Games-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Falmouth-Games-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":46224664,"name":"comp-120-tinkering-audio","full_name":"Falmouth-Games-Academy/comp-120-tinkering-audio","owner":{"login":"Falmouth-Games-Academy","id":13518108,"avatar_url":"https://avatars.githubusercontent.com/u/13518108?v=3","gravatar_id":"","url":"https://api.github.com/users/Falmouth-Games-Academy","html_url":"https://github.com/Falmouth-Games-Academy","followers_url":"https://api.github.com/users/Falmouth-Games-Academy/followers","following_url":"https://api.github.com/users/Falmouth-Games-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Falmouth-Games-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Falmouth-Games-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Falmouth-Games-Academy/subscriptions","organizations_url":"https://api.github.com/users/Falmouth-Games-Academy/orgs","repos_url":"https://api.github.com/users/Falmouth-Games-Academy/repos","events_url":"https://api.github.com/users/Falmouth-Games-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Falmouth-Games-Academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio","description":"Re-purposing audio generation and manipulation algorithms in Python.","fork":false,"url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio","forks_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/forks","keys_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/teams","hooks_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/hooks","issue_events_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/events{/number}","events_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/events","assignees_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/assignees{/user}","branches_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/branches{/branch}","tags_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/tags","blobs_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/statuses/{sha}","languages_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/languages","stargazers_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/stargazers","contributors_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/contributors","subscribers_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/subscribers","subscription_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/subscription","commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/contents/{+path}","compare_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/merges","archive_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/downloads","issues_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues{/number}","pulls_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls{/number}","milestones_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/milestones{/number}","notifications_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/labels{/name}","releases_url":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/releases{/id}","created_at":"2015-11-15T16:01:55Z","updated_at":"2015-11-15T16:02:23Z","pushed_at":"2015-12-27T20:20:42Z","git_url":"git://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio.git","ssh_url":"git@github.com:Falmouth-Games-Academy/comp-120-tinkering-audio.git","clone_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio.git","svn_url":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4"},"html":{"href":"https://github.com/Falmouth-Games-Academy/comp-120-tinkering-audio/pull/4"},"issue":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/4"},"comments":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Falmouth-Games-Academy/comp-120-tinkering-audio/statuses/aef2ab487866ec8faefa744b17bc8750553bf643"}}}}