mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2026-01-06 15:35:28 +01:00
better automation speed control handling, remove debug output
This commit is contained in:
@@ -48,7 +48,11 @@ class SequencePlugin(Plugin):
|
||||
]
|
||||
|
||||
def set_speed(self, speed):
|
||||
self.speed = 2.0 * (2.0*(speed-0.5))
|
||||
#self.speed = 2.0 * (2.0*(speed-0.5))
|
||||
speed = 2.0*(speed-0.5) # adjust to range -1 to +1
|
||||
negative = speed<0.0 # remember negative state cos we'll lose it in next
|
||||
self.speed = (speed * speed) * 2.0
|
||||
if negative: self.speed *= -1
|
||||
print ("automation speed is now %s" % self.speed)
|
||||
|
||||
"""def position(self, now):
|
||||
|
||||
Reference in New Issue
Block a user