Chapitre 4. Extending GNU Solfege

Table des matières

Introduction
Lesson files
File encoding
Comments
Types
Global variables
Lesson file contents
Header block
Question block
music objects
Functions
Operators
The harmonicinterval module
The melodicinterval module
The singinterval module
The compareintervals module
The idbyname module
The singanswer module
The rhythm module
The rhythmtapping module
The rhythmtapping2 module
The idtone module
The chord module
The dictation module
The singchord module
The nameinterval module
The elembuilder module
The element block
The header block
The question block
Midi instrument names
Percussion instrument names

Introduction

GNU Solfege is written so that it can easily be extended, even if you do not know any computer programming. The steps are:

  • Create a lesson file.

  • Create a learning tree for your own lesson file. You do this only once.

  • Add the lesson file to the learning tree.

Read la section intitulée « Lesson files » for details on creating lesson files. The easiest way to get started is to take one of the existing lesson files, and modify it. The lesson files included in Solfege are stored in a directory names lesson-files. The exact location of this directory depends on your operating system and show you have installed the program. A few suggestions are C:\Program files\GNU Solfege, /usr/share/solfege, /usr/local/share/solfege or ~/.local/share/solfege.

You create a learning tree by opening the learning tree editor. Select Learning tree from the Edit menu. Then click the New button and enter a file name. The file will be stored in a directory named .solfege/learningtrees in your home directory.

Then you create a menu and a submenu with the learning tree editor, and finally adds the lesson file to the selected submenu by clicking the Add lesson button.