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

dirt event: allow to sort the effects #311

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion classes/DirtEvent.sc
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,15 @@ DirtEvent {
});
};


// this implements module order directly. In the next major version we can use a dictionary.
~fxs !? { modules = ~fxs.collect { |name| ~fxs.detect { |m| m.name == name } } };

server.makeBundle(~latency, { // use this to build a bundle

orbit.globalEffects.do { |x| x.set(currentEnvironment) };
this.prepareSynthGroup(orbit.group);
modules.do(_.value(this));
modules.do(_.value(this)); // in the modules all the synths are instantiated
this.sendGateSynth; // this one needs to be last

});
Expand Down