You can use two Lists and an mp3 sound file for each character
The sound files, lists of the letters/characters and their “dot-dash” representations and various settings are loaded when the app loads are generated by using two CSV files;
The morseCharacters csv string is:
'/','.-','-...','-.-.','-..','.','..-.','--.','....','..','.---','-.-','.-..','--','-.','---','.--.','--.-','.-.','...','-','..-','...-','.--','-..-','-.--','--..','.----','..---','...--','....-','.....','-....',--...','---..','----.','-----',.-.-.-',..--..',-...-'
The letters/numerals/punctuation (morseLetters) are:
/ ,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0,.,?,/
Store each csv file is stored internally in the app as a csv (comma separated value) file and are converted with an AI2 block into a List.
A mp3 sound file is necessary for each letter of the alphabet, numeral and punctuation. These are obtained from Wikipedia https://en.wikipedia.org/wiki/Morse_code Yes, you have to download one at a time.
Alternatively, you can visit the MIT Gallery and search for morse . There are several example apps there that might be easier to work with.
Cheers, Ghica.