Restim: e-stim audio generation software
Moderator: andyp
Re: Restim: e-stim audio generation software
Yes, the same way the carrier frequency adjustment works in FOC.
Re: Restim: e-stim audio generation software
That would be even better than using the metadata in the volume script, as it's intent is more clear and is less obfuscated.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.
But also... NeoDK? Are you working on something new that I've missed?
Re: Restim: e-stim audio generation software
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.
Re: Restim: e-stim audio generation software
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.
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.
Re: Restim: e-stim audio generation software
MFP uses proprietary .Net libs so it doesn't work on Linux afaik.diglet wrote: Fri Dec 27, 2024 10:14 am Multifunplayer supports the OFS API and can be used for realtime feedback during scripting.
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 emptyRe: Restim: e-stim audio generation software
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.
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.
Re: Restim: e-stim audio generation software
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 updiglet 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.
Re: Restim: e-stim audio generation software
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?
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?
Re: Restim: e-stim audio generation software
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.
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.
Re: Restim: e-stim audio generation software
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.
Re: Restim: e-stim audio generation software
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.
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.
Re: Restim: e-stim audio generation software
TY, will give it another try on my mac. Not much success so far (had basically given up).
-
thebears73
- Explorer At Heart

- Posts: 348
- Joined: Sat May 11, 2019 7:22 am
Re: Restim: e-stim audio generation software
what does this even mean... execute Run.Shdiglet 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.
I have python downloaded, what does it do?
I double click Run.Sh and it just opens a text editor?
Re: Restim: e-stim audio generation software
Thanks for the feedback. In linux, you can do right click -> run in terminal. Is that not available on mac?thebears73 wrote: Fri Jan 17, 2025 1:34 amwhat does this even mean... execute Run.Shdiglet 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.
I have python downloaded, what does it do?
I double click Run.Sh and it just opens a text editor?
If you are on mac, can you try renaming run.sh to run.command, and double-click that?
Re: Restim: e-stim audio generation software
Could formulate the script like this:
and then add the modified file to git with
to mark it as executable. When checked out the file should be possible to run by double clicking it, at least on Linux.
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
Code: Select all
git add --chmod=+x run.sh
