24.2 BETA 2 - Pianoroll Script Crash when adding notes to new Pattern

It's in development so expect the unexpected!

Return to “FL Studio Beta & Release Candidate Testing”

[You can only see part of this thread as you are not logged in to the forums]
dgv
Mon Feb 09, 2026 2:18 pm

x

Re: 24.2 BETA 2 - Pianoroll Script Crash when adding notes to new Pattern

Hi VilleK!

A pair of observations:

1. apply function is automatically called if present in PianoRoll Scripting, but not in Edison Scripting.
So for example, the following code will be automatically executed in PianoRoll scripting, but not in Edison.

Full script content:

Code: Select all

def apply():
	raise Exception('APPLY CALLED')

What would be the ideal solution? Should apply be called even if createDialog does not exist? I am not sure, but I think the behaviour should be equal in both Edison and PianoRoll.
I know this might seem silly, but it caused me a few headheaches when trying to implement a mechanism to indicate using a bool if a ScriptDialog should be run "live" (like in createDialog+apply) or only once (like through .execute() ).


2. ScripDialog.AddInputCombo splits list/tuple items by comma.
So, when passing an str, it is expected that it will splitted. For example: "blue,red,yellow"
However, when a list/tuple of strings is passed, they are expected to remain unchanged. For example: ['(-1, 1)', '(0, 1)']

For example, this code creates 4 list items.

Code: Select all

from flpianoroll import ScriptDialog
form = ScriptDialog('','')
form.AddInputCombo('Range', ['(-1, 1)', '(0, 1)'], 0)  # -> 4 items created
form.execute()

Please, let me know your thoughts!
Thank you!!










dgv
Mon Jun 15, 2026 8:50 am

x

Re: 24.2 BETA 2 - Pianoroll Script Crash when adding notes to new Pattern

Hi VilleK! I found an inconsistent and unexpect...
Last edited by dgv on Mon Jun 15, 2026 12:44 pm, edited 4 times in total.








dgv
Tue Aug 04, 2026 12:40 pm

x

Re: 24.2 BETA 2 - Pianoroll Script Crash when adding notes to new Pattern

Hi VilleK, I would like to share a finding. I...
You do not have the required permissions to view the files attached to this post.





dgv
Thu Aug 06, 2026 11:50 am

x

Re: 24.2 BETA 2 - Pianoroll Script Crash when adding notes to new Pattern

VilleK (staff) wrote: ↑Thu Aug 06, 2026 10:58 a...
Last edited by dgv on Thu Aug 06, 2026 12:56 pm, edited 1 time in total.



Return to “FL Studio Beta & Release Candidate Testing”