The toneincontext module

The `toneincontext` module
Antaŭen | Ĉapitro 4. Extending GNU Solfege | Sekven

## The `toneincontext` module

### Averto

This module is still begin worked on. The lesson file format will most likely change in the next releases. Right now the music in the cadences must be a string with complete mpd code. Using music objects will not work now.

Here is a minimal lesson file:

    header {
      module = toneincontext
      version = "3.21.0"
      title = "First 4 scale tones"
      tones = 3, 4
    }
    cadence {
      music = "\staff\relative g'{ <g e c> <a f c> <g f d b> <g e c> }"
    }

The cadense block should be in C major. The program will select cadense by random if you write more than one cadence block.

If you don't define the tones variable, the program will let you select tones in the config page of the exercise.

Header variables

`tones`

  list of integers from 0 to 12.

`random_tonic`

  Set to `no` if you don't want transposition. Default value is `yes`.

`tone_in_cadense`

  If set to `yes`, the tone to identify will be played together with the last tone of the cadense. Default value is `no`.

Antaŭen | Supren | Sekven
The `singinterval` module | Hejmen | The `twelvetone` module