<palta-note> is a web component that displays compositions Bhatkhande notation system.
npm i palta-note<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:
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.
<palta-note> currently supports:
- teental
- rupak
- ektaal
- jhaptaal
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>To scan the project for linting and formatting errors, run
npm run lintTo automatically fix linting and formatting errors, run
npm run formatTo execute a single test run:
npm run testTo run the tests in interactive watch mode run:
npm run test:watchnpm startTo run a local development server that serves the basic demo located in index.html
