Skip to content

Commit 3fa0225

Browse files
author
Friedolino
committed
fix add and del envelope points
1 parent a34a45a commit 3fa0225

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/mruby-zest/example/ZynEnvEdit.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Widget {
77
return if env.selected == nil
88
return if !free.value
99
path = self.extern + "addPoint"
10-
$remote.action(path, env.selected)
10+
$remote.action(path, env.selected/3)
1111
env.refresh
1212
}
1313
function del_point()
@@ -16,7 +16,7 @@ Widget {
1616
return if env.selected == nil
1717
return if !free.value
1818
path = self.extern + "delPoint"
19-
$remote.action(path, env.selected)
19+
$remote.action(path, env.selected/3)
2020
env.refresh
2121
}
2222

src/mruby-zest/qml/Envelope.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Widget {
2020
ext = env.extern
2121
xvalues = OSC::RemoteParam.new($remote, ext + "envdt") # array of x values
2222
yvalues = OSC::RemoteParam.new($remote, ext + "envval") # array of y values
23-
#~ cxvalues = OSC::RemoteParam.new($remote, ext + "envcpx") # array of control point x values
2423
cyvalues = OSC::RemoteParam.new($remote, ext + "envcpy") # array of control point y values
2524
pts = OSC::RemoteParam.new($remote, ext + "Penvpoints") # number of points
2625
pts.mode = :selector

0 commit comments

Comments
 (0)