Old 06-04-2018, 07:00 AM   #281
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,238
Default

  • Being able to change the CSV of retval_csv separator from GetUseInput would be very welcome (imagine you have several lines, and in each of this lines, the user can enter text with commas or csv with comma too. Sure we can tell him to add quotes as prefix and suffix, but this extra info is not very user fiendly, it is easy for the user to mess with a comma, and then all the fields will be shift and it can have very bad consequences on destrcutive processing (like injecting metadata).
X-Raym is offline   Reply With Quote
Old 06-07-2018, 02:43 PM   #282
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

Quote:
Originally Posted by X-Raym View Post
  • Being able to change the CSV of retval_csv separator from GetUseInput would be very welcome (imagine you have several lines, and in each of this lines, the user can enter text with commas or csv with comma too. Sure we can tell him to add quotes as prefix and suffix, but this extra info is not very user fiendly, it is easy for the user to mess with a comma, and then all the fields will be shift and it can have very bad consequences on destrcutive processing (like injecting metadata).
I already wrote a FR on this one long ago, but to no luck, yet...

I would prefer to get an array(maybe reaper-array?), in which every entry is it's own returned user-input-value, or, at least that GetUserInputs escapes commas as input by the user, so I could separate , from GetUserInputs from \, from actual user input .
mespotine is offline   Reply With Quote
Old 06-07-2018, 04:17 PM   #283
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,238
Default

@mespotine
Oh yes arrays would be nicer, but Im prettty confident that adding an extra parameter for characters would need less rework :P


A comma is a way too many often used character, it should have been default to a | or even more esoteric character.
X-Raym is offline   Reply With Quote
Old 06-09-2018, 04:05 PM   #284
ThomasE
Human being with feelings
 
Join Date: Aug 2009
Location: Sweden
Posts: 38
Default

Quote:
Originally Posted by mespotine View Post
I already wrote a FR on this one long ago, but to no luck, yet...

I would prefer to get an array(maybe reaper-array?), in which every entry is it's own returned user-input-value, or, at least that GetUserInputs escapes commas as input by the user, so I could separate , from GetUserInputs from \, from actual user input .
Yes, please... Escaped commas for the user input, or selectable delimiter would be a great improvement.
ThomasE is offline   Reply With Quote
Old 07-04-2018, 05:37 AM   #285
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,160
Default

For the web-interface
(and possible other usage)
it would be great to read/set number of preroll measures.

I believe it's currently not accessible via the api
__________________
Reaper x64, win 8.1
G-Sun.no - Music Blog - My music
G-Sun is online now   Reply With Quote
Old 07-05-2018, 02:53 AM   #286
Flavio
Human being with feelings
 
Flavio's Avatar
 
Join Date: Mar 2013
Location: Italy - Monza
Posts: 109
Default

Quote:
Originally Posted by G-Sun View Post
For the web-interface
(and possible other usage)
it would be great to read/set number of preroll measures.

I believe it's currently not accessible via the api
also for web interface, any possibility to set/change the markers name?

THX!
Flavio is offline   Reply With Quote
Old 07-05-2018, 03:12 AM   #287
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,238
Default

@G-Sun, @Flavio
These are not ReaScript API whishist but Web Interface API Whish list :P


@Flavio
Maybe you can create a script to rename a marker from a PROJEXSTATE which would have been pushed by the Web Interface (there is API for that as far as I remember).
X-Raym is offline   Reply With Quote
Old 07-05-2018, 04:50 AM   #288
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,160
Default

Quote:
Originally Posted by X-Raym View Post
@G-Sun, @Flavio
These are not ReaScript API whishist but Web Interface API Whish list :P
Sorry, not my field of expertise
__________________
Reaper x64, win 8.1
G-Sun.no - Music Blog - My music
G-Sun is online now   Reply With Quote
Old 07-05-2018, 09:33 AM   #289
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

Quote:
also for web interface, any possibility to set/change the markers name?
You can get/send extstates using the web-interface.
All you need to do is to write a (Lua)-script, that reads this extstate and creates/sets the marker.
Triggering this script using wwr_req() is easy.

It's a workaround, that should work...
mespotine is offline   Reply With Quote
Old 07-05-2018, 09:36 AM   #290
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

Quote:
Originally Posted by ThomasE View Post
Yes, please... Escaped commas for the user input, or selectable delimiter would be a great improvement.
As an example for the devs:

An escaped string would be something like:

Quote:
I am the first\, not the last entry,I am the second\, still not the last entry,I am the last one\, believe me.
The , separate the entries(as GetUserInputs already does), the \, only appear in the returned strings from the individual user-input-fields(what we would love to have as new feature).

At least as a GetUserInputs2-function, it should be quite easy to implement...
mespotine is offline   Reply With Quote
Old 07-05-2018, 10:43 AM   #291
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,238
Default

@mespotine
\ is a bad separator if the user input asks for a path.


Better have user defined separator to be sure it works on most scenarios.
X-Raym is offline   Reply With Quote
Old 07-05-2018, 10:55 AM   #292
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

The separator is an unescaped comma, like it already is:

entry1
entry2
entry3

results into the following returned string:

Quote:
"entry1,entry2,entry3"

If a user types in a comma, it will be escaped

entry1, has a comma now
entry2
entry3

results in the following returned string:

Quote:
"entry1\, has a comma now,entry2,entry3"
With that, you know, all \, are user input commas, while all , are the separators.

If the user types in \, it will be escaped to \\,


If an entry ends with \ it must be escaped probably as well to \\ to circumvent a possible \, separator-situation.
At least I think, that this would work...

Edit: The more I think about the entry ends with \ problem, the more I get, that this needs more thinking about it on my side...

Maybe having "optional string entryXX"-return values, where XX is the entry in the GetUserInput-box, would be better, at least for Lua...

Last edited by mespotine; 07-05-2018 at 11:20 AM.
mespotine is offline   Reply With Quote
Old 07-13-2018, 06:45 AM   #293
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 608
Default

Sometimes it's too easy:

The separation of the individual GetUserInput-entries should be done by a newline.
As you can only type in one line in each entry-field, no multilines, this should be sufficient.

Example:
UserEntry1: "Tudelu"
UserEntry2: "Reaper is the king of the hill, thats' true"
UserEntry3: "Oh, and it's not killing me, that's a cool thing"

would result in the string:
"Tudelu\nReaper is the king of the hill, thats' true\nOh, and it's not killing me, that's a cool thing"

That should be very easy to parse.
Thanks to XRaym for his GetUserFilenameForRead-FeatureRequest, as this brought me this idea
mespotine is offline   Reply With Quote
Old 07-14-2018, 11:15 AM   #294
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 1,940
Default

req: would be nice that GetUserFileNameForRead
- could return multiple files
- have a flag for selecting folders
- a flag to create new file

this as been discussed here: https://forum.cockos.com/showthread.php?t=208826

Thank you
deeb is offline   Reply With Quote
Old 09-10-2018, 04:32 AM   #295
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 302
Default

Quote:
Originally Posted by spk77 View Post
One function that would be nice to have:
reaper.atprojectexit(ReaProject proj, function)[LIST]Similar to reaper.atexit(function), but "function" would be run when the project is closing
Yeah! +1
__________________
ToDoList Donate Mark4Celest: Frid (i ditt hjärta) Eve & the Fisherman on Spotify
tompad is offline   Reply With Quote
Old 10-26-2018, 05:22 PM   #296
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,104
Default

Quote:
Originally Posted by doppelganger View Post
...
4. Get parameter's value from effects in monitoring chain...
Do you know 0x1000000 trick? Maybe I don't understand what you want...
Code:
gp = TrackFX_GetParam(GetMastertrack(0), 0x1000000 + 3, 0, minval, maxval);
gpn = TrackFX_GetParamNormalized(GetMastertrack(0), 0x1000000 + 3, 0);
//etc
FnA is offline   Reply With Quote
Old 10-27-2018, 05:41 PM   #297
doppelganger
Human being with feelings
 
Join Date: Feb 2017
Posts: 269
Default

Quote:
Originally Posted by FnA View Post
Do you know 0x1000000 trick?
no, i didn't know about that, thank you!!!
doppelganger is offline   Reply With Quote
Old 11-10-2018, 04:44 AM   #298
deeb
Human being with feelings
 
deeb's Avatar
 
Join Date: Feb 2017
Posts: 1,940
Default

wish: GetLastTouchedFX(int* tracknumberOut, int* fxnumberOut, int* paramnumberOut ) to work on item fx too!
I does not work in items Fx as showed here:




maybe this not possible because of this:
https://forum.cockos.com/showthread.php?t=212983

so it's ok if you full fill the 2 : )

Thank you

edit: by curiosity devs! is this something technically impossible to implement?

Last edited by deeb; 11-10-2018 at 01:00 PM.
deeb 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:58 PM.


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