A hands-on tutorial for exploring Verovio with GitHub Codespaces.
- Open the repository on GitHub.
- Click "Fork" (top-right) and fork the repo (i.e., make a copy) into your own GitHub account
- On your own fork, click Code → Codespaces → Create codespace on main.
- Wait for the environment to start.
- Open the provided HTML files in the browser preview and start experimenting. (See instructions below for web server setup)
- Open the "Terminal" in Codespace (Bottom Panel)
- Type:
python3 -m http.server 8000on the command line; Verify that it starts a web server - Go to the "Ports" tab in the bottom panel
- You should see Port 8000; Mouse-over the "Forwarded Address" and click the Globe icon 🌐
- A new tab / window should open. Append the page you want to see at the end of the URL, e.g., "/editorial-markup.html"
Try the following tasks:
In index.html:
- Load and render an MEI file with Verovio
- Experiment with rendering options
- Try changing the zoom
In css-and-svg.html:
- Modify the SVG appearance using CSS
- Change rest color
- Pass additional MEI attribute and highlight according to the value
In musicxml.html:
- Load a MusicXML file instead of MEI
- Convert it to MEI
In midi.html:
- Generate MIDI from the score
- Synchronize playback with score highlighting
Fill the Python script in edit-demo/
- Loads an MEI file
- Save the SVG
Adjsut the script
- Edit it with the Verovio editing API,
- Re-render the layout,
- Save the updated MEI and SVG output.
See the JSON files for example actions
- Use the browser developer tools to inspect the generated SVG.
- Check the Verovio documentation for rendering and editing APIs.
See solutions in the Reference book