summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/transform.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-01-06 23:04:28 -0500
committerDavid Robillard <d@drobilla.net>2015-01-06 23:04:28 -0500
commit4d202d9157bef5b6325fe54b7874080952f86a37 (patch)
tree2269b30b9cecab70bbd21f2510721faf6236dea6 /libs/ardour/ardour/transform.h
parent82c5349e6178de2b682346709c9c75b3171cca8e (diff)
Add modulus operator to MIDI transformer.
Useful for doing things like making alternating bowing patterns.
Diffstat (limited to 'libs/ardour/ardour/transform.h')
-rw-r--r--libs/ardour/ardour/transform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/transform.h b/libs/ardour/ardour/transform.h
index 2b63bb6af0..08e4a43521 100644
--- a/libs/ardour/ardour/transform.h
+++ b/libs/ardour/ardour/transform.h
@@ -106,7 +106,8 @@ public:
ADD, ///< Add top two values
SUB, ///< Subtract top from second-top
MULT, ///< Multiply top two values
- DIV ///< Divide second-top by top
+ DIV, ///< Divide second-top by top
+ MOD ///< Modulus (division remainder)
};
Operation(Operator o, const Value& a=Value()) : op(o), arg(a) {}