Feature Request #139
New functions for TTOperator
Status: | Closed | Start date: | 2009-05-28 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - | |||
Branch: |
Description
TTOperator could use some additional functions, including: * pow (power) * % (modulo) * onewrap (like modulo but faster if it only wraps once)
The modulo should also optimize itself so that if the operand is a power of
2 then it will use bitwise arithmetic.
Some of these could (should?) also be added to the TTAudioSignal class.
For example, it would be nice to be able to do something like this:
TTAudioSignal aSignal; // put some audio in the signal here aSignal->sendMessage(TT("+"), 0.5);
This would offset the entire signal by 0.5 without having to pass it
through a TTOperator object.
Related issues