OpenMusic

Visual Programming | Computer-Assisted Composition

OpenMusic Reference

Prev| | Next


concat

concat

(score module) -- appends one OM music class to another

Syntax

concat s1 s2

Inputs

name data type(s) comments
s1 an OM score class object see description
s2 an OM score class object see description

Output

output data type(s) comments
first an OM music class object s1 appended to s2

Description

This function appends one music object to another. s2 is stuck onto the back of s1 . The data types permitted at the two inputs and the result are summarized in the following table:

object type at s1 object type at s2 object type returned
Voice Voice Voice
Measure Voice Voice
Voice Measure Voice
Multi-seq Multi-seq Multi-seq
Chord-seq Chord-seq Chord-seq
Poly Poly Poly

In order to concatenate a Voice with a Chord-seq you should pass the Voice through a Chord-seq object or the Chord-seq through a Voice object first.

The concat function is the opposite of select .

Examples

Demonstrating concat

Two Chord-seq s being concatenated.

Two Voice s being concatenated.


Prev Home Next
card Up conditional