openmixer — generated API reference
    Preparing search index...

    Function instrumentFamilyOf

    • The family a factory template belongs to, or undefined for an id this desk does not know.

      The channel's instrument field stores the SPECIFIC template id (which horn, not merely that it is brass), so every consumer that reasons about the family has to make this hop. It is here, once, rather than in each of them: a second find over the table is a second answer waiting to disagree. undefined is a real answer — an unassigned channel, or a session written by a desk carrying templates this one does not — and callers treat it as "no prior", never as a default family.

      Parameters

      • templateId: string | undefined

      Returns
          | "keys"
          | "drums"
          | "percussion"
          | "bass"
          | "guitar"
          | "vocals"
          | "brass"
          | "wind"
          | "strings"
          | "playback"
          | undefined