Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/therebelrobot/rhythm-generation
https://github.com/therebelrobot/rhythm-generation
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/therebelrobot/rhythm-generation
- Owner: therebelrobot
- Created: 2017-12-08T22:25:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T23:44:00.000Z (about 7 years ago)
- Last Synced: 2024-12-09T07:39:01.925Z (about 1 month ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rhythm-generation
generates a random rhythm based on your parameters in command line, and plays them back
### install
```
npm i -g rhythm-generation
```### usage
```
rhythm
```### requirements
- Node 8.x+
### options
- `--beats`: the number of beats to create (default `16`)
- `--tempo`: the tempo (in BPM, default `120`);
- `--metronome`: always have the kick beat at the beginning of the beat (default: `false`)
- `--playback`: play audio of the rhythm (default: `true`)### example
```
└─[$] rhythm --beats=16 --tempo=90
[ '______x_',
'__x_____',
'__x_____',
'________',
'__x_____',
'______x_',
'______x_',
'____x___',
'X___x_x_',
'__x_x_x_',
'X___x_x_',
'________',
'X___x_x_',
'X_x___x_',
'__x_x___',
'____x___' ]
```### roadmap
- export to Midi
- web interface