Hiyve Components - v1.0.0
    Preparing search index...
    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get offsetMs(): number | null

      How late the clicks reach the microphone, once the count-in has shown it; null until then, or when they were not heard

      Returns number | null

    Methods

    • Where an attack heard at onsetMs began, when a silenced click hid its start: a note that comes in during the blanked span is first heard where the span ends, and is taken to have started on the click — as near as can be told, it was played on the beat. null for an attack not heard at the end of a span, or before the clicks have been found. marginMs is how far past the span's end the onset detector may report such an attack: its time resolution.

      Parameters

      • onsetMs: number
      • marginMs: number = 0

      Returns number | null

    • Take the next chunk of the stream, startFrame being the index of its first sample. Returns the chunk with any click in it blanked — a copy when something was blanked, the chunk itself otherwise.

      Parameters

      • chunk: Float32Array
      • startFrame: number

      Returns Float32Array

    • Forget everything, as at the start of a stream.

      Returns void