{"action":"opened","issue":{"url":"https://api.github.com/repos/geraintluff/ndarray-wav/issues/4","repository_url":"https://api.github.com/repos/geraintluff/ndarray-wav","labels_url":"https://api.github.com/repos/geraintluff/ndarray-wav/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/geraintluff/ndarray-wav/issues/4/comments","events_url":"https://api.github.com/repos/geraintluff/ndarray-wav/issues/4/events","html_url":"https://github.com/geraintluff/ndarray-wav/issues/4","id":146079758,"number":4,"title":"Readme code snippet needs improvement","user":{"login":"walmik","id":467030,"avatar_url":"https://avatars.githubusercontent.com/u/467030?v=3","gravatar_id":"","url":"https://api.github.com/users/walmik","html_url":"https://github.com/walmik","followers_url":"https://api.github.com/users/walmik/followers","following_url":"https://api.github.com/users/walmik/following{/other_user}","gists_url":"https://api.github.com/users/walmik/gists{/gist_id}","starred_url":"https://api.github.com/users/walmik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walmik/subscriptions","organizations_url":"https://api.github.com/users/walmik/orgs","repos_url":"https://api.github.com/users/walmik/repos","events_url":"https://api.github.com/users/walmik/events{/privacy}","received_events_url":"https://api.github.com/users/walmik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T18:59:00Z","updated_at":"2016-04-05T18:59:00Z","closed_at":null,"body":"The code snippet provided in the readme file for Reader should be corrected to as follows:\r\n```\r\nvar ndarrayWav = require('ndarray-wav');\r\nvar assert = require('assert');\r\n\r\nndarrayWav.open('input.wav', function (err, chunkMap, chunkArr) {\r\n    var format = chunkMap.fmt;\r\n    var ndSamples = chunkMap.data; // the wave data as an ndarray\r\n    assert(format.channels == ndSamples.shape[0]);\r\n    var numSamples = ndSamples.shape[1];\r\n});\r\n```"}}