-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
This is an NPM of the stable version of the Verovio JavaScript toolkit. | ||
|
||
Verovio is a fast, portable and lightweight library for engraving [Music Encoding Initiative (MEI)](http://www.music-encoding.org) music scores into SVG. | ||
|
||
See it running in the [MEI Viewer](http://www.verovio.org/mei-viewer.xhtml) and check out the [tutorial](http://www.verovio.org/tutorial.xhtml) for its web integration and for enabling user interaction. | ||
|
||
## Usage | ||
|
||
```javascript | ||
var verovio = require('verovio'); | ||
|
||
var vrvToolkit = new verovio.toolkit(); | ||
|
||
mei = fs.readFileSync("hello.mei"); | ||
|
||
vrvToolkit.loadData(mei.toString()); | ||
|
||
svg = vrvToolkit.renderPage(1, {}); | ||
|
||
fs.writeFileSync("hello.svg", svg); | ||
``` | ||
|
||
### Memory allocation | ||
|
||
The memory available for Verovio can be increased during import by passing a MB value to the `init` function. | ||
|
||
```javascript | ||
var verovio = require('verovio').init(512); | ||
``` | ||
|
||
The value has to be less than 1024MB. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.