-
Notifications
You must be signed in to change notification settings - Fork 0
API: live tone API
D.B.C. edited this page Sep 29, 2024
·
5 revisions
registerPlaying(playing: Stoppable): voidstart(): voidsetBpm(bpm: number): void
get name(): stringget rawNotes(): readonly string[]notes(key: string, octave: number, range: number = 1): readonly string[]
makeShuffled<T>(array: readonly T[]): readonly T[]choose<T>(array: readonly T[]): T
fromFirst<T>(array: readonly T[]): Generator<T>fromLast<T>(array: readonly T[]): Generator<T>roundTrip<T>(array: readonly T[], fromFirst: boolean = true): Generator<T>shuffle<T>(array: readonly T[]): Generator<T>random<T>(array: readonly T[]): Generator<T>
randomNumber(n: number): numberrandomInRange(begin: number, end: number): numberoneIn(n: number): boolean
chord(root: string, type: string): string[]majorDiatonicChords(root: string): Array<string[]>naturalMinorDiatonicChords(root: string): Array<string[]>harmonicMinorDiatonicChords(root: string): Array<string[]>melodicMinorDiatonicChords(root: string): Array<string[]>