Skip to content

Commit

Permalink
fix add and del envelope points
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedolino committed Nov 23, 2023
1 parent a34a45a commit 3fa0225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mruby-zest/example/ZynEnvEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Widget {
return if env.selected == nil
return if !free.value
path = self.extern + "addPoint"
$remote.action(path, env.selected)
$remote.action(path, env.selected/3)
env.refresh
}
function del_point()
Expand All @@ -16,7 +16,7 @@ Widget {
return if env.selected == nil
return if !free.value
path = self.extern + "delPoint"
$remote.action(path, env.selected)
$remote.action(path, env.selected/3)
env.refresh
}

Expand Down
1 change: 0 additions & 1 deletion src/mruby-zest/qml/Envelope.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Widget {
ext = env.extern
xvalues = OSC::RemoteParam.new($remote, ext + "envdt") # array of x values
yvalues = OSC::RemoteParam.new($remote, ext + "envval") # array of y values
#~ cxvalues = OSC::RemoteParam.new($remote, ext + "envcpx") # array of control point x values
cyvalues = OSC::RemoteParam.new($remote, ext + "envcpy") # array of control point y values
pts = OSC::RemoteParam.new($remote, ext + "Penvpoints") # number of points
pts.mode = :selector
Expand Down

0 comments on commit 3fa0225

Please sign in to comment.