You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Planet Symphony begins with a message (plaintext) and a choice of key and musical scale (e.g., F# major-pentatonic). Next, that message is encoded algorithmically into a melody within a set of configurated parameters (cluster size, octaves). This melody is then sent to the Transmitter for a waiting receiver to hear.
The waiting Receiver is a trained model for identifying musical notes, which is then passed into the algorithmic decoder. As the encoder is deterministic, as long as no notes are missed by the receiver the original message should be decoded with zero error.
during encoding a specific music scale is chosen (demo uses f# major pentatonic) and only those notes are selected from so all notes are diatonic (in the specified key). when encoding characters to musical phrases, smaller intervals are prefered to sound more scalic. a drone note of the root is used to add a grounding tone and allow melodies to be properly parsed by your ears. paired with a specific pattern of cortchets and quavers the melody sounds more organic and pleasant.
Install prerequisites found in requirements.txt using:
pip install -r requirements.txt
Two-laptop guide: training, then sending a message
Laptop A = the sender. It plays the music. Use the M5 Mac for this: it already has the
recordings and can train the model. It must be the same laptop that plays in the demo,
because the model learns that laptop's speaker.
Laptop B = the receiver. It listens and shows the decoded text.
The mic is plugged into A while recording training data, then moved to B.
Run every command from the durhack26 folder, with the project's Python environment active.
Plug the mic into B and make it the default input. Put it in the same spot as in stage 2.
11a
On Windows: turn off the mic's audio processing. Settings > System > Sound > Input > the mic's properties > "Audio enhancements" off. With it on, Windows removes held notes as if they were noise and the message comes out wrong.
12
Set message in main.py to at least two characters (it is empty at the moment).
13
python Receiver.py --message and wait for "Listening. Waiting for a message..."
14
python main.py
Text appears as it is decoded. It stops by itself when the message ends.
If something goes wrong
What you see
Likely cause
collect.py prints its usage and exits
It was run without --takes or --noise.
No module named 'pygame' (or torch)
The project's Python environment is not active, or the requirements are not installed.
No sound in step 5
A's output is muted or going to headphones.
evaluate.py scores are very low
The mic was not the default input during recording, so the takes are silence or the built-in mic.
B prints nothing in step 14
B started listening after A started playing, or B's default input is not the mic.
B decodes part of the message, with wrong characters or an early stop ("5el?" for "Yellow")
Windows audio enhancements are on for the mic. Turn them off (step 11a).
B prints mostly ?
A and B have different Settings.py or Transmitter.py (pull on both), or the mic is much further away than in stage 2.