OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


Chapter 8. Functions

Table of Contents

Functions and methods

Function definitions

Creating new functions

Creating the function name and appearance

Defining the first method

Adding additional methods

Functions in OM can respond to more than one data type. Take om+ , for example. When you give it a number and a list, it adds the number to all the elements of the list. However, you can also give it two numbers, in which case it simply adds them. How does it know what to do?


Prev Home Next
Some Examples Up Functions and methods