Linear support (strokers and fucking machines)


libPlug2in.js and the pattern composer support linear features now!
I still haven’t updated the RPG Maker plugin accordingly yet, so I’ll make a proper release of that later.

For now you can play around with this if you want. I tried to set this up as safely as possible (the connection shake uses slow-moving commands and the device will slowly return to its configured “min” position when fully idle), but strokers and fucking machines are usually stronger actuators than vibes or oscillators, so please use caution.
This is an open-loop system and the API uses duration rather than speed, so if the device doesn’t start out where you expect it to be, it can move unexpectedly quickly.

I still need to update the documentation. In short: The syntax is the same as for the other features, but controls position instead of strength or speed. That means a repeating .z pattern will move between min and max position.
Only a single linear pattern is supported at a time. I don’t know if there are devices with multiple linear features, but the scheduling would have been much more complicated.

The min and max config are in the 0.0 to 1.0 range and control the targeted motion range of the feature.
0.0/min is usually fully inserted while 1.0/max is fully retracted, but you can reverse this if you want.

moveDuration is a multiplier for the duration of individual moves and starts out at 1.03 to account for timing inaccuracies somewhat. (A newly sent device feature control message should usually cancel previous ones.)

Have fun!

Files

plug2in-pattern-composer-web.zip Play in browser
Version 9 3 hours ago

Leave a comment

Log in with itch.io to leave a comment.