πŸ’¬ Morse Code Secret Message | myBetabox

πŸ’¬ Morse Code Secret Message

Using Morse Code with Sonic Pi

Morse Code is a type of cipher using dits (dots) and dashes to correspond with letters of the alphabet as well as numbers.

OPTION 1: USE TWO UNIQUE SAMPLES TO REPRESENT DOTS AND DASHES.

In this example I’ve coded the word SOW ( . . . / – – – / . – – )

The sample :bd_haus is short so we’ll use it for dots and :bd_sone is longer so we’ll use it for dashes. We can use the sleep sample_duration command to use the precise amount of time between beats.

Adding the sleep 3 command allows the code breaker to get ready for the next letter.

OPTION 2: MODIFY THEΒ ATTACKΒ ANDΒ RELEASEΒ FOR THE SAME NOTE TO CREATE DOTS AND DASHES.

Using the same code word SOW, I’m modifying elements of the ADSR envelope to change the length of a note. I’ve chosen to modify note 60.Β  I’ll use eighth notes (1/2 beat long) for dots and half notes (2 beats long) for dashes!

Remember that the note length in this case is the sum of the attack and release values. This is how to determine the sleep value.

Notice how I still used a sleep 3 command to give time between letters.

OPTION 3: MODIFYING THE SUSTAIN VALUES TO CREATE DOTS AND DASHES.

Alternatively, you can change the sustain values to make tones shorter or longer. Here I gave dots a smaller sustain value of 0.25 and the dashes have a longer value of 1. You can use any values you’d like!

Now it’s time for you to create a Morse code for others to solve! Which method will you use?

Can You Crack This Code?

#Copy and paste in Sonic Pi

sample :bd_haus 
sleep sample_duration :bd_haus

sleep 3 
sample :bd_haus 
sleep sample_duration :bd_haus
sample :bd_haus
sleep sample_duration :bd_haus
sample :bd_haus
sleep sample_duration :bd_haus
sample :bd_sone
sleep sample_duration :bd_sone

sleep 3
sample :bd_haus 
sleep sample_duration :bd_haus
sample :bd_haus
sleep sample_duration :bd_haus

sleep 3
sample :bd_haus 
sleep sample_duration :bd_haus
sample :bd_sone
sleep sample_duration :bd_sone
sample :bd_haus
sleep sample_duration :bd_haus
sample :bd_haus
sleep sample_duration :bd_haus

sleep 3
sample :bd_sone 
sleep sample_duration :bd_sone
sample :bd_haus
sleep sample_duration :bd_haus
sample :bd_sone
sleep sample_duration :bd_sone

sleep 3
sample :bd_haus 
sleep sample_duration :bd_haus

sleep 3
sample :bd_haus 
sleep sample_duration :bd_haus
sample :bd_sone
sleep sample_duration :bd_sone
sample :bd_haus
sleep sample_duration :bd_haus

sleep 3
sample :bd_sone 
sleep sample_duration :bd_sone
sample :bd_sone
sleep sample_duration :bd_sone

sleep 3
sample :bd_haus 
sleep sample_duration :bd_haus
sample :bd_haus
sleep sample_duration :bd_haus

sleep 3
sample :bd_sone 
sleep sample_duration :bd_sone

Click here for the answer!