- Added
lazy
option to add aloading="lazy"
attribute to the created iframe
- Added embed parameter
userId
- Added methods:
getNbParts
getPartsUuids
getMeasureVoicesUuids
getMeasureNbNotes
getNoteData
playbackPositionToNoteIdx
- Added URL parameter:
noAudio
to disable audio playback
- Fixed
setMasterVolume
not calling the correct underlying method
- Fixed package
exports
compatibility with Webpack 5
Breaking changes:
- Removed support for jQuery in constructor. Migration:
var container = $('#embed-container');
var embed = new Flat.Embed(container[0], {
// your options
});
New features:
- Added support for TypeScript in published NPM module
- Publishing separate ES & UMD builds
- Add
allow: autoplay
on created iframes.
- Add methods:
getNbMeasures
getMeasuresUuids
goLeft
goRight
getMetronomeMode
setMetronomeMode
getPlaybackSpeed
setPlaybackSpeed
scrollToCursor
- Fixed compatibility with Vue 3
- Update
loadFlatScore
to supportsharingKey
- Add methods to dynamically set audio tracks:
setTrack
,useTrack
andseekTrackTo
- new options for
getPNG
layout
withtrack
orpage
(default:track
)dpi
- Add methods:
getMasterVolume
setMasterVolume
getPartVolume
setPartVolume
mutePart
unmutePart
setPartSoloMode
unsetPartSoloMode
getPartSoloMode
getPartReverb
setPartReverb
getMeasureDetails
getNoteDetails
- Add events:
noteDetails
measureDetails
cursorContext
- Add methods:
getParts
,getDisplayedParts
andsetDisplayedParts
- Support for MIDI Output
- Host on our CDN (
https://prod.flat-cdn.com/embed-js/${VERSION}/embed.min.js
)
- Add
getMIDI
update - Update
getMusicXML
to support new returned Uint8Array format (no more.data
, response is at top level) - Update cursor:
voiceIdx
is nowvoiceIdxInStaff
- Update for the embed release
- Use new CDN endpoint
flat-embed.com
by default - Remove deprecated
edit
action & event - Remove
setNoteColor
method
- Add method:
mute
- Switch from babel-preset-es2015 to babel-preset-env
- Remove rollup-plugin-hypothetical and babel-plugin-transform-runtime
- Add method:
setNoteColor
- Add methods:
getCursorPosition
andsetCursorPosition
- Add method:
focusScore
- New property
defaultMode
in editor config
- Add method:
getPNG
- Add methods:
getEmbedConfig
,setEditorConfig
,edit
- Add events:
edit
- Add methods:
getAutoZoom
,setAutoZoom
,loadMusicXML
,getMusicXML
- Add events:
scoreLoaded
,cursorPosition
,rangeSelection
,pause
,stop
,fullscreen
,print
- Add integration tests
- Initial release