The nameinterval module

The `nameinterval` module
Anterior | Capítulo 4. Extending GNU Solfege | Próxima

## The `nameinterval` module

Here is a minimal lesson file:

    header {
        lesson_id = "5623c43e-f529-4376-a0c9-c7d533050360"
        module = nameinterval
        title = _("Fifths")
        intervals = p5, a5, d5
    }

`intervals`

  A list the the intervals to ask for. The intervals are written in a short form, a letter and a number, like `d5` or `m7`. The letters are telling the interval quality are 'd' for diminished, 'a' for augmented, 'm' for minor, 'M' for major and 'p' for perfect.

`tones`

  This variable sets the range of tones that can be used when constructing the intervals. The note names as to be quoted. The default value is `"b", "g''"`. Example:

      tones = "c'", "f''"  # valid
      tones = c', f''      # not valid

`accidentals`

  This variable defines how many accidentals the tones making the interval can have. The value 0 means no accidentals, 1 means that flats and sharps are allowed, and 2 means that double flats and double sharps are allowed. The default value is 1. Example:

      accidentals = 2

`clef`

  Set which clef to use. The default value is `violin`. Possible values: `violin`, `treble`, `subbass`, `bass`, `baritone`, `varbaritone`, `tenor`, `alto`, `mezzosoprano` and `french`. Example:

      clef = bass

Anterior | Acima | Próxima
The `melodicinterval` module | Principal | The `rhythm` module