Function filter

  • Filter a list with a pitch class set

    Parameters

    • set: Set

      the pitch class set notes

    Returns ((notes) => string[])

    the filtered notes

      • (notes): string[]
      • Parameters

        • notes: string[]

        Returns string[]

    Example

    Pcset.filter(["C", "D", "E"], ["c2", "c#2", "d2", "c3", "c#3", "d3"]) // => [ "c2", "d2", "c3", "d3" ])
    Pcset.filter(["C2"], ["c2", "c#2", "d2", "c3", "c#3", "d3"]) // => [ "c2", "c3" ])