OpenMusic

Visual Programming | Computer-Assisted Composition

Navigation : Previous | Next

BPF and BPC Tools

This section details a set of important concept and tools. Among these, a number of function boxes allow to build or manipulate BPFs and BPCs. To access these tools, go to Functions / Basic Tools / Curves & Functions.

Online Documentation Reference

The online function reference provides more detailed information about the following (and more) functions, as well as different arguments. To refer to it, select a function and press d.

Getting Coordinates : Transfer and Point Coordinates

Point-Pairs : Points of the Curve

The ** point-pairs ** function returns the points of the curve as a list of (x y) coordinates.

Point-pairs : list of (x y) points in the curve.

Point-pairs : list of (x y) points in the curve.

Transfer : Selected Points

Two transfer tools return the values of points that are not explicitly given in the curve.

Transfers : x-transfer returns the y-coordinate for x=5. Y-transfer returns
the various abscissa for y=20.

Transfers : x-transfer returns the y-coordinate for x=5. Y-transfer returns the various abscissa for y=20.

Sampling a Curve : Om-Sample

Sampling consists in creating a new curve of n regularly sampled points, out of an initial set of points.

—|—

Inputs

The om-sample function has two default inputs :

It has three optional inputs :

The sampling rate can be expressed as a float input to Om-
sample

The sampling rate can be expressed as a float input to Om- samplezoom

—|—

“sample-rate” input : Integer or Float

Be a curve whose min = 0 and max = 100.

In any case n = (xmax - xmin) / SR

Outputs

Om-sample returns 3 values :

Up-Sampling and Down-Sampling

If n is lower than the initial number of points, curves are down-sampled. If n is higher, curves are up-sampled.

Splines : Om-Spline

Splines are mathematical functions defined piecewise by polynomial interpolation. They are used for generating smoothed interpolated shapes , starting from a set of control points.

The ** om-spline ** function generates spline curves starting from the points of a BPF or BPC.

—|—

Inputs

Outputs

The three outputs of om-spline return :

—|—

Spline Preview

The BPF and BPC editors allow to visualize a preview of the output spline object.

Spline Preview in the BPF/BPC Editors.

References :

Contents :

Navigation : Previous | Next