Post Reply 
(71B) Mini-Piano
01-28-2019, 12:23 AM
Post: #1
(71B) Mini-Piano
I wish the speakers of the HP 71B was louder, but it's understandable.

Key map:

[ A ]: A
[ W ]: A#
[ S ]: B
[ D ]: C
[ R ]: C#
[ F ]: D
[ T ]: D#
[ G ]: E
[ H ] : F
[ U ]: F#
[ J ]: G
[ I ]: G#
[ K ]: A (higher octave)

[ O ]: One octave higher
[ L ]: One octave lower

[ P ]: Double the length of the note
[ = ]: Halve the length of the note

[ X ]: Exit, clears all the user keys

Default octave: A4 (220 HZ) to A5 (440 Hz)
Default note length: 1/4 second

Program PIANO
743 bytes, 1/27/2019
Code:

100 DESTROY A,N,P
110 A=2^(1/12) @ N=0 @ P=0
112 DEF KEY "A", 'BEEP 220.0*2^N,.25*2^P': ! A
114 DEF KEY "W", 'BEEP 233.1*2^N,.25*2^P': ! A#
116 DEF KEY "S'", 'BEEP 246.9*2^N,.25*2^P': ! B
118 DEF KEY "D", 'BEEP 261.6*2^N,.25*2^P': ! C
120 DEF KEY "R", 'BEEP 277.2*2^N,.25*2^P': ! C#
122 DEF KEY "F", 'BEEP 293.7*2^N,.25*2^P': ! D
124 DEF KEY "T", 'BEEP 311.0*2^N,.25*2^P': ! D#
126 DEF KEY "G", 'BEEP 329.6*2^N,.25*2^P': ! E
128 DEF KEY "H", 'BEEP 349.2*2^N,.25*2^P': ! F
129 DEF KEY "J", 'BEEP 392.0*2^N,.25*2^P': ! G
130 DEF KEY "U", 'BEEP 370.0*2^N,.25*2^P': ! G#
132 DEF KEY "I", 'BEEP 415.3*2^N,.25*2^P': ! F
134 DEF KEY "K", 'BEEP 440.0*2^N,.25*2^P': ! A
136 DEF KEY "O", 'N=N+1@ PRINT "OCTAVE UP" ':
138 DEF KEY "L", 'N=N-1 @ PRINT "OCTAVE DOWN" ':
140 DEF KEY "P", 'P=P+1 @ PRINT "NOTE x2" ':
142 DEF KEY "=", 'P=P-1 @ PRINT "NOTE /2" ': 
144 DEF KEY "X", 'RUN 400':
146 USER ON
148 END
400 DESTROY A,N,P
410 PURGE KEYS
420 USER OFF
430 PRINT "EXIT COMPLETE"
440 END

Quick question, can a text file be transferred to any of the HP 71B emulators?

Eddie
Visit this user's website Find all posts by this user
Quote this message in a reply
01-28-2019, 01:04 AM
Post: #2
RE: (71B) Mini-Piano
(01-28-2019 12:23 AM)Eddie W. Shore Wrote:  Quick question, can a text file be transferred to any of the HP 71B emulators?

Yes. Text files can be transferred to/from Emu71/DOS and Emu71/Win. I'm not familiar with go71b.

There are two techniques. The first requires prepending a LIF file header to the text file using aLIFhdr, then copying the file using DOSLink. The second involves copying the text file to a LIF disc image using HPDir then copying the file from the LIF image.

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




User(s) browsing this thread: