Skip to content

Commit

Permalink
Adding simple ctrl+alt+meta to kill the beat
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapericlp committed Feb 11, 2024
1 parent 1ee5863 commit 00595c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hydra/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ const PERiPERiDEFAULTS = async () => {

fade_schedule = _.range(0, 1.1, 0.005).concat(_.fill(Array(20), 1));
const fadeOut = (subject, output) => subject.mult(shape(4).scale(5).color(0,0,0), fade_schedule).out(output)

document.addEventListener('keydown', function(event) {
if (event.ctrlKey && event.altKey && event.metaKey) {
bpm = 0
}
});
}

0 comments on commit 00595c4

Please sign in to comment.