0.2.1 • Published 11 years ago

metalsmith-vextab v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

metalsmith-vextab

A Metalsmith plugin to render music notation as SVG using VexTab.

Installation

npm install metalsmith-vextab

Usage

VexTab source code can be inserted in a source file between customizable delimiters. The default start and end delimiters are <vextab> and </vextab>.

Example:

C major scale:

<vextab>
    tabstave notation=true tablature=false
    notes C-D-E-F-G-A-B/4 C/5
</vextab>

This plugin supports the following options:

  • width (number): the width of the SVG surface to create.
  • startDelimiter (string): the delimiter to open a new music block.
  • endDelimiter (string): the delimiter to close the current music block.
  • logo (boolean): show the veflow.com logo below the rendered musical scores.

For instance, if you want to delimit your VexTab source between {| and |}, you can configure this plugin as follows:

CLI

{
  "plugins": {
    "metalsmith-vextab": {
      "startDelimiter": "{|",
      "endDelimiter": "|}"
    }
  }
}

JavaScript:

var vextab = require('metalsmith-vextab');

metalsmith.use(vextab({
  startDelimiter: '{|',
  endDelimiter: '|}'
}));

Building

VexTab and VexFlow are not available as node.js modules yet. We provide a simple, non-official Grunt file that builds VexTab and VexFlow into the vendor folder.

0.2.1

11 years ago

0.2.0

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago