The GUIDO Engine services are available as a Web Assembly Javascript libray.
The Javascript library API is similar to the C/C++ API: This short Javascript documentation is intended as a quick reference. For more details, you should refer to the C/C++ API.
Data structure used by GUIDOScoreMap module
GUIDOScoreMap module use a collection of JSON objects corresponding to the objects of C/C++ API to exchange data. You can find the description of all the JSON objects in the GUIDO mappings page of Guido webservice.

Module: GuidoEngineAdapter
Functions:
init
shutdown
ar2gr
ar2grSettings
updateGR
updateGRSettings
showElement
freeAR
freeGR
getErrorString
getDefaultLayoutSettings
countVoices
getPageCount
getSystemCount
duration
findEventPage
findPageAt
getPageDate
gr2SVG
gr2SVGColored
abstractExport
binaryExport
javascriptExport
setDrawBoundingBoxes
getDrawBoundingBoxes
getPageFormat
setDefaultPageFormat
getDefaultPageFormat
unit2CM
cm2Unit
unit2Inches
inches2Unit
resizePageToMusic
getVersion
getVersionStr
checkVersionNums
getLineSpace
markVoice
openParser
closeParser
file2AR
string2AR
getStream
stream2AR
parserGetErrorCode
openStream
closeStream
writeStream
resetStream
getParsingTime
getAR2GRTime
getOnDrawTime

Module: GUIDOScoreMap
Functions:
getPageMap
getStaffMap
getVoiceMap
getSystemMap
getTime
getPoint
getTimeMap
getPianoRollMap

Module: GUIDOPianoRollAdapter
Functions:
ar2PianoRoll
destroyPianoRoll
setLimits
enableKeyboard
getKeyboardWidth
enableAutoVoicesColoration
setRGBColorToVoice
setHtmlColorToVoice
removeColorToVoice
enableMeasureBars
setPitchLinesDisplayMode
svgExport
javascriptExport

Module: GUIDOReducedProportionalAdapter
Functions:
ar2RProportional
destroyRProportional
drawDurationLines
enableAutoVoicesColoration
setRGBColorToVoice
setHtmlColorToVoice
removeColorToVoice
enableMeasureBars
setLimits
svgExport
javascriptExport

Module: GUIDOFactoryAdapter
Functions:
openMusic
closeMusic
openVoice
closeVoice
openChord
closeChord
insertCommata
openEvent
closeEvent
addSharp
addFlat
setEventDots
setEventAccidentals
setOctave
setDuration
openTag
openRangeTag
endTag
closeTag
addTagParameterString
addTagParameterInt
addTagParameterFloat
setParameterName
setParameterUnit

GuidoParser Opaque pointer

NodeAR Opaque pointer

NodeGR Opaque pointer

GuidoStream Opaque pointer

PianoRoll Opaque pointer

Module: RProportional

GuidoEngine class
A GuidoEngine class is provided as a high level interface to the modules above. It includes also an asynchronous wasm module initialisation method.


The Guido Engine library is an open source project avaiable from GIthub and published on NPM.

Get the Guido library at Github