MCPcopy
hub / github.com/scribbletune/scribbletune / isNote

Function isNote

src/utils.ts:9–10  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

7 * @return {Boolean} Return true for c4 or return false for something like CM
8 */
9export const isNote = (str: string): boolean =>
10 /^[a-gA-G](?:#|b)?\d$/.test(str);
11
12/**
13 * Take a String input such as xxx[xx[xx]]

Callers 2

utils.spec.tsFile · 0.90
convertChordsToNotesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected