VexUI
A VexFlow Editor for creating and playing music.
Code Example
<div id="container"></div>
<script type="text/javascript">
//INIT The UI
var handler = new Vex.UI.Handler("container").init();
</script>
Instructions
Use your mouse to start creating music:
-
Left-click to insert current music engraving
(Left clicking with note selected on an existing note will start a chord); - Middle-click to change current engraving type: Cycles through notes, rests, bars, clefs, and back to notes;
- Scroll Mouse to change notes and rest durations, or bars and clefs types;
- Right-click on a note to open a menu with some options (ties are still not implemented).
- Hit play and listen to your music!
Motivation
Mohit Muthanna created an awesome music rendering JavaScript library called VexFlow. The only problem is that there is no "wysiwyg" editor. This project tries to achieve just that!
Contributors
Please, please! You are more than welcome to contribute. It's been such a long time since I've been able to work on this project. Maybe you can help it get better?
There is so much to do. For example:
- Toolbar needs buttons for bars and clefs. For now, the only way to change to clefs and bars is by using mouse middle button;
- Toolbar needs an area to set key and time signatures, and RPM;
- Implement ties;
- Implement mute notes;
- Add support for text;
- Much, much more!
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.