Code Monkey home page Code Monkey logo

stupidharptab's Introduction

StupidHarpTab V.1

Just a stupid (i.e not sane, beautiful or efficient) parser for simple tab files using a sligthly alterd tab format.

Purpose

To be able to add note length to tabs without making them harder to read, but be able to draw these out with easily understandable characters. Parsed with php and css to make it easy, lightweight and customizable.

Disclaimer

I know very little code, i'm not in any way capable of writing this code. I made it for my self and leave it here for those who migth want to use it or alter it to something better. Do not trust the code, if you are not capable of understanding the code you are adviced not to use it.

Limitations (or TODO)

  • I TAKE NO RESPONSIBILITY FOR THIS CODE OR ANY USE OF IT
  • No escaping or sanitation of input AT ALL
  • No expressions - like strength, thrill, slide etc.
  • Due to DIV behaviour, line length is locked at 40em - meaning no more than 20 tab signs per line. (you can easily change this.)

Usage

  • Include or require StupidHarpTab.php
  • Link StupidHarpTab.css

In your file of choice:

StupidHarpTab(FILE, STYLE);

FILE is the file with one or more tabs STYLE is "div" for a div/border based parsing and "unicode" to use unicode symbols.

Tab/file syntax

Explanation Notation
Four Blow 4
Four Draw (4)
Sixteeth note (preceding :) :4
Eighth note (preceding .) .4
Quater note (no marking) 4
Half note (trailing .) 4.
Full note (trailing :) 4:
Eighth note Rest (lower case r) r
Quater note Rest (upper case R) R
Repeat - Start (upper case D) D
Repeat - End (lower case d) d
Header/Title (# as first char) # Title

Files

  • StupidHarpTab.php - Main functions
  • StupidHarpTab.css - Needed css for musical Notation
  • scarborough.txt - Example tab file
  • test.php - Test and demo

stupidharptab's People

Contributors

nozense avatar

Watchers

 avatar

stupidharptab's Issues

Add repeats

Figure out if repeats is possible and if it is - implement.

Scaling and breaks

When window size goes below requirement the divs line-break and the last tabs/notations gets scrambled.

Lock width?

Add rests

Add symbols for rests, at least 4th and 8th.
Maybe with r and R or r and rr.

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.