• Stars
    star
    207
  • Rank 189,769 (Top 4 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Music theory and score rendering library with midi, notes, chords, scales, and more.

Staff

crate documentation

Music theory and score rendering library with midi, notes, chords, scales, and more.

staff

fretboard

Installation

This crate currently uses the Noto Music font by default.

Usage

example.ly

\clef treble
a'1
d'2. e'4
f'2 e'4 f'
b'2. a'4
g'2 fis'4 g'

$ staff example.ly > example.svg

Library

use staff::{midi, Chord, Pitch};

let chord = Chord::from_midi(
    midi!(C, 4),
    [midi!(E, 3), midi!(G, 3), midi!(C, 4)]
);

assert_eq!(chord.to_string(), "C/E");

let pitches = [Pitch::E, Pitch::G, Pitch::C];
assert!(chord.into_iter().eq(pitches));

Features

  • render: Enable render module
    • svg: Enable rendering to SVG
  • synth: Enable synth module for
  • serde: Impl Deserialize and Serialize for many crate types

More Repositories

1

typed-sql

Rust
194
star
2

futures-codec

Utilities for encoding and decoding frames with async/await
Rust
73
star
3

viewbuilder

Cross-platform user interface framework for Rust.
Rust
66
star
4

conduct

A cross-platform driver for Tauri in Haskell
HTML
45
star
5

shmonad

A shell prompt with infinite customization
Haskell
38
star
6

engrave

Browser based code editor
Rust
30
star
7

bevy-compose

Rust
30
star
8

lookbook

Rust
28
star
9

embedded-flight

Rust
26
star
10

async-hal

Rust
25
star
11

view-monad

Haskell
23
star
12

hoot

Opinionated package manager for haskell (WIP)
Haskell
17
star
13

dioxus-spring

Animation framework for Dioxus
Rust
15
star
14

dioxus-lazy

Virtualized components for Dioxus
Rust
15
star
15

dotfiler

A templating system for unix configuration files
Rust
11
star
16

cdk-rs

Rust
10
star
17

dioxus-use-gesture

Rust
9
star
18

voxy

A voxel engine made with Bevy
Rust
9
star
19

text-svg

Rust
9
star
20

uring-rs

A pure Rust library for io_uring
Rust
6
star
21

dioxus-tray

System-tray applications with Dioxus
Rust
6
star
22

dotfiles

A collection of my linux configuration files
Nix
5
star
23

woofer

Rust
4
star
24

dioxus-use-mounted

Rust
3
star
25

iso-tp

Rust
3
star
26

quickmaths

A collection of algorithms for generic mathematics in Rust
Rust
3
star
27

scripting

Rust
3
star
28

bevy-mod-sequencer

Rust
3
star
29

ui

A reactive graph in Haskell
Haskell
2
star
30

async-native-timer

Async/await Timers with native implementations
Rust
2
star
31

permissions

Rust
1
star
32

sys-call-rs

System call macro for Rust
Rust
1
star
33

crates

Rust
1
star
34

snowman-rs

Asynchronously generate Twitter snowflake ids in rust
Rust
1
star
35

tide-cors

Cross-origin resource sharing (CORS) middleware for Tide applications
Rust
1
star
36

circus-rs

Quantum circuit simulator in Rust
Rust
1
star
37

flex

Haskell
1
star
38

advent-of-code-2022

Haskell
1
star
39

stream-reduce

reduce() for streams in Rust
Rust
1
star
40

campus-texter

Sends graded assignments from Infinite Campus with SMS
Python
1
star
41

wavedash

A WASM runtime for Bevy mods
Rust
1
star
42

xilem-material

Material You components for xilem
Rust
1
star
43

car-api

Rust
1
star
44

dioxus-menu

Rust
1
star
45

web-slinger

HTML
1
star
46

visualizer

Rust
1
star