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,867
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 offline   Reply With Quote
Old 07-31-2018, 05:23 AM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,019
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.

Last edited by Lokasenna; 07-31-2018 at 05:29 AM.
Lokasenna is offline   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,867
Default

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


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