Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating regions through OSC #761

Merged
merged 2 commits into from
Apr 4, 2021
Merged

Conversation

paulfd
Copy link
Member

@paulfd paulfd commented Apr 1, 2021

For a limited selection of opcodes, we can allow updates through OSC.
This implements an "opcode buffer" that gets read at the beginning of the render loop in the RT thread.
Any opcode updates must thus be RT-safe, so not all of them should be allowed.
I added a parameter to disable the opcode name cleanup method which does allocate strings potentially.
This means that the opcodes must be "correctly" normalized.
For example, for lfoN_wave, we have to pass lfoN_wave1 in the opcode buffer.

This can be seen as very experimental, mostly to be used by @rghvdberg for now.

For a limited selection of opcodes, we can allow updates through OSC.
This implements an "opcode buffer" that gets read at the beginning of the render loop in the RT thread.
Any opcode updates must thus be RT-safe, so not all of them should be allowed.
I added a parameter to disable the opcode name cleanup method which does allocate strings potentially.
This means that the opcodes must be "correctly" normalized.
For example,  for `lfoN_wave`, we have to pass `lfoN_wave1` in the opcode buffer.
@paulfd paulfd requested a review from jpcima April 1, 2021 04:34
@paulfd paulfd force-pushed the osc-region-change branch from 2a323d8 to 78db0b7 Compare April 2, 2021 11:36
@paulfd paulfd merged commit 254d007 into sfztools:develop Apr 4, 2021
@paulfd paulfd deleted the osc-region-change branch January 21, 2022 10:27
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.

1 participant