Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rstmt
_Warning: expect heavy changes to the API as the library is currently in the early stages of development and is not yet ready for production use.
rstmt is a generalize music-theory toolkit written in Rust.
Features
- American Standard Pitch Notation (ASPN)
- The Neo-Riemannian Theory
Getting Started
Prerequisites
Ensure you have the latest version of Rust installed. You can install Rust using rustup.
|
After installation, I always recommend ensuring that rustup is updated to the latest version:
Setting up for WebAssembly
If you plan to compile this library for WebAssembly, ensure you have the appropriate targets installed. You can check your current targets with:
If necessary, add the wasm32-* target(s) if you plan to compile for WebAssembly:
Building from the source
Start by cloning the repository
Then, navigate to the project directory:
Once you're in the project directory, you can build the project using cargo:
Or, if you want to run the tests, you can use:
Usage
Add this to your Cargo.toml:
[]
= [
"nrt",
]
= "0.0.x"
Examples
Example #1: Basic Usage
extern crate rstmt;
use Note;
use Triad;
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.