-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.d.ts
More file actions
17 lines (14 loc) · 751 Bytes
/
Copy pathindex.d.ts
File metadata and controls
17 lines (14 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/** Max value a single wavefont char can encode (higher codepoints render blank). */
export declare const MAX: 127
/** Char for a single value 0–127 (clamped & rounded): U+0100–U+017F. */
export declare function char(value: number): string
/**
* Combining marks shifting the preceding bar by ±steps (−100..100, clamped & rounded).
* Emits the canonical order the font recognizes: 10-step marks first, then 1-step marks
* (up: U+0302 then U+0301, down: U+030C then U+0300).
*/
export declare function shift(steps: number): string
/** Wavefont string for values 0–127 (each clamped & rounded). */
declare function wavefont(values: ArrayLike<number>): string
declare function wavefont(...values: number[]): string
export default wavefont