Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@sightread/lilypond-eventdocument

Creates a typed versioned event document representing a LilyPond file.

This package does not run LilyPond itself. Compile with @sightread/lilypond-wasm, passing event-document.ily as includeSettings:

import { decodeEventDocument } from '@sightread/lilypond-eventdocument'
import { LISTENER_PATH } from '@sightread/lilypond-eventdocument/node'
import { compile } from '@sightread/lilypond-wasm'
import { readFileSync } from 'node:fs'

const result = await compile(source, {
  files: { 'event-document.ily': readFileSync(LISTENER_PATH) },
  includeSettings: 'event-document.ily',
})
const document = decodeEventDocument(new TextDecoder().decode(result.files['score.events.json']))

About

Read a LilyPond score as a typed event document

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages