Skip to content

robertopedroso/musical-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Musical Lock

From ScavHunt 2011:

A lock that opens to a unique combination of musical inputs. The key may be either a series of tones that could be replicated by anyone or the direct mechanical operation of a customized instrument.

This item was never completed by Max Scav in 2011 but I pursued it on a whim in January 2014.

Back in 2011, most teams completed the item using a MIDI keyboard or something of that sort. While that is a perfectly valid way to complete the item, it doesn't really use a 'musical input' to unlock a secret. In the case of the MIDI keyboard, the music merely serves as audible feedback for an ordinary button-operated digital combination lock.

Instead, this musical lock takes a wave file as input and determines whether the encoded tune matches a preset list of frequencies. This way, any sound source can be used so long as the resulting wave file contains a well-formed sequence of tones.

Usage

Basic command line structure:

python musical_lock.py infile precision freqs [freqs ...]

Working example:

python musical_lock.py test.wav 3 293.63 440.00 293.66 392.00

Todo

  • Add capacity to record sound files on the fly using PyAudio
  • Add ability to unlock a secret through a musical input
  • Improve UI to make more presentable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages