/usr/share/SuperCollider/HelpSource/Classes/SendTrig.schelp is in supercollider-common 1:3.6.3~repack-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | class:: SendTrig
summary:: Send a trigger message from the server back to the client.
categories:: UGens>Triggers
related:: Classes/OSCFunc
Description::
On receiving a trigger (a non-positive to positive transition), send a
trigger message from the server back to the client.
The trigger message sent back to the client is this:
table::
## /tr || A trigger message.
## int: || Node ID.
## int: || Trigger ID.
## float: || Trigger value.
::
This command is the mechanism that synths can use to trigger events in
clients. The node ID is the node that is sending the trigger. The trigger
ID and value are determined by inputs to the SendTrig unit generator
which is the originator of this message.
classmethods::
method::ar, kr
argument::in
The trigger.
argument::id
An integer that will be passed with the trigger message. This is
useful if you have more than one SendTrig in a SynthDef.
argument::value
A UGen or float that will be polled at the time of trigger, and
its value passed with the trigger message.
Examples::
code::
s = Server.local;
s.boot;
(
SynthDef("help-SendTrig",{
SendTrig.kr(Dust.kr(1.0),0,0.9);
}).send(s);
// register to receive this message
o = OSCFunc({ arg msg, time;
[time, msg].postln;
},'/tr', s.addr);
)
Synth("help-SendTrig");
o.free;
::
|