https://github.com/deciduously/music
A small Rust music maker
https://github.com/deciduously/music
Last synced: 3 months ago
JSON representation
A small Rust music maker
- Host: GitHub
- URL: https://github.com/deciduously/music
- Owner: deciduously
- License: mit
- Created: 2019-11-20T12:56:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-10-31T21:58:16.000Z (7 months ago)
- Last Synced: 2026-01-24T18:51:54.349Z (4 months ago)
- Language: Rust
- Size: 248 KB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# music
Random music!
Install `libasound2-dev`, e.g. `sudo apt install libasound2-dev`.
- Run tests - `cargo test`
- Run program - `cargo run`
Usage:
```txt
Usage: music [OPTIONS]
Options:
-p, --pitch-mode Single-pitch mode
-b, --base-note The base note to calculate the scale from [default: C4]
-s, --scale The series of intervals from the base note to use per octave [default: Ionian]
-o, --octaves Number of octaves over which to range, anything over 8 gets parsed as 8 [default: 1]
-h, --help Print help
-V, --version Print version
```
For example:
```txt
$ cargo run -- -s locrian -b Eb2 -o 3
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/music -s locrian -b Eb2 -o 3`
.: Cool Tunes :.
Generating music from the E♭ Locrian mode
Octaves: 2 - 5
[ E♭ E F# G# A B C# E♭ ]
```