Skip to content

Commit

Permalink
controller zone test script
Browse files Browse the repository at this point in the history
  • Loading branch information
ngwese committed Oct 3, 2021
1 parent d370a3f commit b569fa1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dep/soundplaneclient
Submodule soundplaneclient updated 1 files
+1 −1 src/Zone.cpp
17 changes: 17 additions & 0 deletions mod/controller_zone.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function init()
spn.handlers.control = function(...) print('ctl', ...) end
x = spn.client.zone.new({
name = 'foo',
type = 'xy',
bounds = {0, 0, 3, 3},
ctrl1 = 12,
ctrl2 = 13
})
spn.client.start()
spn.client.set_zones({x})
spn.client.set_property('data_rate', 10)
end

function cleanup()
spn.client.stop()
end

0 comments on commit b569fa1

Please sign in to comment.