EZ Web Audio / createNotes
Function: createNotes()
createNotes(
json?):Note[]
Defined in: index.ts:140
Create an array of Note objects from a frequency map.
Notes represent musical pitches with letter, accidental, octave, and frequency. If no frequency map is provided, uses the default 12-TET frequency map.
Parameters
json?
Record<string, number>
Optional frequency map object (default: built-in frequencyMap)
Returns
Note[]
Array of Note objects
Example
typescript
import { createNotes } from 'ez-web-audio'
// Create notes from default frequency map
const notes = createNotes()
const a4 = notes.find(n => n.frequency === 440)