mc.snowphasor~
Description
The mc.snowphasor~ object generates phasor ramps in multiple audio channels according to global controls such as average rate. The object can also trigger ramps from a multi-channel audio signal.
Arguments
None.
Attributes
busymapname [symbol]
If the Use Busy Map (usebusymap) attribute is set, the busymapname specifies a named busy map other than the default global busy map.
chans [int]
Sets the number of output channels. If the value of chans is 0, the number of outputs auto-adapts to the number of channels in a multi-channel signal connected to the object's inlet. If the value of chans is non-zero, the number of channels in the multi-channel output are fixed and do not auto-adapt to the input.
interval [float]
When the mode attribute is set to (0), interval sets the time between updates of the population density of output phasors per unit time. When the mode attribute is set to (1), interval sets the rate at which the average rate per unit time of phasors is updated. When the mode attribute is set to (2), interval is ignored. When the mode attribute is set to (3), interval sets the time between phasor triggers.
intervalcycle [int]
Sets the number of intervals after which the mean interval time (as specified by the interval attribute) is restored. For example, when the intervalcycle attribute is set to 2, any deviation in the interval calculated will be corrected on the subsequent interval. By contrast when the intervalcycle attribute is set to 10, nine intervals will be generated before the tenth interval restores the mean interval time.
intervaldev [float]
Sets the proportion of the current value of the interval attribute that is allowed to vary randomly (above or below). An intervaldev value of 0 will produce no random variation in the ramp time.
mode [int]
Determines how new phasor ramps are triggered
Possible values:
0 = 'utilization'
(
Utilization Mode
)
Maintains a proportion of the total available time and space (channels) with active phasor ramps, as set by the prob attribute.
1 = 'rate'
(
Rate Mode
)
Maintains a rate of new phasor triggerings (births) per unit time, as set by the rate attribute.
2 = 'interval'
(
Interval Mode
)
Maintains a constant interval between phasor triggerings, as set by the rate attribute.
3 = 'audio'
(
Audio Mode
)
Triggers new phasors when audio-channels sample values exceed the signal input threshold (set by the threshold attribute).
perchantriggers [int]
When the perchantriggers is set, zero to non-zero transitions on input audio channels only trigger corresponding output channels. When perchantriggers is 0, triggers are applied to any available output channel.
prob [float]
When the mode attribute is set to (0), the prob attribute sets the percentage of time across all audio output channels occupied by phasor ramps. If the attribute is set to a higher value, the average number of new ramps (births) per unit time will be lower. The prob has no effect in the other trigger modes.
probdev [float]
Sets the proportion of the current value of the prob attribute that is allowed to vary randomly (above or below). An probdev value of 0 will produce no random variation in the utilization probability.
rampdev [float]
Sets the proportion of the current value of the ramptime attribute that is allowed to vary randomly (above or below). A rampdev value of 0 will produce no random variation in the ramp time.
ramptime [float]
Sets the duration in milliseconds of a phasor ramp produced by mc.snowphasor~.
rate [float]
When the mode attribute is set to (1), the rate attribute sets the rate per second of phasor ramps triggerings (births). When the mode attribute is set to other values, the attribute has no effect.
ratedev [float]
Sets the proportion of the current value of the rate attribute that is allowed to vary randomly (above or below). An rate value of 0 will produce no random variation in the ramp birth rate.
threshold [float]
Sets the minimum sample value for a ramp trigger in Audio Mode.
usebusymap [int]
When the usebusymap attribute is set, mc.snowphasor~ incorporates the busy map into its voice allocation algorithm and sets channels in the busy map to be busy when triggering ramps.
Common Box Attributes
annotation [symbol]
Sets the text that will be displayed in the Clue window when the user moves the mouse over the object.
background [int] (default: 0)
Adds or removes the object from the patcher's background layer.
adds the object to the background layer, removes it. Objects in the background layer are shown behind all objects in the default foreground layer.color [4 floats]
Sets the color for the object box outline.
fontface [int]
Sets the type style used by the object. The options are:
plain
bold
italic
bold italic
Possible values:
0 = 'regular'
1 = 'bold'
2 = 'italic'
3 = 'bold italic'
fontname [symbol]
Sets the object's font.
fontsize [float]
Sets the object's font size (in points).
Possible values:
'8'
'9'
'10'
'11'
'12'
'13'
'14'
'16'
'18'
'20'
'24'
'30'
'36'
'48'
'64'
'72'
hidden [int] (default: 0)
Toggles whether an object is hidden when the patcher is locked.
hint [symbol]
Sets the text that will be displayed in as a pop-up hint when the user moves the mouse over the object in a locked patcher.
ignoreclick [int] (default: 0)
Toggles whether an object ignores mouse clicks in a locked patcher.
jspainterfile [symbol]
JS Painter File
patching_rect [4 floats] (default: 0. 0. 100. 0.)
Sets the position and size of the object in the patcher window.
position [2 floats]
Sets the object's x and y position in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its size unchanged.
presentation [int] (default: 0)
Sets whether an object belongs to the patcher's presentation.
presentation_rect [4 floats] (default: 0. 0. 0. 0.)
Sets the x and y position and width and height of the object in the patcher's presentation, leaving its patching position unchanged.
rect [4 floats]
Sets the x and y position and width and height of the object in both patching and presentation modes (if the object belongs to its patcher's presentation).
size [2 floats]
Sets the object's width and height in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its position unchanged.
textcolor [4 floats]
Sets the color for the object's text in RGBA format.
textjustification [int]
Sets the justification for the object's text.
Possible values:
0 = 'left'
1 = 'center'
2 = 'right'
varname [symbol]
Sets the patcher's scripting name, which can be used to address the object by name in pattr, scripting messages to thispatcher, and the js object.
Messages
signal
In right inlet: A signal connected to the right inlet sets the ramp duration, overriding the value of the decaytime attribute. If a multi-channel signal is connected, the channel of the input corresponding to the channel of the output ramp is used for the duration.
See Also
Name | Description |
---|---|
change~ | Report signal direction |
line~ | Linear signal ramp generator |
phasor~ | Generate sawtooth signals |
snowfall~ | Phasor-Driven Particle |
updown~ | Trapezoidal Function Generator With Constant Attack and Release |