Now have the function in JavaScript.

<!DOCTYPE html>
<html>
<body>

<p>For standard guitar tuning EADGBE, this function calculates the</p>
<p>guitar notes used in a guitar chord.</p>
<p>Guitar chord diagrams input as text with fret numbers</p>
<p>seperated by commas [no spaces].</p>
<p>In same order as the EADGBE strings.  All six strings must be present in
input</p>
<p>Note: "0" is open string;  "1" is fret 1 etc; "X" or "-" is string not
used.</p>
<p></p>
<p>eg   "A" chord can be input as  "-,0,2,2,2,0"</p>
<p>                produces "-0; A3; E4; A4; C#/Db5; E5; "</p>
<p>eg  "Bm" chord can be input as "X,2,4,4,3,2"</p>
<p>                produces "-0; B3; F#/Gb4; B4; D5; F#/Gb5; "</p>
<p></p>
<p>Click the button to enter a guitar chord.</p>

<button onclick="GuitarChords()">Get Chord Notes</button>

<p id="input"></p>
<p id="output"></p>



</body>
</html>



--
View this message in context: 
http://dev-list.musescore.org/Guitar-Chord-Chart-to-notes-on-a-score-tp7578479p7578480.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to