{"action":"created","comment":{"url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/comments/119349050","pull_request_review_id":41220046,"id":119349050,"diff_hunk":"@@ -0,0 +1,63 @@\n+import random\n+from scripts.track import Track\n+from scripts.song import Song\n+\n+class Composer:\n+    \"\"\"Class responsible for composing music\"\"\"\n+\n+    def __init__(self,\n+                 length,  # length of song in beat\n+                 instruments_list=[33, 43, 56],\n+                 tempo=550,  # tempo of song in beat per minute\n+                 output=\"my_file.mid\",  # path to output file\n+                 samples=3,  # amount of samples to duplicate in track\n+                 bass_sample=False,  # flag saying if bass line is required\n+                 sample_length=15,  # length of sample to generate\n+                 step=1,  # average difference of pitch note change\n+                 tracks=1,\n+                 intense=100,  # intense of sample in time\n+                 flow_ratio=75,  # frequency of note pitch change ratio <-(0,100)\n+                 seed_ratio=70,  # frequency of seeding in harmonical samples<-(0,100)\n+                 seed_range=8,  # range of seeding in harmonical samples <-(0,100)\n+                 down_willing_ratio=50,  # ratio of getting low witch pitch in harmonical samples\n+                 jump=2,  # avarega pitch diference in bass line\n+                 rude=50,  # ratio of ignoring parameters, and gerating random in bassline\n+                 key=\"c\",  # key in which music is generated\n+                 losing=0  # ratio of ignoring notes in generating midi\n+","path":"narcotic-music/scripts/composer.py","position":27,"original_position":27,"commit_id":"e03f8f14c0351e1fb701185eadd707275d249b0b","original_commit_id":"e03f8f14c0351e1fb701185eadd707275d249b0b","user":{"login":"loanel","id":19666135,"avatar_url":"https://avatars1.githubusercontent.com/u/19666135?v=3","gravatar_id":"","url":"https://api.github.com/users/loanel","html_url":"https://github.com/loanel","followers_url":"https://api.github.com/users/loanel/followers","following_url":"https://api.github.com/users/loanel/following{/other_user}","gists_url":"https://api.github.com/users/loanel/gists{/gist_id}","starred_url":"https://api.github.com/users/loanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loanel/subscriptions","organizations_url":"https://api.github.com/users/loanel/orgs","repos_url":"https://api.github.com/users/loanel/repos","events_url":"https://api.github.com/users/loanel/events{/privacy}","received_events_url":"https://api.github.com/users/loanel/received_events","type":"User","site_admin":false},"body":"Like the explanation for all variables, helps with understanding the code.","created_at":"2017-05-31T13:08:57Z","updated_at":"2017-05-31T13:14:23Z","html_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1#discussion_r119349050","pull_request_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/comments/119349050"},"html":{"href":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1#discussion_r119349050"},"pull_request":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1","id":119294684,"html_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1","diff_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1.diff","patch_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1.patch","issue_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/1","number":1,"state":"open","locked":false,"title":"Finished task1","user":{"login":"moskalap","id":23105810,"avatar_url":"https://avatars1.githubusercontent.com/u/23105810?v=3","gravatar_id":"","url":"https://api.github.com/users/moskalap","html_url":"https://github.com/moskalap","followers_url":"https://api.github.com/users/moskalap/followers","following_url":"https://api.github.com/users/moskalap/following{/other_user}","gists_url":"https://api.github.com/users/moskalap/gists{/gist_id}","starred_url":"https://api.github.com/users/moskalap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moskalap/subscriptions","organizations_url":"https://api.github.com/users/moskalap/orgs","repos_url":"https://api.github.com/users/moskalap/repos","events_url":"https://api.github.com/users/moskalap/events{/privacy}","received_events_url":"https://api.github.com/users/moskalap/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-06T10:05:37Z","updated_at":"2017-05-31T13:14:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ebb71614e7e5bd4a8718e4299b083685ae9c15e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1/commits","review_comments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1/comments","review_comment_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/1/comments","statuses_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/statuses/e03f8f14c0351e1fb701185eadd707275d249b0b","head":{"label":"AGHPythonCourse2017:master","ref":"master","sha":"e03f8f14c0351e1fb701185eadd707275d249b0b","user":{"login":"AGHPythonCourse2017","id":25467983,"avatar_url":"https://avatars1.githubusercontent.com/u/25467983?v=3","gravatar_id":"","url":"https://api.github.com/users/AGHPythonCourse2017","html_url":"https://github.com/AGHPythonCourse2017","followers_url":"https://api.github.com/users/AGHPythonCourse2017/followers","following_url":"https://api.github.com/users/AGHPythonCourse2017/following{/other_user}","gists_url":"https://api.github.com/users/AGHPythonCourse2017/gists{/gist_id}","starred_url":"https://api.github.com/users/AGHPythonCourse2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGHPythonCourse2017/subscriptions","organizations_url":"https://api.github.com/users/AGHPythonCourse2017/orgs","repos_url":"https://api.github.com/users/AGHPythonCourse2017/repos","events_url":"https://api.github.com/users/AGHPythonCourse2017/events{/privacy}","received_events_url":"https://api.github.com/users/AGHPythonCourse2017/received_events","type":"Organization","site_admin":false},"repo":{"id":85872172,"name":"zad01-moskalap","full_name":"AGHPythonCourse2017/zad01-moskalap","owner":{"login":"AGHPythonCourse2017","id":25467983,"avatar_url":"https://avatars1.githubusercontent.com/u/25467983?v=3","gravatar_id":"","url":"https://api.github.com/users/AGHPythonCourse2017","html_url":"https://github.com/AGHPythonCourse2017","followers_url":"https://api.github.com/users/AGHPythonCourse2017/followers","following_url":"https://api.github.com/users/AGHPythonCourse2017/following{/other_user}","gists_url":"https://api.github.com/users/AGHPythonCourse2017/gists{/gist_id}","starred_url":"https://api.github.com/users/AGHPythonCourse2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGHPythonCourse2017/subscriptions","organizations_url":"https://api.github.com/users/AGHPythonCourse2017/orgs","repos_url":"https://api.github.com/users/AGHPythonCourse2017/repos","events_url":"https://api.github.com/users/AGHPythonCourse2017/events{/privacy}","received_events_url":"https://api.github.com/users/AGHPythonCourse2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap","description":"zad01-moskalap created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap","forks_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/forks","keys_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/teams","hooks_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/hooks","issue_events_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/events{/number}","events_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/events","assignees_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/assignees{/user}","branches_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/branches{/branch}","tags_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/tags","blobs_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/refs{/sha}","trees_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/statuses/{sha}","languages_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/languages","stargazers_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/stargazers","contributors_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/contributors","subscribers_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/subscribers","subscription_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/subscription","commits_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/commits{/sha}","git_commits_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/commits{/sha}","comments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/comments{/number}","issue_comment_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/comments{/number}","contents_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/contents/{+path}","compare_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/merges","archive_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/downloads","issues_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues{/number}","pulls_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls{/number}","milestones_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/milestones{/number}","notifications_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/labels{/name}","releases_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/releases{/id}","deployments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/deployments","created_at":"2017-03-22T20:19:01Z","updated_at":"2017-05-19T11:50:14Z","pushed_at":"2017-05-06T10:05:37Z","git_url":"git://github.com/AGHPythonCourse2017/zad01-moskalap.git","ssh_url":"git@github.com:AGHPythonCourse2017/zad01-moskalap.git","clone_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap.git","svn_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AGHPythonCourse2017:production","ref":"production","sha":"63bd41e923c309341664c2680eb72f396d6ad1d5","user":{"login":"AGHPythonCourse2017","id":25467983,"avatar_url":"https://avatars1.githubusercontent.com/u/25467983?v=3","gravatar_id":"","url":"https://api.github.com/users/AGHPythonCourse2017","html_url":"https://github.com/AGHPythonCourse2017","followers_url":"https://api.github.com/users/AGHPythonCourse2017/followers","following_url":"https://api.github.com/users/AGHPythonCourse2017/following{/other_user}","gists_url":"https://api.github.com/users/AGHPythonCourse2017/gists{/gist_id}","starred_url":"https://api.github.com/users/AGHPythonCourse2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGHPythonCourse2017/subscriptions","organizations_url":"https://api.github.com/users/AGHPythonCourse2017/orgs","repos_url":"https://api.github.com/users/AGHPythonCourse2017/repos","events_url":"https://api.github.com/users/AGHPythonCourse2017/events{/privacy}","received_events_url":"https://api.github.com/users/AGHPythonCourse2017/received_events","type":"Organization","site_admin":false},"repo":{"id":85872172,"name":"zad01-moskalap","full_name":"AGHPythonCourse2017/zad01-moskalap","owner":{"login":"AGHPythonCourse2017","id":25467983,"avatar_url":"https://avatars1.githubusercontent.com/u/25467983?v=3","gravatar_id":"","url":"https://api.github.com/users/AGHPythonCourse2017","html_url":"https://github.com/AGHPythonCourse2017","followers_url":"https://api.github.com/users/AGHPythonCourse2017/followers","following_url":"https://api.github.com/users/AGHPythonCourse2017/following{/other_user}","gists_url":"https://api.github.com/users/AGHPythonCourse2017/gists{/gist_id}","starred_url":"https://api.github.com/users/AGHPythonCourse2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGHPythonCourse2017/subscriptions","organizations_url":"https://api.github.com/users/AGHPythonCourse2017/orgs","repos_url":"https://api.github.com/users/AGHPythonCourse2017/repos","events_url":"https://api.github.com/users/AGHPythonCourse2017/events{/privacy}","received_events_url":"https://api.github.com/users/AGHPythonCourse2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap","description":"zad01-moskalap created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap","forks_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/forks","keys_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/teams","hooks_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/hooks","issue_events_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/events{/number}","events_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/events","assignees_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/assignees{/user}","branches_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/branches{/branch}","tags_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/tags","blobs_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/refs{/sha}","trees_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/statuses/{sha}","languages_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/languages","stargazers_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/stargazers","contributors_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/contributors","subscribers_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/subscribers","subscription_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/subscription","commits_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/commits{/sha}","git_commits_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/git/commits{/sha}","comments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/comments{/number}","issue_comment_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/comments{/number}","contents_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/contents/{+path}","compare_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/merges","archive_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/downloads","issues_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues{/number}","pulls_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls{/number}","milestones_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/milestones{/number}","notifications_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/labels{/name}","releases_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/releases{/id}","deployments_url":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/deployments","created_at":"2017-03-22T20:19:01Z","updated_at":"2017-05-19T11:50:14Z","pushed_at":"2017-05-06T10:05:37Z","git_url":"git://github.com/AGHPythonCourse2017/zad01-moskalap.git","ssh_url":"git@github.com:AGHPythonCourse2017/zad01-moskalap.git","clone_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap.git","svn_url":"https://github.com/AGHPythonCourse2017/zad01-moskalap","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1"},"html":{"href":"https://github.com/AGHPythonCourse2017/zad01-moskalap/pull/1"},"issue":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/1"},"comments":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/AGHPythonCourse2017/zad01-moskalap/statuses/e03f8f14c0351e1fb701185eadd707275d249b0b"}}}}
{"actor":{"display_login":"loanel"}}