Giter Club home page Giter Club logo

fretboard's Introduction

Fretboard

A jQuery plugin for displaying a fretboard that is configurable, interactive, responsive, and stylable. Your fretboard can have any number of strings or frets, and be of any custom tuning. You can display notes programatically or capture user input. The fretboard is made with HTML/CSS/JavaScript.

I am developing features as I need them, but if you have a feature request feel free to contact me.

Demo

Check out the demo fretboard (default styles). Here is the same fretboard styled with a dark theme using CSS.

Setup

Load your scripts and styles:

<script src="./jquery-1.11.2.min.js"></script>
<script src="./fretboard.js"></script>

<link rel="stylesheet" type="text/css" href="./styles.css">

Create an element to contain the fretboard:

<div class="my-fretboard-js"></div>

Initialize:

$(".my-fretboard-js").fretboard();

This is enough to create a fretboard using the default configuration.

Learn about fretboard configuration and the API.

Code Examples

jQuery plugin (basic, using the default config)

jQuery plugin (using all config options + API)

Extra

You can also check out my Guitar Voiceleading Helper, where I use the fretboard to help users create progressions with good voice leading.

Tests

Unit tests can be run using the Spec Runner.

AngularJS 1 Directive

If you are using Angular 1, the fretboard is also wrapped as an Angular 1 directive.

AngularJS 2 Component

If you are using Angular 2, the fretboard is wrapped as an Angular 2 component (in progress).

fretboard's People

Contributors

fmodica avatar

Watchers

James Cloos avatar Amit Leshed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.