Skip to content

Commit

Permalink
dirt-event-types: make sure amp is evaluated before
Browse files Browse the repository at this point in the history
  • Loading branch information
telephon committed Jan 26, 2021
1 parent 5cfaae0 commit 1c7ccb4
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 1c7ccb4

Please sign in to comment.