Restim: e-stim audio generation software

Discussion about Cock Hero and other sexy videos.

Moderator: andyp

diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

Yes, the same way the carrier frequency adjustment works in FOC.
darthjj
Explorer At Heart
Explorer At Heart
Posts: 134
Joined: Wed Jun 16, 2021 6:42 am

Re: Restim: e-stim audio generation software

Post by darthjj »

diglet wrote: Thu Dec 26, 2024 2:14 pm That sounds good. What I want to do is introduce a new funscript (xxx.intensity.funscript ?) that is a linear map to the signal current adjusted for a few factors (mostly carrier frequency, possibly pulse width/frequency). And then have some default conversion between .volume.funscript and .intensity.funscript, that can also be customized if we want. If both are present it will pick the best one for your device.
That would be even better than using the metadata in the volume script, as it's intent is more clear and is less obfuscated.

But also... NeoDK? Are you working on something new that I've missed?
darthjj
Explorer At Heart
Explorer At Heart
Posts: 134
Joined: Wed Jun 16, 2021 6:42 am

Re: Restim: e-stim audio generation software

Post by darthjj »

New feature request :) It looks like OpenFunscripter has some kind of websocket API, have you looked into integrating it with Restim? Would be helpful with realtime feedback when creating new scripts. I don't think it's compatible with buttplug.io.
diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

The NeoDK is a new box, not developed by me. I have a few at home: https://github.com/Onwrikbaar/NeoDK

It is a completely different design with only one transformer. the usual channel design is dropped and replaced with triacs to route the electricity between 4 outputs. I'm just waiting until the API becomes available before starting work implementation in Restim, the dev says he hopes to get it done this year.

Multifunplayer supports the OFS API and can be used for realtime feedback during scripting.
darthjj
Explorer At Heart
Explorer At Heart
Posts: 134
Joined: Wed Jun 16, 2021 6:42 am

Re: Restim: e-stim audio generation software

Post by darthjj »

diglet wrote: Fri Dec 27, 2024 10:14 am Multifunplayer supports the OFS API and can be used for realtime feedback during scripting.
MFP uses proprietary .Net libs so it doesn't work on Linux afaik.

Is there any way to reload auto-loaded funcscripts without restarting Restim btw?

And I found that an empty beta funscript crashes Restim

Code: Select all

Traceback (most recent call last):
  File "/home/djj/Temp/restim/qt_ui/widgets/phase_widget.py", line 217, in refresh
    b = self.beta.interpolate(time.time() - self.latency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/djj/Temp/restim/stim_math/axis.py", line 132, in interpolate
    return self.interpolator.interpolate(self.timeline, self.timestamp_mapper.map_timestamp(timestamp))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/djj/Temp/restim/stim_math/axis.py", line 113, in interpolate
    return np.interp(timestamp, timeline.x(), timeline.y())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/djj/.local/lib/python3.12/site-packages/numpy/lib/function_base.py", line 1599, in interp
    return interp_func(x, xp, fp, left, right)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: array of sample points is empty
diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

I think you're right about MFP not working on linux...

To reload funscripts, switch media to internal and then back to your video player, or switch to a different video in your media player and then back. The files are loaded from disk when they are added to the tree view, it will print a message how long it took in the console. There is a cache to speedup loading, but that works from the actual file contents. If you re-load hundreds of funscripts you may run into memory issues because it never cleans up the funscript cache.
darthjj
Explorer At Heart
Explorer At Heart
Posts: 134
Joined: Wed Jun 16, 2021 6:42 am

Re: Restim: e-stim audio generation software

Post by darthjj »

diglet wrote: Fri Dec 27, 2024 3:08 pm To reload funscripts, switch media to internal and then back to your video player, or switch to a different video in your media player and then back. The files are loaded from disk when they are added to the tree view, it will print a message how long it took in the console. There is a cache to speedup loading, but that works from the actual file contents. If you re-load hundreds of funscripts you may run into memory issues because it never cleans up the funscript cache.
Just saying it would be convenient when creating new scripts if there was a single button to press which invalidates the cache and reloads the files :) Switching input sources is 6 clicks since I usually look at the live control while playing, and because of the dropdown menu. Not difficult to do once or twice, but when you do it every time you modify and export the scripts it adds up
bd4224
Explorer
Explorer
Posts: 6
Joined: Sun Oct 16, 2022 6:31 pm

