Small Basic: How to Use Sound.PlayMusic()

Small Basic: How to Use Sound.PlayMusic()

This article describes MML (Music Macro Language) in Sound.PlayMusic(MML) operation of Small Basic programming language.

(1) Pitch (A, B, C, D, E, F, G)

A ~ G of this command represent the pitch.  A = la, B = si, C = do, D = re, E = mi, F = fa, to G = sol.  By adding #, + (♯), - (♭) after this command can be expressed a semitone.

(2) Rest (R)
This command specifies the rest.

(3) Tone length (Ln)
This command specifies the length of the tone.  N is the value of 1-64 and reciprocal of the length of the tone which 1 is the max length.  Subsequent command after this command is played in the specified same length.  When you add n after the tone or the rest, only the tone / rest is played with the length.

ex.
Do of quarter note ...... L4C or C4
Fa of sixteenth note ...... L16F#, F#16 or F+16
Sol ♭ of whole note ...... L1G- or G-1

(4) Octave (On)
This command specifies the octave.  N is an integer from 1-8.  In addition, the standard frequency 440Hz, the sound of la (A) is octave 4 (O4).

Leave a Comment
  • Please add 1 and 2 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Nonki Takahashi edited Original. Comment: title

Page 1 of 1 (1 items)