Skip to content

aud.attacktime

Olivier Lartillot edited this page Jan 26, 2018 · 1 revision

The attack phase detected using the 'Attacks' option in aud.events can offer some timbral characterizations. One simple way of describing the attack phase consists in estimating its temporal duration.

Flowchart interconnections

aud.attacktime accepts as input data type either:

  • event detection curves (resulting from aud.events), already including peaks or not,
  • and all the input data accepted by aud.events.

aud.events is normalized using the 'Normal' option set to 'AcrossSegments'.

Some options in aud.events can be controlled:

  • aud.attacktime(..., 'Filter') uses the 'Filter' method instead of the default 'Spectro'.
    • aud.attacktime(..., 'Down', r) controls the 'Down' option in aud.events.
    • aud.attacktime(..., 'CutOff', f) controls the 'CutOff' option in aud.events.
  • aud.attacktime(..., 'Single') toggles on the 'Single' option in aud.events.
  • aud.attacktime(..., 'LogCurve') toggles on the 'Log' option in aud.events.
    • aud.attacktime(..., 'MinLog', ml) controls the 'MinLog' option in aud.events.
  • aud.attacktime(..., 'Contrast', c) controls the 'Contrast' option in aud.events.
  • aud.attacktime(..., 'PreSilence') toggles on the 'PreSilence' option in aud.events.
  • aud.attacktime(..., 'PostSilence') toggles on the 'PostSilence' option in aud.events.
  • aud.attacktime(..., 'PostSilence') toggles on the 'PostSilence' option in aud.events.
  • aud.attacktime(..., 'Attacks', meth) controls the 'Attacks' option in aud.events.

aud.attacktime returns several outputs:

  • the attack time itself and
  • the event detection curve returned by mirevents, including the detected events and the attack phases.

Options

  • aud.attacktime(..., scale) specifies the output scale, linear or logarithmic. Possible values for scale are:
    • scale = 'Lin' returns the duration in a linear scale (in seconds). (Default choice)
    • scale = 'Log' returns the duration in a log scale (Krimphoff et al., 1994). The log attack time given by the Timbre Toolbox (Peeters et al., 2011) can be obtained by using the following set of options:
aud.attacktime(…, ‘Filter’, ‘Attack’, ‘Effort’, ‘Log’, ‘Down’, 0, ‘CutOff’,5)
Clone this wiki locally