Namespaces

Variants
Actions

function

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
  
 
You can use the {{maxword|name=function}} object in two ways: as a generator of level/time pairs for line~ and curve~, and as a transfer function calculator. The first mode requires two messages: '''bang''' and '''next'''. The '''bang''' message produces a series of level/time pairs that represent all of the points up to the first sustain point. Subsequent sections of the envelope need to be accessed by sending the '''next''' message. This is appropriate for creating musically-useful modulation envelopes for amplitude, filtering and pitch.
 
You can use the {{maxword|name=function}} object in two ways: as a generator of level/time pairs for line~ and curve~, and as a transfer function calculator. The first mode requires two messages: '''bang''' and '''next'''. The '''bang''' message produces a series of level/time pairs that represent all of the points up to the first sustain point. Subsequent sections of the envelope need to be accessed by sending the '''next''' message. This is appropriate for creating musically-useful modulation envelopes for amplitude, filtering and pitch.
 +
 +
[[File:function-envelope.gif]]
  
 
The {{maxword|name=function}} object has two curvature modes: "linear" and "curve". When in the linear mode, the output will output value pairs that represent the time and target value for each of the points in the function display. Typically, this output is sent to a {{maxword|name=line~}} object, which can be used to drive almost any object at audio rate.
 
The {{maxword|name=function}} object has two curvature modes: "linear" and "curve". When in the linear mode, the output will output value pairs that represent the time and target value for each of the points in the function display. Typically, this output is sent to a {{maxword|name=line~}} object, which can be used to drive almost any object at audio rate.

Revision as of 17:18, 22 May 2013

Contents

function online refpage

Using the function object

You can use the function object in two ways: as a generator of level/time pairs for line~ and curve~, and as a transfer function calculator. The first mode requires two messages: bang and next. The bang message produces a series of level/time pairs that represent all of the points up to the first sustain point. Subsequent sections of the envelope need to be accessed by sending the next message. This is appropriate for creating musically-useful modulation envelopes for amplitude, filtering and pitch.

function-envelope.gif

The function object has two curvature modes: "linear" and "curve". When in the linear mode, the output will output value pairs that represent the time and target value for each of the points in the function display. Typically, this output is sent to a line~ object, which can be used to drive almost any object at audio rate.

When in curve mode - either set in the inspector or using the mode message - the function object produces output consistent with the values required by the curve~ object - value triplets that include delta time, target value and curve value. The curve value ranges from -1.0 through 1.0, with positive values producing a logarithmic curve, and negative values producing an exponential curve:

FunctionCurveImage.gif

When function is in curve mode, you can directly change the curvature of any line segment by option-clicking on the segment, then dragging vertically.

(To learn more about logarithmic and exponential curves, you can check out this site.)

function Tutorials

MSP Tutorial #7: Additive Synthesis (featuring function)

function Tips and Workarounds

  • There are several messages/options for function that apply to only one point within the object. In these cases, the message will require an "index"; the index is the count of the point starting at the left side of the display, with the first point being point 0 (zero).

Third-Party Max externals similar to the function object

Maxobjects.com listing for the function object

People who looked at/used this object also looked at....

Errors or Clarifications

<none>