diff options
author | David Robillard <d@drobilla.net> | 2015-01-06 23:04:28 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-06 23:04:28 -0500 |
commit | 4d202d9157bef5b6325fe54b7874080952f86a37 (patch) | |
tree | 2269b30b9cecab70bbd21f2510721faf6236dea6 /libs/ardour/ardour/transform.h | |
parent | 82c5349e6178de2b682346709c9c75b3171cca8e (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.h | 3 |
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) {} |