Skip to content

Instantly share code, notes, and snippets.

@williamfields
Last active June 15, 2021 17:22
Show Gist options
  • Save williamfields/88255f43b39bdc915431636672f4e404 to your computer and use it in GitHub Desktop.
Save williamfields/88255f43b39bdc915431636672f4e404 to your computer and use it in GitHub Desktop.
TouchOSC: Reset all faders in a grid to a value
function resetGrid(grid,setTo)
local gridColumns = grid.properties.gridX
local gridRows = grid.properties.gridY
for i=1,gridRows*gridColumns,1
do
grid.children[i].values.x = setTo
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment