LET THE MUSIC PLAY
TUTORIAL
Dr. Amilcar Rincon-Charris
Mechanical Engineering Department
MECHATRONICS
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Musical Scales
• The human ear detects sound when the
eardrum is vibrated. The vibration is caused
by changes in the air pressure, or what we call
sound waves. We have defined musical pitch
as the vibration of the eardrums at certain
frequencies that are pleasing to the ear.
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Musicians have labeled these frequencies with letters of the alphabet
(A, A#, B, C, C#, D, D#, E, F, F#, G, and G#).
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Tiempos
NOTA
TIEMPO
REDONDA
2000
BLANCA
1000
NEGRA
500
CORCHEA
250
SEMICORCHEA
125
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Silencios Musicales
Delay(2.0)
Delay(1.0)
Delay(0.5)
Delay(0.25)
Delay(0.125)
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Frequencies
Pitch
Frequency (Hz)
Frequency (Hz)
Frequency (Hz)
Frequency (Hz)
A
220
440
880
1760
A# (Bb)
233
466
932
1864
B
247
494
988
1976
C
262
523
1046
2092
C# (Db)
277
554
1109
2216
D
294
587
1175
2348
D#, (Eb)
311
622
1244
2488
E
330
659
1318
2636
F
349
698
1397
2792
F#, (Gb)
370
740
1480
2960
G
392
784
1568
3136
G#, (Ab)
415
831
1661
3324
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
comando
• Call FreqOut(#pin,f1,f2,tiempo)
Pitch
A
A# (Bb)
B
C
C# (Db)
D
D#, (Eb)
E
F
F#, (Gb)
G
G#, (Ab)
Frequency
(Hz)
220
233
247
262
277
294
311
330
349
370
392
415
Frequency
(Hz)
440
466
494
523
554
587
622
659
698
740
784
831
Frequency
(Hz)
880
932
988
1046
1109
1175
1244
1318
1397
1480
1568
1661
http://bayamon.inter.edu
Frequency
(Hz)
1760
1864
1976
2092
2216
2348
2488
2636
2792
2960
3136
3324
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
CIRCUIT
+ 5V
O utput from
B asicX P in
270 
C
B
E
S peaker
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Example
D
#
D
B
A
B
G
A
D
C
B
A
3
4
D
#
D
C
B
A
G
E
C
B
A
3
4
http://bayamon.inter.edu
G
F#
E
D
F#
G
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
Sub Main()
Call FreqOut(12,587,1175,500)
Call FreqOut(12,587,1175,500)
Call FreqOut(12,587,1175,500)
Call FreqOut(12,494,988,500)
Call FreqOut(12,440,880,250)
Call FreqOut(12,494,988,250)
Call FreqOut(12,392,784,500)
Call FreqOut(12,440,880,500)
Call FreqOut(12,587,1175,500)
Call FreqOut(12,523,1046,500)
Call FreqOut(12,494,988,1000)
Call FreqOut(12,440,880,500)
Call FreqOut(12,587,1175,500)
Call FreqOut(12,523,1046,250)
Call FreqOut(12,494,988,250)
Call FreqOut(12,440,880,250)
Call FreqOut(12,392,784,250)
Call FreqOut(12,659,1318,500)
Call FreqOut(12,523,1046,250)
Call FreqOut(12,494,988,250)
Call FreqOut(12,440,880,250)
Call FreqOut(12,392,784,250)
Call FreqOut(12,370,740,500)
Call FreqOut(12,330,659,250)
Call FreqOut(12,294,587,250)
Call FreqOut(12,370,740,500)
Call FreqOut(12,392,784,1500)
End Sub
D
#
D
B
A
B
G
A
D
C
B
A
3
4
D
#
D
C
B
A
G
3
4
http://bayamon.inter.edu
E
C
B
A
G
F#
E
D
F#
G
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
EXERCISE
http://bayamon.inter.edu
Recinto de Bayamón
UNIVERSIDAD
INTER AMERICANA
DE PUERTO RICO
PREGUNTAS
http://bayamon.inter.edu
Descargar

Filtros de Contenido