Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 1.98 KB

README.md

File metadata and controls

56 lines (52 loc) · 1.98 KB

SheetCloud.js

Edit sheet music directly in your website

Check out the Landing page : https://warm-bayou-62373.herokuapp.com/

Check out the Documentation : https://warm-bayou-62373.herokuapp.com/documentation.html

API Documentation

SheetCloud is a javascript library that provides a music sheet interface for websites. The SheetCloud API allows for interacting with the Sheetcloud library.

Getting Started

To setup SheetCloud, ensure the library is in the scope of your project. Then, add these script lines to your html file:

<script defer type="text/javascript" src="js/SheetCloud.js"></script>
<link rel="stylesheet" type="text/css" href="js/SheetCloud.css" />


Once the library is imported, a music sheet can be created using these library calls:

const sg = SheetGenerator();
sg.makeSheet({ clefs: { treble: true, bass: true }, timeSignatures: { upper: 2, lower: 4 }, numStaffs: 1, tempo: 120, items: [] });
const sheetHTMLElement = sg.mainView;    //sg.mainView is the html music sheet that can be inserted into your html page