ml

class BeatTrack(calculation_rate=None, pv_chain=None, lock=0.0, **kwargs)

Bases: UGen

Autocorrelation beat tracker.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> beat_track = supriya.ugens.BeatTrack.kr(
...     pv_chain=pv_chain,
...     lock=0,
... )
>>> beat_track
UGenArray({4})
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None, lock: SupportsFloat | UGenMethodMixin = 0.0) BeatTrack
property lock : SupportsFloat | UGenMethodMixin
property pv_chain : SupportsFloat | UGenMethodMixin
class BeatTrack2(calculation_rate=None, bus_index=0.0, feature_count=None, window_size=2, phase_accuracy=0.02, lock=0.0, weighting_scheme=-2.1, **kwargs)

Bases: UGen

A template-matching beat-tracker.

>>> beat_track_2 = supriya.ugens.BeatTrack2.kr(
...     bus_index=0,
...     lock=False,
...     feature_count=4,
...     phase_accuracy=0.02,
...     weighting_scheme=-2.1,
...     window_size=2,
... )
>>> beat_track_2
UGenArray({6})
classmethod kr(bus_index: SupportsFloat | UGenMethodMixin = 0.0, feature_count: SupportsFloat | UGenMethodMixin | None = None, window_size: SupportsFloat | UGenMethodMixin = 2, phase_accuracy: SupportsFloat | UGenMethodMixin = 0.02, lock: SupportsFloat | UGenMethodMixin = 0.0, weighting_scheme: SupportsFloat | UGenMethodMixin = -2.1) BeatTrack2
property bus_index : SupportsFloat | UGenMethodMixin
property feature_count : SupportsFloat | UGenMethodMixin
property lock : SupportsFloat | UGenMethodMixin
property phase_accuracy : SupportsFloat | UGenMethodMixin
property weighting_scheme : SupportsFloat | UGenMethodMixin
property window_size : SupportsFloat | UGenMethodMixin
class KeyTrack(calculation_rate=None, pv_chain=None, key_decay=2, chroma_leak=0.5, **kwargs)

Bases: UGen

A key tracker.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> key_track = supriya.ugens.KeyTrack.kr(
...     pv_chain=pv_chain,
...     chroma_leak=0.5,
...     key_decay=2,
... )
>>> key_track
KeyTrack.kr()
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None, key_decay: SupportsFloat | UGenMethodMixin = 2, chroma_leak: SupportsFloat | UGenMethodMixin = 0.5) KeyTrack
property chroma_leak : SupportsFloat | UGenMethodMixin
property key_decay : SupportsFloat | UGenMethodMixin
property pv_chain : SupportsFloat | UGenMethodMixin
class Loudness(calculation_rate=None, pv_chain=None, smask=0.25, tmask=1, **kwargs)

Bases: UGen

Extraction of instantaneous loudness in sones.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> loudness = supriya.ugens.Loudness.kr(
...     pv_chain=pv_chain,
...     smask=0.25,
...     tmask=1,
... )
>>> loudness
Loudness.kr()
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None, smask: SupportsFloat | UGenMethodMixin = 0.25, tmask: SupportsFloat | UGenMethodMixin = 1) Loudness
property pv_chain : SupportsFloat | UGenMethodMixin
property smask : SupportsFloat | UGenMethodMixin
property tmask : SupportsFloat | UGenMethodMixin
class MFCC(calculation_rate=None, channel_count=13, pv_chain=None, coeff_count=13, **kwargs)

Bases: UGen

Mel frequency cepstral coefficients.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> mfcc = supriya.ugens.MFCC.kr(
...     pv_chain=pv_chain,
... )
>>> mfcc
UGenArray({13})
classmethod kr(pv_chain=None, coeff_count=13)
property coeff_count : SupportsFloat | UGenMethodMixin
property pv_chain : SupportsFloat | UGenMethodMixin
class Onsets(calculation_rate=None, pv_chain=None, threshold=0.5, odftype=3, relaxtime=1, floor_=0.1, mingap=10, medianspan=11, whtype=1, rawodf=0, **kwargs)

Bases: UGen

An onset detector.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> onsets = supriya.ugens.Onsets.kr(
...     pv_chain=pv_chain,
...     floor_=0.1,
...     medianspan=11,
...     mingap=10,
...     odftype=supriya.ugens.Onsets.ODFType.RCOMPLEX,
...     rawodf=0,
...     relaxtime=1,
...     threshold=0.5,
...     whtype=1,
... )
>>> onsets
Onsets.kr()
class ODFType(value)

An enumeration.

classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None, threshold: SupportsFloat | UGenMethodMixin = 0.5, odftype: SupportsFloat | UGenMethodMixin = 3, relaxtime: SupportsFloat | UGenMethodMixin = 1, floor_: SupportsFloat | UGenMethodMixin = 0.1, mingap: SupportsFloat | UGenMethodMixin = 10, medianspan: SupportsFloat | UGenMethodMixin = 11, whtype: SupportsFloat | UGenMethodMixin = 1, rawodf: SupportsFloat | UGenMethodMixin = 0) Onsets
property floor_ : SupportsFloat | UGenMethodMixin
property medianspan : SupportsFloat | UGenMethodMixin
property mingap : SupportsFloat | UGenMethodMixin
property odftype : SupportsFloat | UGenMethodMixin
property pv_chain : SupportsFloat | UGenMethodMixin
property rawodf : SupportsFloat | UGenMethodMixin
property relaxtime : SupportsFloat | UGenMethodMixin
property threshold : SupportsFloat | UGenMethodMixin
property whtype : SupportsFloat | UGenMethodMixin
class Pitch(calculation_rate=None, source=None, initial_frequency=440, min_frequency=60, max_frequency=4000, exec_frequency=100, max_bins_per_octave=16, median=1, amplitude_threshold=0.01, peak_threshold=0.5, down_sample_factor=1, clarity=0, **kwargs)

Bases: UGen

An autocorrelation pitch follower.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pitch = supriya.ugens.Pitch.kr(source=source)
>>> pitch
UGenArray({2})
classmethod kr(source: SupportsFloat | UGenMethodMixin | None = None, initial_frequency: SupportsFloat | UGenMethodMixin = 440, min_frequency: SupportsFloat | UGenMethodMixin = 60, max_frequency: SupportsFloat | UGenMethodMixin = 4000, exec_frequency: SupportsFloat | UGenMethodMixin = 100, max_bins_per_octave: SupportsFloat | UGenMethodMixin = 16, median: SupportsFloat | UGenMethodMixin = 1, amplitude_threshold: SupportsFloat | UGenMethodMixin = 0.01, peak_threshold: SupportsFloat | UGenMethodMixin = 0.5, down_sample_factor: SupportsFloat | UGenMethodMixin = 1, clarity: SupportsFloat | UGenMethodMixin = 0) Pitch
property amplitude_threshold : SupportsFloat | UGenMethodMixin
property clarity : SupportsFloat | UGenMethodMixin
property down_sample_factor : SupportsFloat | UGenMethodMixin
property exec_frequency : SupportsFloat | UGenMethodMixin
property initial_frequency : SupportsFloat | UGenMethodMixin
property max_bins_per_octave : SupportsFloat | UGenMethodMixin
property max_frequency : SupportsFloat | UGenMethodMixin
property median : SupportsFloat | UGenMethodMixin
property min_frequency : SupportsFloat | UGenMethodMixin
property peak_threshold : SupportsFloat | UGenMethodMixin
property source : SupportsFloat | UGenMethodMixin
class SpecCentroid(calculation_rate=None, pv_chain=None, **kwargs)

Bases: UGen

A spectral centroid measure.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> spec_centroid = supriya.ugens.SpecCentroid.kr(
...     pv_chain=pv_chain,
... )
>>> spec_centroid
SpecCentroid.kr()
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None) SpecCentroid
property pv_chain : SupportsFloat | UGenMethodMixin
class SpecFlatness(calculation_rate=None, pv_chain=None, **kwargs)

Bases: UGen

A spectral flatness measure.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> spec_flatness = supriya.ugens.SpecFlatness.kr(
...     pv_chain=pv_chain,
... )
>>> spec_flatness
SpecFlatness.kr()
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None) SpecFlatness
property pv_chain : SupportsFloat | UGenMethodMixin
class SpecPcile(calculation_rate=None, pv_chain=None, fraction=0.5, interpolate=0, **kwargs)

Bases: UGen

Find a percentile of FFT magnitude spectrum.

>>> source = supriya.ugens.In.ar(bus=0)
>>> pv_chain = supriya.ugens.FFT.kr(source=source)
>>> spec_pcile = supriya.ugens.SpecPcile.kr(
...     pv_chain=pv_chain,
...     fraction=0.5,
...     interpolate=0,
... )
>>> spec_pcile
SpecPcile.kr()
classmethod kr(pv_chain: SupportsFloat | UGenMethodMixin | None = None, fraction: SupportsFloat | UGenMethodMixin = 0.5, interpolate: SupportsFloat | UGenMethodMixin = 0) SpecPcile
property fraction : SupportsFloat | UGenMethodMixin
property interpolate : SupportsFloat | UGenMethodMixin
property pv_chain : SupportsFloat | UGenMethodMixin