a musical game for norns/MIDI keyboard
defuser is a musical code-breaking game for norns that tests the user’s listening skills. With three minutes on the clock, you must find the six notes that make up a “code” sequence, determine the correct order of notes, then correctly enter the code in order to win the game.
This game was programmed as my first full script for norns as a way to learn Lua and the Norns API, as well as being an experiment in using music and MIDI input in a game context. Inspired by code-breaking games and bomb-defusal scenes in film (hence the name!). This was also the product of my independent study for the Fall 2020 semester.
- MIDI keyboard (with range of at least C3-C6)
(Watch the video above for a video demonstration!)
You have 3 minutes to figure out a “code”, a random sequence of six notes (within the range C3-C6).
You don’t know initially which notes will be used in the sequence and have to find them yourself. Test every note with to see if it is part of the code, but use a delicate hand - playing a note that isn’t in the code with too high velocity will penalize the time remaining. These “wrong” notes sound dull. Correct notes that are in the sequence are safe and ring clear.
Once discovered, correct notes will play in a loop in the background. When all 6 notes are found, one note rings longer than the others. This is the first note of the sequence which you will enter as the code. Use that first note as an anchor to figure out the order for the rest.
Press K3 to begin an attempt to input the code. Play the six notes in what you believe is the correct order, then press K3 again to enter it. If the code is wrong, or if too many notes are inputted, time is greatly penalized.
If the code is correct: you win! The time you had remaining is displayed. If the timer ever reaches zero, you lose.
Either way, press K3 to try again! Practice to get faster and faster.
defuser.lua (9.2 KB)
Would love any feedback! I had a lot of fun making this and find it really engaging to play. Hope you enjoy!