|
|
|
03-20-2018, 06:45 PM
|
#1
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
API: Get/SetProjectStateChunk
I would love to see the whole project exposed as StateChunk, as there's a ton of nice and interesting stuff in the project itself, especially the rendering-settings, which I would love to be able to modify without the hassle of using the rendering-dialog.
That way, I could write me even more customized rendering-scripts, than the current rendering-functions provide as functionalities.
There's also many other tools or other project-setting-relevant stuff(recording-settings, the project-bay, etc) that could be modified or analysed in the background quite easily that way.
You already have Get/SetStateChunks for Items, Envelopes and Tracks.
So go big and give us the rest as well, please
Last edited by Meo-Ada Mespotine; 07-05-2018 at 09:42 AM.
|
|
|
03-21-2018, 08:02 AM
|
#2
|
Human being with feelings
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
|
I'd prefer proper APIs for that stuff, dealing with the text state chunks is pretty annoying.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
|
|
|
03-22-2018, 02:48 PM
|
#3
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
I know, but at least, you could do it then immediately.
|
|
|
07-05-2018, 09:54 AM
|
#4
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
+1! Would be super useful.
|
|
|
07-05-2018, 10:00 AM
|
#5
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Yes please.
Quote:
Originally Posted by Xenakios
I'd prefer proper APIs for that stuff, dealing with the text state chunks is pretty annoying.
|
Agreed, but exposing the chunk is a hell of a lot easier to implement than individual functions. There are a number of Track/FX/Item/Envelope parameters we don't have API calls for, but GetSetChunk at least lets us do it.
As annoying as it is, it's also pretty straightforward to write a wrapper that grabs the chunk and puts it in a table as chunk.TRACK_NAME or whatever, then another wrapper to convert it back.
|
|
|
07-05-2018, 10:44 AM
|
#6
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
+1 !!
|
|
|
07-08-2018, 01:00 PM
|
#7
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
It would also allow access to the Pooled-Automation-Items themselves, which is impossible to do right now.
As well as the RPP-Project Bay, which would be nice to know. Otherwise, it is only available in the Project-Bay-dialog, but can't be accessed that way, AFAIK.
|
|
|
08-07-2018, 10:20 AM
|
#8
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Ping
|
|
|
08-07-2018, 03:04 PM
|
#9
|
Human being with feelings
Join Date: May 2012
Location: Berlin, Germany
Posts: 171
|
+1 for this FR
|
|
|
08-08-2018, 03:58 PM
|
#10
|
Human being with feelings
Join Date: Sep 2013
Posts: 657
|
+1! It would be really handy to have it.
|
|
|
08-09-2018, 12:47 PM
|
#11
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
Quote:
Originally Posted by mespotine
I would love to see the whole project exposed as StateChunk
|
Perhaps you can consider the project RPP the project chuck, at least for "getting" the chunk.
|
|
|
08-09-2018, 01:23 PM
|
#12
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by juliansader
Perhaps you can consider the project RPP the project chuck, at least for "getting" the chunk.
|
Only if the project has been saved and isn't dirty.
|
|
|
08-13-2018, 04:48 AM
|
#13
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
And setting states isn't possible that way at all. Unless you reload the altered project.
Bad idea, while you're recording...
|
|
|
10-12-2018, 06:13 AM
|
#14
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Bump...
|
|
|
11-16-2018, 06:55 AM
|
#15
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Bumping back into the light
|
|
|
11-16-2018, 10:32 PM
|
#16
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,812
|
+1 this would be really nice!
Other then rendering scripts , maybe we could alter soundcard latency by scripting? This would be awesome!
|
|
|
11-17-2018, 11:54 AM
|
#17
|
Human being with feelings
Join Date: Feb 2017
Posts: 4,812
|
Maybe there is a reason for cockos not letting to set the project chunk! How about request some specific API that would be useful meanwhile?
|
|
|
11-18-2018, 01:55 PM
|
#18
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
I think too, as some settings may interfere too much with Reaper's internal handling of things.
But I would still love to have it, even if the devs remove the entries too problematic for the statechunk-process.
I could live with a simplified one, it would still solve tons of usecases.
Quote:
Other then rendering scripts , maybe we could alter soundcard latency by scripting? This would be awesome!
|
As far as I know, the soundcard-latency settings aren't stored per project in ProjectStateChunks, but rather globally(in reaper.ini).
For that, I think, a dedicated function would be better.
|
|
|
01-12-2019, 05:03 AM
|
#19
|
Human being with feelings
Join Date: Apr 2014
Posts: 4,171
|
+1
|
|
|
02-22-2020, 11:34 AM
|
#20
|
Human being with feelings
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
|
+1 * exp(e)
|
|
|
02-22-2020, 12:00 PM
|
#21
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
One thing that would be possible with that would be:
Versioning of Projects.
One could store rpp-files into git-branches and revert to earlier versions, if necessary.
Or several people working on one project at the same time would be possible as well. One is changing stuff, comitting it into some folder or git-repo, the others synchronize(via SetProjectStateChunk) and voila, all have the same version of the project, can listen to it and give immediately notes and suggestions, even changing details quickly.
(Yes, the synchronization would be a nightmare to code, but nevertheless....)
Tons of usecases, as I said.
|
|
|
02-22-2020, 04:41 PM
|
#22
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
+1 for this API at least the Get part of it if the Set is complex to do.
Last edited by heda; 02-22-2020 at 05:37 PM.
|
|
|
02-22-2020, 10:39 PM
|
#23
|
Human being with feelings
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
|
Quote:
Originally Posted by mespotine
One thing that would be possible with that would be:
Versioning of Projects.
One could store rpp-files into git-branches and revert to earlier versions, if necessary.
Or several people working on one project at the same time would be possible as well. One is changing stuff, comitting it into some folder or git-repo, the others synchronize(via SetProjectStateChunk) and voila, all have the same version of the project, can listen to it and give immediately notes and suggestions, even changing details quickly.
(Yes, the synchronization would be a nightmare to code, but nevertheless....)
Tons of usecases, as I said.
|
And Reaper would turn suddenly to number 1 lecturing tool in music schools/studio environments/whoever earning money with daw teaching
|
|
|
02-23-2020, 10:50 AM
|
#24
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Wouldn't this be awesome?
|
|
|
02-25-2020, 11:35 AM
|
#25
|
Human being with feelings
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 4,031
|
Imagine One Synth Challenges (OSC), but with collaboratively shared .rpp git projects!
Something like
https://sites.google.com/site/kvrosc/osc-74-dexed
but Reaper could start their own OSC series, with collaboration, with github, with Get/SetProjectStateChunk. (not sure if the prject state chunks are really needed for this? and why?)
|
|
|
09-13-2020, 06:10 PM
|
#26
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
plus one!
If reaper could sync versions over the internet with this API would be veeeeeery awesome! :O
|
|
|
09-13-2020, 06:30 PM
|
#27
|
Human being with feelings
Join Date: Mar 2007
Posts: 3,978
|
+1
for collaborative option!
|
|
|
09-14-2020, 03:07 PM
|
#28
|
Human being with feelings
Join Date: May 2020
Posts: 190
|
+1 please!
|
|
|
09-14-2020, 05:29 PM
|
#29
|
Human being with feelings
Join Date: Feb 2020
Location: Los Angeles
Posts: 463
|
Yes please!!! +1
|
|
|
09-15-2020, 07:33 AM
|
#30
|
Human being with feelings
Join Date: Oct 2017
Location: Russia
Posts: 366
|
+1 please!
|
|
|
12-29-2020, 12:50 PM
|
#31
|
Human being with feelings
Join Date: Oct 2020
Location: South Korea
Posts: 42
|
+1
I would dance if it happens..
|
|
|
01-16-2021, 02:22 PM
|
#32
|
Human being with feelings
Join Date: Dec 2020
Location: Miami, FL USA
Posts: 396
|
+1, supported
__________________
Seasoned codemonkey
Dunno a thing about making music (here to learn!)
|
|
|
11-06-2021, 08:40 PM
|
#33
|
Human being with feelings
Join Date: Mar 2012
Posts: 4
|
+1 keen for this
|
|
|
11-06-2021, 11:05 PM
|
#34
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
|
Project header chunk you mean?
Anyway, +1 to this.
OR having everything ported to APIs, but that looks like huge work (although lot of stuff already exists like monitoring fx, project info, render settings).
Last edited by mpl; 11-07-2021 at 01:16 PM.
|
|
|
11-07-2021, 01:02 PM
|
#35
|
Human being with feelings
Join Date: May 2018
Location: Los Angeles
Posts: 1,719
|
+1
This could achieve reduced save times by many factors of magnitude.
__________________
Cheers... Andrew K
Reaper v6.80+dev0621 - June 21 2023 • Catalina • Mac Mini 2020 6 core i7 • 64GB RAM • OS: Catalina • 4K monitor • RME RayDAT card with Sync Card and extended Light Pipe.
|
|
|
03-19-2022, 08:34 PM
|
#36
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
bumping
|
|
|
04-16-2022, 11:15 AM
|
#37
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Found a small trick to Get the current project Chunk. Setting remains unavailable
Code:
function print(val)
reaper.ShowConsoleMsg(tostring(val)..'\n')
end
function readAll(file)
local f = assert(io.open(file, "rb"))
if not f then return end
local content = f:read("*all")
f:close()
return content
end
function GetProjectChunk(proj,temp_filename)
reaper.Main_SaveProjectEx( proj, temp_filename, 0 )
local chunk = readAll(temp_filename)
os.remove(temp_filename)
return chunk
end
local chunk = GetProjectChunk(0,'C:\\Users\\DSL\\Downloads\\Nothing\\test.rpp')
print(chunk)
|
|
|
07-02-2022, 08:50 PM
|
#38
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
bimp!
|
|
|
12-03-2022, 04:37 PM
|
#39
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
blap!
|
|
|
08-04-2023, 11:29 AM
|
#40
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Halo! it would be really great to manage to set project chunk. Or at least more chunks api, like for the automation items section chunk.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:43 AM.
|