Re: Restim: e-stim audio generation software

Post by bd4224 »

Windows emulator for Restim on
Android tablet?

I'm not very tech savvy so sorry if this is a dumb question. I use a Samsung Galaxy tab S7 and do not have a laptop I can use for restim. Is there a Windows emulator I could use on my tablet to run restim software?
diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

It might be possible to create executables for android, since it's just a python application with relatively common libs. But this sounds like a chore and I'm not interested in doing it.

If you have a (windows, linux or mac) desktop you can try using a remote desktop app to control restim from your tablet. Or use https://github.com/edger477/Restim-Controller for some basic controls from your tablet.
bd4224
Explorer
Explorer
Posts: 6
Joined: Sun Oct 16, 2022 6:31 pm

Re: Restim: e-stim audio generation software

Post by bd4224 »

Got it, thanks. Definitely wouldn't expect you to add anything, this is a huge project you are already doing and very appreciated. I will give those options a try and see if I can pick up a decent used laptop.
diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

New release: v1.29 https://github.com/diglet48/restim/releases

I added a script (run.sh) that should allow linux/mac users to start Restim without using the command line. I only tested it on linux. Let me know if you encounter any issues.

I also improved the funscript conversion in two ways, very fast movements (below 80ms) will have additional data points. I also added random direction changes (clockwise/counterclockwise) with a probability of 10%, this should make scripts feel less monotonous. I'm curious if this change works for everyone.
LNS
Explorer At Heart
Explorer At Heart
Posts: 166
Joined: Mon Dec 31, 2007 3:15 pm

Re: Restim: e-stim audio generation software

Post by LNS »

TY, will give it another try on my mac. Not much success so far (had basically given up).
thebears73
Explorer At Heart
Explorer At Heart
Posts: 348
Joined: Sat May 11, 2019 7:22 am

Re: Restim: e-stim audio generation software

Post by thebears73 »

diglet wrote: Fri Jan 10, 2025 7:58 pm

I added a script (run.sh) that should allow linux/mac users to start Restim without using the command line. I only tested it on linux. Let me know if you encounter any issues.

what does this even mean... execute Run.Sh

I have python downloaded, what does it do?
I double click Run.Sh and it just opens a text editor?
diglet
Explorer At Heart
Explorer At Heart
Posts: 390
Joined: Sun Dec 11, 2022 5:43 pm

Re: Restim: e-stim audio generation software

Post by diglet »

thebears73 wrote: Fri Jan 17, 2025 1:34 am
diglet wrote: Fri Jan 10, 2025 7:58 pm

I added a script (run.sh) that should allow linux/mac users to start Restim without using the command line. I only tested it on linux. Let me know if you encounter any issues.

what does this even mean... execute Run.Sh

I have python downloaded, what does it do?
I double click Run.Sh and it just opens a text editor?
Thanks for the feedback. In linux, you can do right click -> run in terminal. Is that not available on mac?

If you are on mac, can you try renaming run.sh to run.command, and double-click that?
darthjj
Explorer At Heart
Explorer At Heart
Posts: 134
Joined: Wed Jun 16, 2021 6:42 am

Re: Restim: e-stim audio generation software

Post by darthjj »

Could formulate the script like this:

Code: Select all

#!/bin/bash

VENV_PATH="./venv"

if ! [ -f "$VENV_PATH" ]; then
  echo "setting up venv"
  python3 -m venv "$VENV_PATH"
fi

echo "activating venv"
. "$VENV_PATH"/bin/activate

echo "checking requirements"
python3 -m pip install -r requirements.txt

echo "starting restim"
python3 ./restim.py
and then add the modified file to git with

Code: Select all

git add --chmod=+x run.sh
to mark it as executable. When checked out the file should be possible to run by double clicking it, at least on Linux.
Post Reply