CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / Projects / ColorMax MMStick Projects / CGMMSTICK Sound

CGMMSTICK Sound

The Maximite can make sound using the ‘SOUND’ command. The SOUND command accepts a frequency to play for the sound and a duration to play that sound.

MMIDE has an Applet that plays Ode to Joy.

On the CGMMSTICK the audio connection is NOT on J1 along with all of the port lines. Instead it is at the top of the board on an unpopulated header named J5.

On J5 the top connection is ground, the bottom (square) hole is the audio line.

If you have a small amplifier, you can connect the amp to these two lines and run the Ode to Joy Applet that is in MMIDE.

CGMMSTICK1 audio connection.

Using the Ode to Joy Applet in MMIDE to play a tune.

The Ode to Joy Applet downloads a MMBasic program to the CGMMSTICK and then runs that program. Below is the program that is sent. You might notice that there is a test for data where the frequency could be 0. If the frequency is 0 no note is played, just a delay.

I asked my 15 year old son to write this program. He used a frequency/note chart to get the frequencies right, but the notes for Ode to Joy were in his head – he didn’t have to look them up.

His frequency table was a little bit different than the table that I reproduced after the program below.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
10 FOR a=1 TO 65
20 READ fr,du
30 IF fr=0 THEN
40 PAUSE du
50 ELSE
60 SOUND fr,du
70 ENDIF
80 PAUSE du
90 PAUSE 30
100 NEXT a
110 DATA 493.88,300,493.88,300
120 DATA 523.25,300,587.33,300
130 DATA 587.33,300,523.25,300
140 DATA 493.88,300,440.00,300
150 DATA 392.00,300,392.00,300
160 DATA 440.00,300,493.88,300
170 DATA 493.88,450,440.00,200
180 DATA 440.00,300
190 DATA 0,200
200 DATA 493.88,300,493.88,300
210 DATA 523.25,300,587.33,300
220 DATA 587.33,300,523.25,300
230 DATA 493.88,300,440.00,300
240 DATA 392.00,300,392.00,300
250 DATA 440.00,300,493.88,300
260 DATA 440.00,450,392.00,200
270 DATA 392.00,300
280 DATA 0,200
290 DATA 440.00,300,440.00,300
300 DATA 493.88,300,392.00,300
310 DATA 440.00,300,493.88,150
320 DATA 523.25,150,493.88,300
330 DATA 392.00,300,440.00,300
340 DATA 493.88,150,523.25,150
350 DATA 493.88,300,440.00,300
360 DATA 392.00,300,440.00,300
370 DATA 293.66,550
380 DATA 0,200
390 DATA 493.88,300,493.88,300
400 DATA 523.25,300,587.33,300
410 DATA 587.33,300,523.25,300
420 DATA 493.88,300,440.00,300
430 DATA 392.00,300,392.00,300
440 DATA 440.00,300,493.88,300
450 DATA 440.00,450,392.00,200
460 DATA 392.00,300


 

Note

Frequency

 

Note

Frequency

C

16.4

 

C

262

C sharp / D flat

17.3

 

C sharp / D flat

277

D

18.4

 

D

294

D sharp / E flat

19.5

 

D sharp / E flat

311

E

20.6

 

E

330

F

21.8

 

F

349

F sharp / G flat

23.1

 

F sharp / G flat

370

G

24.5

 

G

392

G sharp / A flat

26

 

G sharp / A flat

415

A

27.5

 

A

440

A sharp / B flat

29.1

 

A sharp / B flat

466

B

30.9

 

B

494

C

32.7

 

C

523

C sharp / D flat

34.7

 

C sharp / D flat

554

D

36.7

 

D

587

D sharp / E flat

38.9

 

D sharp / E flat

622

E

41.2

 

E

659

F

43.7

 

F

698

F sharp / G flat

46.3

 

F sharp / G flat

740

G

49

 

G

784

G sharp / A flat

51.9

 

G sharp / A flat

831

A

55

 

A

880

A sharp / B flat

58.3

 

A sharp / B flat

932

B

61.7

 

B

988

C

65.4

 

C

1047

C sharp / D flat

69.3

 

C sharp / D flat

1109

D

73.4

 

D

1175

D sharp / E flat

77.8

 

D sharp / E flat

1245

E

82.4

 

E

1319

F

87.3

 

F

1397

F sharp / G flat

92.5

 

F sharp / G flat

1480

G

98

 

G

1568

G sharp / A flat

104

 

G sharp / A flat

1661

A

110

 

A

1760

A sharp / B flat

117

 

A sharp / B flat

1865

B

123

 

B

1976

C

131

 

C

2093

C sharp / D flat

139

 

C sharp / D flat

2217

D

147

 

D

2349

D sharp / E flat

156

 

D sharp / E flat

2489

E

165

 

E

2637

F

175

 

F

2794

F sharp / G flat

185

 

F sharp / G flat

2960

G

196

 

G

3136

G sharp / A flat

208

 

G sharp / A flat

3322

A

220

 

A

3520

A sharp / B flat

233

 

A sharp / B flat

3729

B

247

 

B

3951

 

 

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2021 · Generate Pro Theme on Genesis Framework · WordPress · Log in