Magazine Archive

Home -> Magazines -> Issues -> Articles in this issue -> View


Musical Frequencies Table

Find your frequencies on a Spectrum

Here's a very useful program for anyone owning a micro and dabbling in music technicalities. Certainly, once you start tuning instruments, you'll find a knowledge of note frequencies most desirable. It's written in BASIC and will run with minimal changes on most micros.

The program prints a table of frequencies in linear steps that you can specify. When the program is entered, you simply state the start frequency in Hertz (variable F0) and the step size in Cents (variable C). There are 100 Cents in every semitone, corresponding to the black and white notes on a piano. If you require a table of descending frequencies, then quote negative cents.

The listing here is for the Sharp MZ-80K and the main point to watch for is that you enter 0's or 0's correctly. When using a Sinclair (e.g. Spectrum), make the following changes: Line 5 should be CLS; lines 20 and 95 insert GO TO after THEN; lines 35, 85, 120, 125 and 145 statements should start with LET; lines 80, 135 and 140 insert LET after THEN; and finally insert new statement at line 106 LET C1=0.

Example 1 shows 1 octave in semitone steps from A=440 (A above middle C).

Example 2 shows 8 octaves in octave jumps from A=55.

Example 3 shows 2 octaves in quartertone steps descending from E=1320.

Example 3.
(Click image for higher resolution version)

Musical Frequencies program listing
(Click image for higher resolution version)

Example 1.
(Click image for higher resolution version)

Example 2.
(Click image for higher resolution version)

Previous Article in this issue

Digital Aids The Video Stars

Next article in this issue


Electronics & Music Maker - Copyright: Music Maker Publications (UK), Future Publishing.


Electronics & Music Maker - Sep 1982



Feature by Per Hartmann

Previous article in this issue:

> Digital Aids The Video Stars...

Next article in this issue:

> America

Help Support The Things You Love

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!

If you're enjoying the site, please consider supporting me to help build this archive...

...with a one time Donation, or a recurring Donation of just £2 a month. It really helps - thank you!

Small Print

Terms of usePrivacy