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

cabbageCreate does nothing in instrument 0 #153

Open
eleses opened this issue Jun 22, 2024 · 1 comment
Open

cabbageCreate does nothing in instrument 0 #153

eleses opened this issue Jun 22, 2024 · 1 comment

Comments

@eleses
Copy link

eleses commented Jun 22, 2024

Admittedly, the on-line manual only shows cabbageCreate being used in an instr > 0. But since cabbageCreate only works at i-time and is needed when app/plugin starts, it seem superfluous to drop those calls inside a numbered instr instead of the top-level orchestra code (aka instrument 0). However cabbageCreate does nothing if called from the (top-level) instrument zero orchestra code. This is slightly confusing.

By the way, when cabbageCreate is called from a numbered instrument, that instrument can be turned off (with turnoff) right away after cabbageCreate without affecting the generated widgets. So, being in a running instrument doesn't seem essential for cabbageCreate.

(I'd have guessed that maybe cabbageCreate and friends are injected by Cabbage as UDOs at the end of instrument 0, but in that case they'd give an explicit error when used before definition in instrument 0.)

@rorywalsh
Copy link
Owner

It's a while since I added those opcodes, but iirc this has to do with the plugin parameters being registered properly with the host. I'd have to look through the source to find the actual answer, but I agree that it is a little clunky, especially considering a single init pass will do the job. This is an area I'll revisit in Cabbage 3, which I'm up to my eyes in developing right now :)

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

No branches or pull requests

2 participants