Apple Notes
Computing
(SOS Nov 92)
Home -> Magazines -> Issues -> Articles in this issue -> View
Micro-Music | |
Learning morse by computer.Article from Electronics & Music Maker, May 1981 | |
A series that focuses on using the popular microcomputers for making music.

The two previous editions of Electronics and Music Maker have detailed the versatile musical capabilities of the Sharp MZ-80K microcomputer. Some of the readers who purchased the Maplin cassette were quite amazed by the range of sound effects which can be programmed on the MZ-80K from Basic. The main program this month utilises the variety of note durations and the seven tempos in a unique way to make up an interesting method of learning the morse code with the assistance of a computer.
The thirty two line program takes less than 1K of memory and can be run on any Sharp MZ-80K microcomputer — regardless ot the memory size available. The dots and dashes which make up the morse code are entered as DATA statements in lines 23 to 32. Line 23 contains the code for the letters A,B,C,D and E; line 24 contains F,G,H and I; line 25 contains J,K,L,M and N; line 26 contains O,P,Q and R; line 27 contains S,T,U,V and W; line 28 contains X,Y and Z. Similarly lines 29 to 32 contain the numbers 0 to 9. It is most important that care is taken in entering these DATA lines as they define the dots and dashes which will be both displayed on the screen and heard coming from the MZ-80K speaker.
Once entered and run the program can be used to learn morse by both sight and sound. Seven different learning speeds are controlled by the TEMPO as defined in line 5 and line 7. The printing of the morse characters on the screen is achieved by reading the DATA and printing the value of C$ (line 17) and the morse sounds are generated by the MUSIC statements in lines 18 and 19. After selecting a learning speed between 1 and 7 simply enter the message you wish to hear on the MZ-80K keyboard, press the carriage return key and the morse code for your message will then be heard and displayed on the screen.
The program is quite a simple one but is capable of further expansion. The 32 line version only caters for the letters of the alphabet and for figures. Some enthusiasts may wish to expand the DATA lines and make the other appropriate changes to add punctuation marks, currency symbols, etc. It would also be possible to use the program to generate morse to feed the microphone circuits of a transmitter — morse could then be sent by simply entering the messages on the keyboard of the MZ-80K.
Readers who liked the previously published program which generated whistles, trimphone rings, engaged tones, etc have asked for guidance in using the POKE commands, and the second program shows how to control the sounds produced from the Sharp Basic for musicians to experiment with.
The program allows the user to enter a frequency in Hertz and the Sharp will then play it and display the appropriate POKE values for locations 4514 and 4513. The program will generate tones and display these values over a range from 16Hz to 3,900 Hz.
Table 1 will assist readers who are more accustomed to musical notation and the POKE values are given for 36 notes to start you off.
| NOTE | POKE 4514 value | POKE 4513 value |
|---|---|---|
| C | 29 | 220 |
| #C | 28 | 48 |
| D | 26 | 156 |
| #D | 25 | 28 |
| E | 23 | 180 |
| F | 22 | 96 |
| #F | 21 | 32 |
| G | 19 | 240 |
| #G | 18 | 208 |
| A | 17 | 196 |
| #A | 16 | 196 |
| B | 15 | 212 |
| C | 14 | 238 |
| #C | 14 | 24 |
| D | 13 | 78 |
| #D | 12 | 142 |
| E | 11 | 218 |
| F | 11 | 48 |
| #F | 10 | 144 |
| G | 9 | 248 |
| #G | 9 | 104 |
| A | 8 | 226 |
| #A | 8 | 98 |
| B | 7 | 234 |
| C | 7 | 119 |
| #C | 7 | 12 |
| D | 6 | 167 |
| #D | 6 | 71 |
| E | 5 | 237 |
| F | 5 | 152 |
| #F | 5 | 72 |
| G | 4 | 252 |
| #G | 4 | 180 |
| A | 4 | 113 |
| #A | 4 | 49 |
| B | 3 | 245 |


Apple Notes |
Building A Bionic Sax |
Software Support - Hints, Tips & News From The World Of Music Software |
The CX5M Revisited |
Sord M-5 |
When Is A Computer? |
PC Notes |
PC Notes |
Software Support - Hints, Tips & News From The World Of Music Software |
Software Support - Hints, Tips & News From The World Of Music Software |
Musical Micro - Editing Packages |
Technically Speaking (Part 1) |
Browse by Topic:
Micro-Music - Sharp MZ-80K — the Melody Micro
(EMM Mar 81)
Micro-Music - Music Composer Program
(EMM Jun 81)
Micro-Music - Music on the Screen
(EMM Aug 81)
Micromusic - Rhythm Sequencer for the MZ80K
(EMM Mar 83)
Browse category: Computer > Sharp
Feature by Graham Knight
Previous article in this issue:
Next article in this issue:
mu:zines is the result of thousands of hours of effort, and will require many thousands more going forward to reach our goals of getting all this content online.
If you value this resource, you can support this project - it really helps!
New issues that have been donated or scanned for us this month.
All donations and support are gratefully appreciated - thank you.
Do you have any of these magazine issues?
If so, and you can donate, lend or scan them to help complete our archive, please get in touch via the Contribute page - thanks!