Post Reply 
(34C) Musical Notes (Original by J.M. Bowsher)
02-10-2019, 03:28 PM
Post: #3
RE: (34C) Musical Notes (Original by J.M. Bowsher)
(02-10-2019 01:26 PM)Dieter Wrote:  Fine. But how does it work? There are no instructions. How does the program determine which way the conversion between tone and frequency is done?
Input smaller than 11.9495 is considered a musical notation.
A frequency higher than 16264 is considered invalid.

Quote:Could you please explain how the program is supposed to be used, and maybe you can also give some examples.

Examples:

441 A
9.404
R/S
441.0

Quote:I also wonder what all the constants in the program are for.

\(15.88609958 = \frac{440}{2^\frac{115}{24}}\)

Quote:Can you say a bit about the way the program works?

These two programs for the HP-42S may miss the fancy output but are probably easier to follow.

Frequency → Note
Code:
00 { 30-Byte Prgm }
01▸LBL "F→N"
02 440
03 ÷
04 LN
05 2
06 LN
07 ÷
08 4.75
09 +
10 IP
11 LASTX
12 FP
13 12
14 ×
15 END

Examples:

450
XEQ "F→N"

y: 4.00
x: 9.39

A4 + 39¢


4698.63
XEQ "F→N"

y: 8.00
x: 2.00

D8

Note → Frequency
Code:
00 { 27-Byte Prgm }
01▸LBL "N→F"
02 12
03 ÷
04 +
05 4.75
06 -
07 2
08 X<>Y
09 Y↑X
10 440
11 ×
12 END

Example:

G6

6
ENTER
7
XEQ "N→F"

x: 1567.98


Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (34C) Musical Notes (Original by J.M. Bowsher) - Thomas Klemm - 02-10-2019 03:28 PM



User(s) browsing this thread: 1 Guest(s)