Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::Transform::Operation Struct Reference

#include <transform.h>

Public Types

enum  Operator {
  PUSH , ADD , SUB , MULT ,
  DIV , MOD
}
 

Public Member Functions

 Operation (Operator o, const Value &a=Value())
 
void eval (Context &context) const
 

Public Attributes

Operator op
 
Value arg
 

Detailed Description

An operation to transform the running result.

All operations except PUSH take their arguments from the stack, and put the result back on the stack.

Definition at line 102 of file transform.h.

Member Enumeration Documentation

◆ Operator

Enumerator
PUSH 

Push argument to the stack.

ADD 

Add top two values.

SUB 

Subtract top from second-top.

MULT 

Multiply top two values.

DIV 

Divide second-top by top.

MOD 

Modulus (division remainder)

Definition at line 103 of file transform.h.

Constructor & Destructor Documentation

◆ Operation()

ARDOUR::Transform::Operation::Operation ( Operator  o,
const Value a = Value() 
)
inline

Definition at line 112 of file transform.h.

Member Function Documentation

◆ eval()

void ARDOUR::Transform::Operation::eval ( Context context) const

Apply operation.

Member Data Documentation

◆ arg

Value ARDOUR::Transform::Operation::arg

Definition at line 118 of file transform.h.

◆ op

Operator ARDOUR::Transform::Operation::op

Definition at line 117 of file transform.h.


The documentation for this struct was generated from the following file: