Reference · Where every tie sits
notePartsfunction
The pieces of a note under a tie's score, short: "a.e.t.", "pens", "in 7", "agg.".
Import it
import { noteParts } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
function noteParts(tie: Tie, v: Voice): string[]
Parameters
| Name | Type | Description |
|---|---|---|
tie | Tie | The tie. |
v | Voice | The voice of a language, from |
Returns
string[]
The notes; an empty list when the score needs none.
Examples
import { layoutBracket, noteParts, voiceOf } from "@johnmorrisdotca/taisen-brackets";
const { ties } = layoutBracket([{ sides: ["ARG", "FRA"], score: [3, 3], extraTime: true, pens: [4, 2] }]);
console.log(noteParts(ties[0], voiceOf({})));[ 'a.e.t.', 'pens' ]What it prints (run when this page was built)