From 3077c7af770b055804d5cf48994a4e4cf6d31146 Mon Sep 17 00:00:00 2001 From: jacksonfu14 Date: Sun, 16 Nov 2025 17:12:19 +0100 Subject: chore: rename meta_affine crate to morphology --- morphology-img/Cargo.toml | 2 +- morphology-img/src/lib.rs | 2 +- morphology-img/src/note.rs | 6 +++--- morphology-img/tests/sequence_conversion.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'morphology-img') diff --git a/morphology-img/Cargo.toml b/morphology-img/Cargo.toml index 07a47dd..5abe376 100644 --- a/morphology-img/Cargo.toml +++ b/morphology-img/Cargo.toml @@ -5,7 +5,7 @@ version.workspace = true authors.workspace = true [dependencies] -meta_affine = { path = "../morphology" } +morphology = { path = "../morphology" } thiserror = "2.0" itertools = "0.13" diff --git a/morphology-img/src/lib.rs b/morphology-img/src/lib.rs index a8a4acd..b94bb5c 100644 --- a/morphology-img/src/lib.rs +++ b/morphology-img/src/lib.rs @@ -11,7 +11,7 @@ //! //! # Architecture //! -//! - **Input**: Only meta-affine types (`Sequence`, `Value`) +//! - **Input**: Only types from the morphology crate (`Sequence`, `Value`) //! - **Output**: File paths or markup strings //! - **Hidden**: All LilyPond-specific types and implementation details diff --git a/morphology-img/src/note.rs b/morphology-img/src/note.rs index 92c3310..98dbd68 100644 --- a/morphology-img/src/note.rs +++ b/morphology-img/src/note.rs @@ -98,7 +98,7 @@ impl Duration { /// /// # Arguments /// - `sequence`: The meta-affine sequence to convert -pub fn sequence_to_notes(sequence: &meta_affine::Sequence) -> Vec { +pub fn sequence_to_notes(sequence: &morphology::Sequence) -> Vec { let length = sequence.length() as i32; let duration = Duration::QUARTER; @@ -137,7 +137,7 @@ pub fn notes_to_markup(notes: &[LilyPondNote]) -> String { /// /// # Examples /// ``` -/// use meta_affine::{Sequence, Value}; +/// use morphology::{Sequence, Value}; /// use morphology_img::sequence_to_markup; /// /// let seq = Sequence::new(vec![ @@ -150,7 +150,7 @@ pub fn notes_to_markup(notes: &[LilyPondNote]) -> String { /// let markup = sequence_to_markup(&seq); /// assert_eq!(markup, "f'4 f4 e4 b4"); /// ``` -pub fn sequence_to_markup(sequence: &meta_affine::Sequence) -> String { +pub fn sequence_to_markup(sequence: &morphology::Sequence) -> String { let notes = sequence_to_notes(sequence); notes_to_markup(¬es) } diff --git a/morphology-img/tests/sequence_conversion.rs b/morphology-img/tests/sequence_conversion.rs index 9889448..30cd494 100644 --- a/morphology-img/tests/sequence_conversion.rs +++ b/morphology-img/tests/sequence_conversion.rs @@ -1,4 +1,4 @@ -use meta_affine::{Sequence, Value}; +use morphology::{Sequence, Value}; use morphology_img::note::sequence_to_notes; #[test] -- cgit v1.2.3