OpenMusic

Visual Programming | Computer-Assisted Composition

Navigation : Previous | Next

Selection : List Boxes

List selection boxes allow to select one or several items among a list, return and use it/them in downstream computations.

There exist two list selection boxes :

Features

Inputs and Outputs

List selection boxes have one input and one output :

—|—

To set the content of a box :

When evaluated, the box returns the selected item.

—|—

Default Item

By default, the first item is selected and reset when the box is initialized.

Lock the Box to Preserve Its Items

If the box is not locked, the selected item as well as the list of items will be reinitialized when the box is evaluated.

Boxes

Single-Item-List

The single-item-list allows to select only one item at a time.

To select an item,

  1. press b to lock the box,

  2. click on an item.

Multi-Item-List

This box allows to select one or more items, which are returned as a list.

The multi-item-list is edited and used as as single-item-list .

A Musical Application : an Extended Example

Building a Triad with an Item-List-Box, a Button-Box, and a Check Box

References :

Contents :

Navigation : Previous | Next