![]() |
#1 |
Human being with feelings
Join Date: Mar 2019
Posts: 437
|
![]()
Using export_buffer_to_project() in a @slider block in a JSFX hangs and crashes REAPER if:
* The project is playing back * The JSFX is on the monitoring FX chain It is still possible to trigger the crash while the JSFX plugin is on tracks instead, but it happens less frequently. REAPER version: 6.42 OS: Windows 10 64bit Perhaps using export_buffer_to_project() in the @slider block is not a good idea in the first place, but as far as I can tell this is the only place where we can use this function without showing the JSFX plugins gfx window. |
![]() |
![]() |
![]() |
#2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,334
|
![]()
Hmm yeah don’t do that, it’s nit allowed (we’ll make that enforced).
I'll look at adding an option to have @gfx run even when the window is closed (for idle processing), that could be useful. Last edited by Justin; 12-06-2021 at 05:17 PM. |
![]() |
![]() |
![]() |
#3 |
Human being with feelings
Join Date: Mar 2019
Posts: 437
|
![]()
Awesome, thank you Justin!
![]() |
![]() |
![]() |
![]() |
#4 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,334
|
![]()
Today's dev build adds support for options:gfx_idle or options:gfx_idle_only and a gfx_is_idle variable
|
![]() |
![]() |
![]() |
#5 |
Human being with feelings
Join Date: Jul 2019
Posts: 234
|
![]()
Would it be possible to add export_buffer_to_project to the documentation? It seems very useful. I'm not exactly sure what planar_pitch is supposed to do.
|
![]() |
![]() |
![]() |
#6 | |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,334
|
![]() Quote:
For multichannel exports: planar_pitch should be 0 if interleaved, otherwise it is the distance in memory between channels. As an example, suppose nch=2, your left channel is at offset 1, your right channel at offset 10000001, and you're writing 32768 samples, you'd call: export_buffer_to_project(1,32768, 2, srate,trackidx,flags=0, 10000001-1 /* or right_channel-left_channel */); |
|
![]() |
![]() |
![]() |
#7 | |
Human being with feelings
Join Date: Jul 2019
Posts: 234
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,334
|
![]() |
![]() |
![]() |
![]() |
#9 |
Human being with feelings
Join Date: Jul 2019
Posts: 234
|
![]()
Awesome, much appreciated!
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|