Click here to Skip to main content
15,884,298 members
Articles / Programming Languages / PHP

Draw Guitar Chords using PHP

Rate me:
Please Sign up or sign in to vote.
4.60/5 (5 votes)
26 Jul 2010CC (ASA 3U)3 min read 45.6K   748   10  
PHP class to draw guitar chords
<?php
include('../chord/chord.inc.php');


$c = new chord(array(0,0,0,0,0,3));
$c->setShowZeros(false);
$c->setShowUnstrummedStrings(false);

//add a barre chord on 2nd fret, from 1st to 6th chord
$c->setBarreChord(2,1,6);
$c->draw();

?>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-Share Alike 3.0 Unported License


Written By
Systems Engineer
France France
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions