Home · Standalone · rtcmix~ · uRTcmix · iRTcmix · Tutorials · Reference |

RTcmix an open-source digital signal processing and sound synthesis language |
about · links · contact |

wrap - mod-like command
## Synopsis
val =
## Description
See also mod which apparently does the same thing.
## Arguments*value, range*-
The parameters used to perform the "wrapping" (i.e.
*a mod b;*in this case,*value mod range*) operation. Essentially**wrap**gives the remainder of dividing*value*into*range*.*Modular*(or "clock") arithmetic is very useful in western, 12-note/octave music.
## Exampleswrappedval = wrap(7, 12) ## See Also |