2.15.0 • Published 3 years ago

musical-notation v2.15.0

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

musical-notation

Simple and lightweight musical notation based on beat sequencers and inspired by good ideas.

This is it:

[----][-x--][----][-x--]
[----][-x--][----][-x--]
[-x--][-x--][-x--][-x--]
[-x--][----][-x--][----]
[-x--][----][-x--][----]

Hyphen means empty space brackets help you see divisions and x marks the spot.

About

This is a javascript library that converts the above notation to a multidimensional array, a matrix.

input = `
  [----][-x--][----][-x--]
  [----][-x--][----][-x--]
  [-x--][-x--][-x--][-x--]
  [-x--][----][-x--][----]
  [-x--][----][-x--][----]
`;
output = [
  [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ],
  [ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ],
  [ 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 ],
  [ 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ],
  [ 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
]
2.15.0

3 years ago

2.13.0

5 years ago

2.11.0

5 years ago

2.9.0

5 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago