npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-music-notation

v0.1.1

Published

This is a set of components for rendering different forms of musical notations.

Downloads

3

Readme

vue-music-notation

This is a set of components for rendering different forms of musical notations.

Here is a demo if you don't want to clone this and run it for yourself.

Installation

In the terminal:

yarn add vue-music-notation

Then in your application:

import music from 'vue-music-notation';
import 'vue-music-notation/dist/vue-music-notation.css';

Vue.use(music);

Keyboard

The Keyboard component displays specified notes on a piano keyboard:

<Keyboard
  :notes="[60,64,67]"
/>

And that looks like this:

Keyboard image

You can change the number of keys (length) on the keyboard as well as the starting note (start) using properties.

Tabulature

For you guitarists there is a Tabulature component you can use to show guitar or bass tab (or really tab with any number of strings):

<Tabulature
  :chords="[ [ 0, 2, 2, 1, 0, 0 ], [ -1, -1, -1, 1, 2, 1 ] ]"
/>

Looks like this:

Tabulature

You can change the tuning by setting the tuning prompt with an array of note names.

Notation (Western Musical Notation)

The most complex component in this collection is the Notation component that's used to display notes, intervals, and chords on a staff with clefs.

Here is some example code:

<Notation
  :showTrebleClef="true"
  :showBassClef="true"
>
  <Staff
    :notes="[60,64,67]"
  />
</Notation>

This would give you this:

Notation with C Major

You can use multiple Staff components in the slot to give a long series of notes, like so:

Notation with notes

And you can also show a selection by setting the active property on a Staff element.

Notation with active items

TODO

  • Key signatures in the notation
  • Horizontal Fretboard
  • Vertical Freboard