From 4d202d9157bef5b6325fe54b7874080952f86a37 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 6 Jan 2015 23:04:28 -0500 Subject: Add modulus operator to MIDI transformer. Useful for doing things like making alternating bowing patterns. --- libs/ardour/ardour/transform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/transform.h') 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) {} -- cgit v1.2.3