Skip to content

Make CodexModules inherit from EnvironmentRedirect#2

Merged
ianmacdougald merged 1 commit intomainfrom
topic/lazyModules
Mar 3, 2023
Merged

Make CodexModules inherit from EnvironmentRedirect#2
ianmacdougald merged 1 commit intomainfrom
topic/lazyModules

Conversation

@ianmacdougald
Copy link
Copy Markdown
Owner

So this is a pretty big update -- not because it breaks things but because, without doing so, it seriously extends the flexibility of Codex module configurations.

Specifically, with this change, multiple SynthDef objects can be defined within a single script and still be handled correctly by Codex (i.e. by being dynamically tagged and added to the server).

This was achieved by changing the inheritance of CodexModules from Environment to Environment redirect.

I also significantly reduced the number of times CodexObject accesses the CodexModules (now) pseudo-environment when unwrapping the object it stores.

interstitial work

I think I did it

Clean it up

Really, really, I did it this time

Initialize CodexObjects within CodexModules
@ianmacdougald ianmacdougald merged commit 59dd907 into main Mar 3, 2023
@ianmacdougald ianmacdougald deleted the topic/lazyModules branch March 3, 2023 14:18
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