Reference

This information is all in the cicada~ Max help and Max reference files included with the package:

MESSAGES

int
Left inlet: 0 turns off, anything else turns on.

signal
Left inlet: The signal that the cicada’s “chirp” will modulate the amplitude of.

OUTLETS

  • 0 (Leftmost) (signal):
    If there is an input signal, this will output the amplitude-modulated signal.
    If no input signal and chirp_on_signal is zero, this will output the amplitude envelope. If no input signal and chirp_on_signal is non-zero, this will not output.
  • 1 (bang):
    Bangs when amplitude envelope is zero.
  • 2 (float):
    The peak value of amplitude envelope, when this value is hit.
  • 3 (list):
    Connect this outlet to the right inlet of another cicada to make that cicada “listen” and synchronize (if the coupling_strength attribute is high) to this one.

ATTRIBUTES

  • chirp_on_start (long) (settable/not gettable)
    Non-zero: start chirping when object is turned on.
    Zero: stochastically decide to chirp according to chirping_time_mean and nonchirping_time_mean attribute values when object is turned on.
    Default is non-zero. ​

  • chirping (long) (settable/not gettable)
    Manually start or stop chirping.
    zero: silences cicada.
    non-zero: starts cicada chirping.
    Default is non-zero (on).

  • chirp_on_signal (long) (settable/not gettable)
    Output based on presence of input signal.
    zero: send output without input signal.
    Non-zero: send output only when a signal is coming in inlet.
    Default is zero.

  • amplitude_randomness (float) (settable/not gettable)
    Range: 0 to 1
    At 0 all chirps will have peak value 1.0. Increase to randomize peak values. Follows a normal (Gaussian) distribution. Default is zero.

  • chirp_length_mean (float) (settable/not gettable)
    In milliseconds.
    Follows a normal (Gaussian) distribution.
    Default is 300 ms.

  • chirp_length_randomness (float) (settable/not gettable)
    Range: 0 to 1
    At 0 all chirps will have length equal to chirp_length_mean. Increase to randomize chirp lengths.
    Follows a normal (Gaussian) distribution.
    Default is zero.

  • chirping_time_mean (float) (settable/not gettable)
    In seconds
    The average amount of time in seconds the cicada will chirp without stopping.
    Follows a geometric distribution.
    Default is one second.

  • nonchirping_time_mean (float) (settable/not gettable)
    In seconds
    The average amount of time of unbroken silence between periods of chirping.
    Follows a geometric distribution.
    Default is zero seconds.

  • start_chirping_nbr_sensitivity (float) (settable/not gettable)
    The likelihood of starting chirping based on how many neighbors are chirping. If a cicada is connected to other cicadas via its left inlet and currently not chirping, higher values of this will increase its likelihood to start chirping if the other cicadas are chirping.
    Default is zero.

  • stop_chirping_nbr_sensitivity (float) (settable/not gettable)
    Likelihood of stopping chirping based on how many neighbors are chirping.
    If a cicada is connected to other cicadas via its left inlet and currently not chirping, higher values of this will increase its likelihood to stop chirping if the other cicadas are chirping.
    Default is zero.

  • coupling_strength (float) (settable/not gettable)
    Range: -1 to 1.
    Default is zero.
    The Kuramoto coefficient. If a cicada is connected to one or more other cicadas, the following values will produce this behavior:

    • 1: will synchronize chirps with the other cicada(s);
    • 0: will not synchronize at all with the other cicada(s)
    • -1: will alternate its chirps with the other cicada(s). With more than two coupled cicadas, this will be complicated.

    At other values between these three main values, combinations of synchrony and randomness will occur.