Your First Tutorial

Lesson 2

Let's now write a very basic "Hello BeepComp" source. Press the NEW button on the screen or F9 key, choose "Yes" to start a new file. Then go ahead and type the following:

// My first BeepComp track! :)

@G
TEMPO=100
MASTERVOLUME=80

@1
CDEFG

And press the play button (with a triangle). You heard an endless series of "do-re-mi-fa-sol...," right? Let me explain the source.

Two forward slashes // adds a comment. Following two slashes, you can write anything to make a note to yourself or others. The comment ends at the end of the line.

@ is used to declare the beginning of each "section." @G starts the "global section" where you can set parameters that affect your entire track. Your section declaration stays effective until you declare another section (@1 in this case).

TEMPO= sets the tempo of the track. MASTERVOLUME= sets the master output gain. The volume knob will change accordingly to the master volume when you play your track from the beginning.

@1 declares the start of the first music channel section. Everything you write thereafter will be written to the first channel until you declare another section.

Then we have the musical notes CDEFG. Note that you have to write musical pitches in UPPERCASE.

You actually heard CDEFG over and over because BeepComp defaults the player to looping mode.