The `idbyname` module
Forrige | Kapittel 4. Extending GNU Solfege | Neste

## The `idbyname` module

Here is a minimal lesson file:

    header {
      module = idbyname
      lesson_id = "a400df62-e007-4a1b-9057-cd05397e88a2"
      version = "3.1.4"
      title = "Menuitem title"
    }
    question {
     name = "Major"
     music = chord("c' e' g'")
    }
    question {
     name = "Minor"
     music = chord("c' es' g'")
    }

Optional idbyname header variables

`filldir = vertic`

  Tell the direction the buttons are filled. Default value is `horiz`.

  Modules: `idbyname`.

`fillnum`

  Tell how many buttons there are in each row or column. The default value is 1.

  Modules: `idbyname`.

`labelformat``= progression`

  The default value is `normal`. Set to `progression` for lesson files where the name of the questions is a harmonic progression, written in a undocumented, but not difficult format. Check some existing lesson file to see how it works.

  Modules: `idbyname`

`have_repeat_slowly_button` `= yes`

  Set to `yes` if you want the exercise to have a "Repeat slowly" button.

  Modules: `idbyname`.

See also at_question_start.

Optional question variables

`vmusic`

  See vmusic.

`cuemusic`

  Will be displayed in the music displayer when the user clicks New. Ignored if `at_question_start = play, show` or `at_question_start = show`, because then the content of `music` or `vmusic` is displayed when the user clicks New. (Added in Solfege 2.5.1)

Forrige | Opp | Neste
The `harmonicinterval` module | Hjem | The `idproperty` module