Play an input soundfile backwards.
in RTcmix/insts/std
REVMIX(outsk, insk, dur, AMP[, inputchan, PAN])
CAPITALIZED parameters are pfield-enabled for table or dynamic control (see the maketable or makeconnection scorefile commands). Parameters after the [bracket] are optional and default to 0 unless otherwise noted.
Param Field | Parameter | Units | Dynamic | Optional | Notes |
---|---|---|---|---|---|
p0 | output start time | seconds | no | no | |
p1 | input start time | seconds | no | no | |
p2 | input duration | seconds | no | no | |
p3 | amplitude multiplier | relative multiplier of input signal | yes | no | |
p4 | input channel | - | no | yes | default: 0 |
p5 | pan | 0-1 stereo; 0.5 is middle | yes | yes | default: 0 |
Parameters labled as Dynamic can receive dynamic updates from a table or real-time control source.
Author: Ivica “Ico” Bukvic, 27 May 2000 (with John Gibson ) rev. for v4.0, JGG, 7/9/04
REVMIX plays a selected channel of the input file backward for the specified duration, starting at the input start time.
If you specify a duration that would result in an attempt to read before the start of the input file, REVMIX will shorten the note to prevent this.
Note that you can’t use this instrument with a real-time input (microphone or aux bus), only with input from a sound file. (That’s because the input start time of an inst taking real-time input must be zero, but this instrument reads backward from its inskip.) Duh…
The output of REVMIX may be mono or stereo
very basic:
rtsetparams(44100, 2)
load("REVMIX")
rtinput("mysound.aif")
// do both channels of a stereo input file
REVMIX(outskip=0, inskip=5, dur=3, amp=1, inchan=0, loc=0.0)
REVMIX(outskip=0, inskip=5, dur=3, amp=1, inchan=1, loc=1.0)