p0 = output start time (seconds) p1 = duration (seconds) p2 = amplitude (absolute, for 16-bit soundfiles: 0-32768) p3 = frequency (Hz) p4 = pluck amp (0.0-1.0) p5 = pan (0-1 stereo; 0.5 is middle) [optional; default is 0.5] p6 = amplitude envelope table [optional; default is 1.0] p2 (amplitude), p3 (frequency) and p5 (pan) can receive dynamic updates from a table or real-time control source. p6 (amplitude envelope table), if used, should be a reference to a pfield table-handle. Author: Brad Garton, based on code from the Synthesis ToolKit
MSITAR can produce other mono or stereo output.
Sample Scores
very basic:
rtsetparams(44100, 1) load("MSITAR") amp = 17000 MSITAR(0, 3.5, amp, cpspch(8.00), 0.9) MSITAR(4, 3.5, amp, cpspch(8.07), 0.9)
rtsetparams(44100, 2) load("MSITAR") MSITAR(0, 3.5, 30000, cpspch(8.00), 0.9) amp = maketable("line", 1000, 0,0, 1,1, 2,0) freq = makerandom("linear", 9.0, cpspch(8.065), cpspch(8.075)) MSITAR(4, 3.5, amp*20000, freq, 0.9, 0.0) freq = makerandom("linear", 7.0, cpspch(8.065), cpspch(8.075)) MSITAR(4, 3.5, amp*20000, freq, 0.9, 1.0) stramp = maketable("line", 1000, 0,1, 2,0) pan = makeLFO("sine", 14, 0, 1) MSITAR(8, 3.5, 20000, cpspch(7.07), 0.9, pan, stramp)