Академический Документы
Профессиональный Документы
Культура Документы
B1
D1 E1 F2 A1
O3N3
A2 B2 C D2 E2 F1 G
You must start hearing the music as soon as you open this document, If not, please ensure the
following:
• Macros must be enabled for Word. For enabling the macros, select Tools -> Macros
-> Security from the Word 2000 menu. In the above dialog box, you may select either
‘Medium’ or 'Low' as security level. Once you do that, close and re-open this
document. If you are using Word 97, you will not see the above option in the menu,
instead, you can specify to enable macros while opening the document itself.
• If your computer does not have an internal speaker, you will not be able to hear the
sound.
This section of the document explains how to use the piano application. It also explains some
music theory briefly. If you are interested in knowing how this application is built, please
click here to go through the article in Kshop. The Kshop article explains a number of
useful concepts in Visual Basic.
The application displays the piano-keys for a single octave. Two list boxes also are provided
to change the octave and the duration of a musical note, which you would like to play on the
piano. A list of songs pre-composed by me also is provided so that you may select any song
from the list box and press the button with the caption ‘Play Selected’ to play the same. You
may also save the music composed by you by assigning a name to it and pressing the button
‘Save’. When you press the ‘Save’ button, your music will be added as the last row of the
table (under the piano) which has the existing collection of the songs.
Following information will help you in understanding the theory behind music (whether it is
Western, Carnatic, Hisdusthani, light music, or any other form of music):
A ‘note’ represents a musical frequency. It represents the pitch of a piano key or a Violin
string. Following are the notes displayed on the piano in our application:
The standard note ‘A’ in Western notation (command button with label A2 in our Piano) is
having a frequency of 440Hz for all the piano/keyboards universally. Octaves of a note are
the just multiples of the original frequency. In the piano shown in our application, the key
with label as ‘A2’ represents a frequency of 440Hz when the Octave is selected as ‘3’. When
the octave is selected as ‘4’, the same key represents 880Hz and so on. The frequency of any
note in the piano is derived as Fn = Base Frequency * 2^(n/12) where, n is the key number
from the base key. For instance, if we consider A2 as base key (440Hz), the note C1 (which
has n=3) will have the frequency derived as 523.25Hz.
The ‘Interval’ decides the length of a note. In the list box shown, when a value ‘1’ is selected,
it represents a length of 100 milli Seconds for the note (in our application), a value of ‘2’
represents a length of 200 milli Seconds and so on.
The button ‘Compose’ can be pressed to start composing a new music. You may select a
portion of the music in the text box and press the button ‘Play’ on the piano to play that
portion of the music alone. ‘Back Space’ can be used to erase the note inserted last. Save
allows you to save the music composed by you. The spin button ‘Speed’ can be adjusted to
adjust the overall speed of playing the music (default value is set as 20).