{"comment":{"url":"https://api.github.com/repos/justmoen/fofix/comments/10087622","html_url":"https://github.com/justmoen/fofix/commit/44bf597c949ce0529e41a3c4565e2044ab78fac7#commitcomment-10087622","id":10087622,"user":{"login":"mdsitton","id":212897,"avatar_url":"https://avatars.githubusercontent.com/u/212897?v=3","gravatar_id":"","url":"https://api.github.com/users/mdsitton","html_url":"https://github.com/mdsitton","followers_url":"https://api.github.com/users/mdsitton/followers","following_url":"https://api.github.com/users/mdsitton/following{/other_user}","gists_url":"https://api.github.com/users/mdsitton/gists{/gist_id}","starred_url":"https://api.github.com/users/mdsitton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdsitton/subscriptions","organizations_url":"https://api.github.com/users/mdsitton/orgs","repos_url":"https://api.github.com/users/mdsitton/repos","events_url":"https://api.github.com/users/mdsitton/events{/privacy}","received_events_url":"https://api.github.com/users/mdsitton/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"44bf597c949ce0529e41a3c4565e2044ab78fac7","created_at":"2015-03-08T03:17:27Z","updated_at":"2015-03-08T03:17:27Z","body":"Well enumerate() basically pairs an index value to an object  for example lets say we have the following list.\r\ntestList = ['obj1', 'obj2', 'obj3']\r\n\r\nwhen used in a for loop it will have the following for each value in the list.\r\n0, 'obj1'\r\n1, 'obj2'\r\n2, 'obj4'\r\n\r\nSo what you have going on. i starts out at 3\r\nj is the index value from the list being looped over.\r\n\r\ni = j + 3 overwrites the previous value of i which was either 3 (first time through loop) or  j + 3 + 1\r\n\r\nSo because of i = j + 3 any previous value of i is unused.\r\n\r\nHopefully that made sense. Also if there are no drum tracks that loop just wont run, because there are no items to loop over. That would be the case even if it wasn't behind an if statement."}}