tone_synth object
This method generates a given note or list of notes that will last for a specified number of milliseconds.
bool note_ms(string notes, double length)
Parameters:
notes
a string specifying a note or list of notes to generate.
length
The number of milliseconds the notes should last.
Return value:
true on success, false on failure.
Remarks:
Notes are written inside a string and are separated by a comma and space. Values inside notes are case sensitive.
Notes are written as the note letter from A to G (notice that they are upper case), followed by the octave number. To sharpen a note add a # after the note and before the number, and to flatten it use a b (lower case). Middle C is C4. Valid notes are from C0 to D#8/Eb8.
The notes provided in the list will be generated together (as opposed to separately, one after the other), allowing for easier and quicker creation of chords.
Example:

    // Write a B major chord.

    tone_synth synth;

    void main()
    {
    synth.note("B3, D#4, Gb4", 2000);
    synth.write_wave_file("wave.wav");
    }