Crates.io | cycles |
lib.rs | cycles |
version | 0.2.0 |
source | src |
created_at | 2023-01-29 06:53:35.065417 |
updated_at | 2024-01-21 09:42:49.654912 |
description | A cyclic pattern abstraction, heavily inspired by TidalCycles. |
homepage | |
repository | https://github.com/mitchmindtree/cycles |
max_upload_size | |
id | 770768 |
size | 108,581 |
A cyclic pattern abstraction, heavily inspired by TidalCycles.
Started as an attempt at porting the Pattern
abstraction and related items
from the TidalCycles' Haskell implementation, though some liberties have been
taken in order to achieve a more Rust-esque API.
The goal of this crate is to aim for a similar level of ergonomics to TidalCycles (it's hard to compete with Haskell!), while taking advantage of Rust's ability to provide low-to-zero-cost abstractions.
Pattern
] traitThe essence of this crate is the [Pattern
] trait. Pattern
s are types
that can be queried with a [Span
] to produce a sequence of [Event
]s. All
other items are related to constructing, applying, modifying or mapping types
implementing Pattern
.