{"action":"created","issue":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/2588","repository_url":"https://api.github.com/repos/supercollider/supercollider","labels_url":"https://api.github.com/repos/supercollider/supercollider/issues/2588/labels{/name}","comments_url":"https://api.github.com/repos/supercollider/supercollider/issues/2588/comments","events_url":"https://api.github.com/repos/supercollider/supercollider/issues/2588/events","html_url":"https://github.com/supercollider/supercollider/issues/2588","id":197485717,"number":2588,"title":"Hasher output range","user":{"login":"snappizz","id":1211064,"avatar_url":"https://avatars.githubusercontent.com/u/1211064?v=3","gravatar_id":"","url":"https://api.github.com/users/snappizz","html_url":"https://github.com/snappizz","followers_url":"https://api.github.com/users/snappizz/followers","following_url":"https://api.github.com/users/snappizz/following{/other_user}","gists_url":"https://api.github.com/users/snappizz/gists{/gist_id}","starred_url":"https://api.github.com/users/snappizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snappizz/subscriptions","organizations_url":"https://api.github.com/users/snappizz/orgs","repos_url":"https://api.github.com/users/snappizz/repos","events_url":"https://api.github.com/users/snappizz/events{/privacy}","received_events_url":"https://api.github.com/users/snappizz/received_events","type":"User","site_admin":false},"labels":[{"id":11974270,"url":"https://api.github.com/repos/supercollider/supercollider/labels/comp:%20server%20plugins","name":"comp: server plugins","color":"F4FF75","default":false},{"id":4413799,"url":"https://api.github.com/repos/supercollider/supercollider/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-25T03:19:28Z","updated_at":"2016-12-25T05:21:16Z","closed_at":null,"body":"The docs say that \r\n\r\n> returns a unique output value from zero to one for each input value according to a hash function.\r\n\r\nBut running `Hasher.ar(Sweep.ar)`, I can only get values in the range (-0.2, 0.2). Would it be better to fix the range or to document the quirk?"},"comment":{"url":"https://api.github.com/repos/supercollider/supercollider/issues/comments/269110700","html_url":"https://github.com/supercollider/supercollider/issues/2588#issuecomment-269110700","issue_url":"https://api.github.com/repos/supercollider/supercollider/issues/2588","id":269110700,"user":{"login":"brianlheim","id":15369640,"avatar_url":"https://avatars.githubusercontent.com/u/15369640?v=3","gravatar_id":"","url":"https://api.github.com/users/brianlheim","html_url":"https://github.com/brianlheim","followers_url":"https://api.github.com/users/brianlheim/followers","following_url":"https://api.github.com/users/brianlheim/following{/other_user}","gists_url":"https://api.github.com/users/brianlheim/gists{/gist_id}","starred_url":"https://api.github.com/users/brianlheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianlheim/subscriptions","organizations_url":"https://api.github.com/users/brianlheim/orgs","repos_url":"https://api.github.com/users/brianlheim/repos","events_url":"https://api.github.com/users/brianlheim/events{/privacy}","received_events_url":"https://api.github.com/users/brianlheim/received_events","type":"User","site_admin":false},"created_at":"2016-12-25T05:21:16Z","updated_at":"2016-12-25T05:21:16Z","body":"I can't recreate this—if I run \r\n```\r\n{Hasher.ar(Sweep.ar) }.plot(0.01)\r\n```\r\nthe first five values I get are\r\n```\r\n0.89006209373474, 0.85798931121826, 0.95394110679626, -0.15698313713074, -0.87864685058594\r\n```\r\n\r\nI'm confused as to why this UGen doesn't give constant output for constant input. Even though the doc says this is normal, it doesn't seem to follow from the idea that it's based on a hash function. For example, I get this:\r\n`Hasher.ar(0)` -> `-0.45145511627197, 0.50862240791321, -0.45145511627197, -0.45145511627197, -0.45145511627197, -0.82332158088684` ...\r\n\r\nI did some digging in the source code and the hash function being used is deterministic. I'm probably missing something obvious here since I'm not that familiar with the details of the server code."}}
{"actor":{"display_login":"brianlheim"}}