Adding an arpeggiator

sarahmeyz
sarahmeyz Member Posts: 15 Newcomer
edited October 2024 in Scripting Workshop

Hi there,

I am trying to add an arpeggiator to my script, and was able to do so, but when I add it as a ui_table, and then try to move it in pixels, it ignores the grid value I added on the ui_table size.

declare $nsteps := 12

declare ui_table %steps[12](3,3,127)
move_control_px(%steps,630,100)

As you can see above, when I declared the ui_table, I had to use grid values for width and height, but then want to use pixels to move it more precisely. Using the script above, after I add pixel values for move_control, it ignores completely the grid size I've set under declare ui_table, an d it makes it a very tiny arpeggiator.

I think it doesn't work mixing both, so is there a way to declare an ui_table in pixels? I just want to be more precise with where I place it on my GUI.

Thank you!

Comments

  • theodorech
    theodorech Member Posts: 73 Member

    Try to set the width and height values using CONTROL_PAR_WIDTH and CONTROL_PAR_HEIGHT.

This discussion has been closed.
Back To Top