Shop OBEX P1 Docs P2 Docs Learn Events
Note Values for BS1 SOUND Instruction — Parallax Forums

Note Values for BS1 SOUND Instruction

flashularflashular Posts: 1
edited 2006-04-18 22:39 in BASIC Stamp
I've just started w/ my BS1, so pardon me if someone has posted elsewhere this before. I wrote a simple program to convert musical notes into SOUND values. This might come in handy for anyone who wants to layout a keyboard application or write simple songs on the BS1. The table range is limited at the low end by the lowest sound value and the high end by precision in frequency (at the point where two sound values bridge a note interval ). As you can see the resolution starts to fall apart very quickly around the 4th octave, but using fairly low notes the BS1 can provide decent single not pitch.



Note    Frequency (Hz)  Val     Err (%)

G 1         98.00       005     +0.164
G#1        103.83       012     +0.088

A 2        110.00       019     -0.352
A#2        116.54       025     -0.230
B 2        123.47       031     -0.447
C 2        130.81       036     +0.046
C#2        138.59       041     +0.243
D 2        146.83       046     +0.110
D#2        155.56       051     -0.394
E 2        164.81       055     +0.058
F 2        174.61       059     +0.211
F#2        185.00       063     +0.028
G 2        196.00       067     -0.534
G#2        207.65       070     +0.213

A 3        220.00       073     +0.689
A#3        233.08       076     +0.870
B 3        246.94       079     +0.722
C 3        261.63       082     +0.202
C#3        277.18       085     -0.746
D 3        293.66       087     +0.286
D#3        311.13       089     +1.074
E 3        329.63       092     -1.124
F 3        349.23       094     -1.039
F#3        369.99       096     -1.302
G 3        392.00       097     +1.313
G#3        415.30       099     +0.460

A 4        440.00       101     -0.876
A#4        466.16       102     +1.144
B 4        493.88       104     -1.036
C 4        523.25       105     +0.514
C#4        554.37       106     +1.857
D 4        587.33       108     -1.831
D#4        622.25       109     -1.137
E 4        659.26       110     -0.721
F 4        698.46       111     -0.613
F#4        739.99       112     -0.849
G 4        783.99       113     -1.474
G#4        830.61       114     -2.550

A 5        880.00       114     +3.206
A#5        932.33       115     +1.688
B 5        987.77       116     -0.435
C 5       1046.50       117     -3.304



Post Edited By Moderator (Jon Williams (Parallax)) : 4/18/2006 10:04:15 PM GMT

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-18 22:04
    Thanks!, and welcome to our forums.

    Be sure add an appropriate subject line when you start new threads -- I've fixed this one for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-18 22:39
    Whenever you are the Subject's Originator, you can change the Subject by Editing the Post, which you can engage by pressing the pen/pencil button in the post's upper right-hand corner (above the Text area.)
Sign In or Register to comment.