Skip to content

Commit

Permalink
Merge pull request #227 from musikinformatik/topic/support-gain-in-co…
Browse files Browse the repository at this point in the history
…ntrolbus

dirt-event-types: make sure amp is evaluated before
  • Loading branch information
yaxu authored Jan 27, 2021
2 parents c2ad95e + 1c7ccb4 commit 3b08dde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/DirtEventTypes.sc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ DirtEventTypes {
Error("dirt event: no dirt instance found.\n\n// You could try:\nSuperDirt.default = ~dirt;").throw;
};
~delta = ~delta ?? { ~stretch.value * ~dur.value };
~amp = ~amp.value;
~latency = ~latency ?? { dirt.server.latency };
if(~n.isArray) {
keys = currentEnvironment.keys.asArray;
Expand Down

0 comments on commit 3b08dde

Please sign in to comment.