Almost all programming in OpenMusic is done in patches, which are visual representations of programs.
Patches contain boxes, which represent :
Connections link these components together to define the functional structure of the program.
The various box types that might interact in a program generally have different properties. Each box type is described in the Boxes and Patch Components section. You will also learn how to create patches within other patches. This very convenient procedure is called functional abstraction. The user will resort to it as soon as he or she gets familiar with OM.
This patch contains three items :
The note is a G#4, which means its pitch is equal to 6800 midicents[2]. This pitch can be accessed via the second inlet and outlet of the box.
The first input of om+ is connected to the second outlet of the note : the pitch of the note is the first term of the addition.
The data box represents a value : 400. It is connected to the second inlet of om+. It is the second term of the addition.
When om+ is evaluated, the Listener displays the value of the resulting pitch in midicents.
OpenMusic's working environment. Each session starts with choosing a workspace, the equivalent of a desktop where programs are created and organized, and where items can be stored.
A midicent is a unit representing one cent of the usual MIDI pitch unit, that is, a half-tone. For instance, a C4 corresponds to 60 in MIDI, and to 6000 midicents, C4# to 61, i.e. 6100 midicents, and so on.