monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
630 stars 145 forks source link

metro.count is not reset when loading a new scipt #263

Closed antonhornquist closed 6 years ago

antonhornquist commented 6 years ago

a one shot metro defined in one script appears to cause the count = 1 to be retained in other scripts

looks as if more cleanup is needed here: https://github.com/catfact/norns/blob/dev/lua/script.lua#L21

tehn commented 6 years ago

https://github.com/catfact/norns/issues/266

catfact commented 6 years ago

kinda different issue...

if metros are "allocated" then it does indeed seem correct that they should reset to default state when "freed" (which means count = -1)

catfact commented 6 years ago

added commit to PR #286