Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 10-02-2019, 06:41 AM   #321
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,029
Default

the error is simply "Event manager not started"..


So I put ultraschall.EventManager_Start() at top of the script, before calling the error message and after.


Still get the same error :S



Is there something I'm missing about it ?



(not I'm using last pre).
X-Raym is offline   Reply With Quote
Old 10-02-2019, 06:43 AM   #322
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

Ok, that's a hint. Maybe something went wrong with the ReaPack-indexfile and something is missing.

Will investigate into that.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-02-2019, 06:51 AM   #323
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,029
Default

Just for info, hat is the basic concept under the hood ? Does it defer the script somehow ? It is made in pure Lua right ?
X-Raym is offline   Reply With Quote
Old 10-02-2019, 06:56 AM   #324
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

All pure Lua.

There's a defer-script called ultraschall_eventmanager.lua, which gets started(or it should, but it seems like, it doesn't get started in your case for some reason).

The functions communicate back and forth with it using magic extstate-management.


This features also technology intended for my collaboration with lokasenna.

Edit: You could run the EventManager by hand, by adding the ultraschall_eventmanager.lua-script as action, run it and see, whether my script-snippet works after that.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-02-2019, 07:21 AM   #325
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,029
Default

I confirm the issue is that https://raw.githubusercontent.com/Ul...entManager.lua isn't downloaded.


I manually added it and it works now.


Now I'll be able to experiment when I'll face event style scripting needs. :P
X-Raym is offline   Reply With Quote
Old 10-02-2019, 07:34 AM   #326
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

Great

Will fix that on friday in Hotfix 1.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-04-2019, 07:23 AM   #327
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

@XRaym

Forgot to ask, which OS and ReaPack-version do you use?
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-04-2019, 02:58 PM   #328
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,029
Default

Win 10, last reapack version.
X-Raym is offline   Reply With Quote
Old 10-05-2019, 02:13 PM   #329
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

@XRaym
Ok, I only could find a potential bug on Linux due UpperLowercase-filname problems but I can't reproduce the bug you have...

Especially, as ReaPack would need to show an error, when downloading the EventManager.lua didn't work(it is definately in the reapack-index file).

And all my tests successfully load the full package.

So, I have no idea what the problem is. Maybe some filesystem-versioning stuff on Win10?
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 10-05-2019, 02:30 PM   #330
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

New Hotfix 1 from October, 5th, 2019

Build: 40677.01

Changes
- Docs: Reaper Internals - updated to JS-extension 0.993 and some additional bits about gfx.mouse_cap and get_action_context(); was missing gfx -> fixed
- EventManager: ultraschall_EventManager.lua - couldn't be installed/loaded under some circumstances due Upper/LowerCase-issues in filename -> fixed

please update your ReaPacks
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old Yesterday, 09:31 AM   #331
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,830
Default

Thanks mespotine you added all the great parameter learn functionality, with set and get. I still did not try them yet. But the most obvious and general use case scenario of this would be as follows, especially also useful to non-programmers:

1. only simple .txt files are used for parameter mappings
2. for saving and loading, simple .txt files
3. format could be 5 columns per line
4. using tab or ; as delimiter might work, or any of them
5. columns are: trackname;fxname;parametername;type;value

And the lua script would scan this .txt file, line by line and do following:
if (project contains any track with trackname AND any fx in that track with fxname AND any parameter in that fx with parametername)
use type for midi mapping
and value for its value

That's it. Then you could define any mappings for any scenarios for any complex project. Those .rpp templates could be shared together with those mapping .txt files.

Especially when thinking in terms of certain starndard mappings for certain devices, we could have many such templates for certain devices. Over time there could be many useful fun projects to play with, 100's of templates for device x, e.g. reason mode. Has your device reason mode, switch it on, load template, ready to go, all would work, immediately. In short it would allow making normal reaper .rpp projects, something like grooveboxes, all parameters mapped immediately to your hardware. Ready to have fun.

You plug in your project to your hardware(s) and not the opposite.

save_midi_mappings.lua would save midi_mappings.txt to project directory, which would simply contain all tracknames, all fxnames per track and all parameternames per fx, where no mapping is columns type and value would be empty. Optionally those empty mapping entry lines could be left out.

load_midi_mappings.lua would load midi_mappings.txt from project directory, if available. Wonderful way of sharing them in this forum, together with their .rpp templates.

And if load_midi_mappings.lua would be a bit more intelligent, it could even add the missing fx to the project first, then apply the midi mapping!

Typical mapping targets could be: Bypass, Wet, Cutoff, Resonance, Volume, Pan.

Last edited by TonE; Yesterday at 10:07 AM.
TonE is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.