1.3.3 • Published 7 months ago

palta-note v1.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

\

\ is a web component that displays compositions Bhatkhande notation system.

Installation

npm i palta-note

Usage

<script type="module">
  import 'palta-note/palta-note.js';
</script>

<palta-note vibhags="1 2 0 3">
  Dha Dhin Dhin Dha
  Dha Dhin Dhin Dha
  Dha Tin Tin Ta
  Ta Dhin Dhin Dha
</palta-note>

The above should transform into:

Screenshot of palta-note in action

You can also specify the taal and it will make sure that the matras fit into the correct structure of the taal:

<palta-note taal="teental">
  Dha Dhin Dhin Dha Dha Dhin Dhin Dha
  Dha Tin Tin Ta
  Ta Dhin Dhin Dha
</palta-note>

which will produce the same output as above.

Taals supported

\ currently supports:

  • teental
  • rupak
  • ektaal
  • jhaptaal

Shorthands

To save time with repeated matras or lines you can specify compositions like this:

<palta-note taal="teental">
  Dha Dhin Dhin Dha x2
  Dha (Tin)x2 Ta
  Ta Dhin Dhin Dha
</palta-note>

This is equivalent to:

<palta-note taal="teental">
  Dha Dhin Dhin Dha
  Dha Dhin Dhin Dha
  Dha Tin Tin Ta
  Ta Dhin Dhin Dha
</palta-note>

Linting and formatting

To scan the project for linting and formatting errors, run

npm run lint

To automatically fix linting and formatting errors, run

npm run format

Testing with Web Test Runner

To execute a single test run:

npm run test

To run the tests in interactive watch mode run:

npm run test:watch

Local Demo

npm start

To run a local development server that serves the basic demo located in index.html

1.2.0

7 months ago

1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.5.1

8 months ago

0.5.0

8 months ago

0.4.3

8 months ago

0.4.2

8 months ago

0.4.1

8 months ago

0.4.0

8 months ago

0.3.8

8 months ago

0.3.7

8 months ago

0.3.6

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.3.0

8 months ago

0.2.0

8 months ago