Skip to content

Conversation

@m1macrophage
Copy link
Contributor

@m1macrophage m1macrophage commented Oct 23, 2025

To review the changes in the Slider script, see linn_linndrum.lay.

Updates to reference Slider script in linn_linndrum.lay:

  • Added support for horizontal control of knobs.
  • Added support for auto-center anolog controls. Useful for the pitch wheel.
  • Shortened function names.

sequential_sixtrak.lay:

  • Copied reference Slider script from linn_linndrum.lay.
  • Adapted layout to make knobs and wheels interactive.

Updates to reference Slider script in linn_linndrum.lay:
* Added support for horizontal control of knobs.
* Added support for auto-center anolog controls. Useful for the pitch wheel.
* Shortened function names.

sequential_sxitrak.lay:
* Copied reference Slider script.
* Adapted layout to make knobs and wheels interactive.
@felipesanches
Copy link
Contributor

felipesanches commented Oct 23, 2025

Hey, @m1macrophage! That's so cool!

I was also looking for a solution for auto re-centering synth pitch wheels a couple months ago when I was working on the ESQ1 layout: #14049 (comment)

Nobody replied to my question at that time, but now I see that you found a solution to the same issue here, so I'll probably implement that on my synth layouts as well.

It is cool how the wheel smoothly re-centers gradually when we release the keys (right or left) after changing its position. But when interacting with the mouse cursor, the re-centering is abrupt and instantaneous. Have you considered how to achieve that same smooth "spring-like" transition also when using the mouse?

@galibert galibert merged commit 7ee6b22 into mamedev:master Oct 23, 2025
6 checks passed
@galibert
Copy link
Member

Note that on both my hardware synths the physical pitch wheel returns to center very fast when you release it.

@m1macrophage m1macrophage deleted the sixtrak branch October 24, 2025 03:10
@m1macrophage
Copy link
Contributor Author

m1macrophage commented Oct 24, 2025

Have you considered how to achieve that same smooth "spring-like" transition also when using the mouse?

I think this would either require simulating the return-to-center logic in the lua script, or (preferably) triggering the key release logic of the port from the lua script. I expect both are doable, but none of them seems trivial (unless I missed a relevant port/field lua function). So I haven't looked more closely for now.

To @galibert's point, the centering is pretty quick in practice anyway. Though the spring-like animation does look cooler :). And it is possible a quick, but not instant, centering will sound better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants