Old 07-31-2018, 03:02 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 17,337
Default Parsing project chunks in ReaScripts

Here are a couple of anomalies in the project file chunkss, making parsing in ReaScripts awkward.

Quote:
<VST "VST: MEqualizer (MeldaProduction)" MEqualizer.dll 0 "" 1296131379
vs
<JS "IX/MIDI_KeyMap II" ""
Parsing to extract the FX name traditionally looks for a space then another space followed by an opening bracket (; neither are present in the JS FX string

and
Quote:
PARMLEARN 12 12976 2
vs
PARMLEARN 5:wet 14000 2
Parsing to extract the data traditionally relies on the second element being numeric (it is the parameter number). The Bypass and Wet parameters added by Reaper to every FX have a text suffix.
__________________
DarkStar ... interesting, if true. Inspired by ...
DarkStar is online now   Reply With Quote
Old 07-31-2018, 05:23 AM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,153
Default

Check if the line starts with VST or JS and then parse appropriately?

Not sure what you mean by "traditionally" here, since that's how the project files have always formatted them AFAIK.
__________________
Currently working away from home; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack

Last edited by Lokasenna; 07-31-2018 at 05:29 AM.
Lokasenna is online now   Reply With Quote
Old 07-31-2018, 06:26 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 17,337
Default

By "traditionally", I just mean the ReaScripts that I have looked at.
__________________
DarkStar ... interesting, if true. Inspired by ...
DarkStar is online now   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 07:44 AM.


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