UNPKG

brand-music

Version:

Strongly typed music theory library

61 lines (57 loc) 4.57 kB
import { P as PitchClass } from './PitchClass-RMqPx-Q2.js'; import { T as TwelveBits, P as PartialTwelveBits } from './TwelveBits-Z-c4STkw.js'; type Shape = TwelveBits; declare const hasShape: (v: unknown) => v is TwelveBits; interface PitchClassSetBrand { readonly PitchClassSet: unique symbol; } type PitchClassSet$1 = Shape & PitchClassSetBrand; declare const mark: (_v: Shape) => _v is PitchClassSet$1; declare const markRaw: (v: number) => v is PitchClassSet$1; declare const markRawUnknown: (v: unknown) => v is PitchClassSet$1; declare const fromRaw: (v: TwelveBits | PartialTwelveBits) => PitchClassSet$1; declare const fromRawMasked: (v: number) => PitchClassSet$1; declare const fromRawUnknown: (v: unknown) => PitchClassSet$1 | undefined; declare const EMPTY: PitchClassSet$1; declare const ALL: PitchClassSet$1; declare const from: (...values: PitchClass[]) => PitchClassSet$1; declare const toggleAll: (pcs: PitchClassSet$1) => PitchClassSet$1; declare const union: (a: PitchClassSet$1, b: PitchClassSet$1) => PitchClassSet$1; declare const intersection: (a: PitchClassSet$1, b: PitchClassSet$1) => PitchClassSet$1; declare const symmetricDifference: (a: PitchClassSet$1, b: PitchClassSet$1) => PitchClassSet$1; declare const difference: (a: PitchClassSet$1, b: PitchClassSet$1) => PitchClassSet$1; declare const has: (pcs: PitchClassSet$1, pc: PitchClass) => boolean; declare const add: (pcs: PitchClassSet$1, pc: PitchClass) => PitchClassSet$1; declare const remove: (pcs: PitchClassSet$1, pc: PitchClass) => PitchClassSet$1; declare const toggle: (pcs: PitchClassSet$1, pc: PitchClass) => PitchClassSet$1; declare const isSuperset: (value: PitchClassSet$1, of: PitchClassSet$1) => boolean; declare const isSubset: (value: PitchClassSet$1, of: PitchClassSet$1) => boolean; declare const values: (pcs: PitchClassSet$1) => PitchClass[]; declare const PitchClassSet_ALL: typeof ALL; declare const PitchClassSet_EMPTY: typeof EMPTY; type PitchClassSet_PitchClassSetBrand = PitchClassSetBrand; type PitchClassSet_Shape = Shape; declare const PitchClassSet_add: typeof add; declare const PitchClassSet_difference: typeof difference; declare const PitchClassSet_from: typeof from; declare const PitchClassSet_fromRaw: typeof fromRaw; declare const PitchClassSet_fromRawMasked: typeof fromRawMasked; declare const PitchClassSet_fromRawUnknown: typeof fromRawUnknown; declare const PitchClassSet_has: typeof has; declare const PitchClassSet_hasShape: typeof hasShape; declare const PitchClassSet_intersection: typeof intersection; declare const PitchClassSet_isSubset: typeof isSubset; declare const PitchClassSet_isSuperset: typeof isSuperset; declare const PitchClassSet_mark: typeof mark; declare const PitchClassSet_markRaw: typeof markRaw; declare const PitchClassSet_markRawUnknown: typeof markRawUnknown; declare const PitchClassSet_remove: typeof remove; declare const PitchClassSet_symmetricDifference: typeof symmetricDifference; declare const PitchClassSet_toggle: typeof toggle; declare const PitchClassSet_toggleAll: typeof toggleAll; declare const PitchClassSet_union: typeof union; declare const PitchClassSet_values: typeof values; declare namespace PitchClassSet { export { PitchClassSet_ALL as ALL, PitchClassSet_EMPTY as EMPTY, type PitchClassSet$1 as PitchClassSet, type PitchClassSet_PitchClassSetBrand as PitchClassSetBrand, type PitchClassSet_Shape as Shape, PitchClassSet_add as add, PitchClassSet_difference as difference, PitchClassSet_from as from, PitchClassSet_fromRaw as fromRaw, PitchClassSet_fromRawMasked as fromRawMasked, PitchClassSet_fromRawUnknown as fromRawUnknown, PitchClassSet_has as has, PitchClassSet_hasShape as hasShape, PitchClassSet_intersection as intersection, PitchClassSet_isSubset as isSubset, PitchClassSet_isSuperset as isSuperset, PitchClassSet_mark as mark, PitchClassSet_markRaw as markRaw, PitchClassSet_markRawUnknown as markRawUnknown, PitchClassSet_remove as remove, PitchClassSet_symmetricDifference as symmetricDifference, PitchClassSet_toggle as toggle, PitchClassSet_toggleAll as toggleAll, PitchClassSet_union as union, PitchClassSet_values as values }; } export { ALL as A, EMPTY as E, PitchClassSet as P, type Shape as S, type PitchClassSetBrand as a, type PitchClassSet$1 as b, markRaw as c, markRawUnknown as d, fromRawMasked as e, fromRaw as f, fromRawUnknown as g, hasShape as h, from as i, intersection as j, difference as k, has as l, mark as m, add as n, toggle as o, isSuperset as p, isSubset as q, remove as r, symmetricDifference as s, toggleAll as t, union as u, values as v };