From e3433ea6c9dec1f7becde8944eae453ace08e7d3 Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Mon, 25 Nov 2024 09:10:49 +0100 Subject: [PATCH 1/3] fix: correct delta clock stamp status code --- src/utility.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/utility.rs b/src/utility.rs index 81ce236..9795400 100644 --- a/src/utility.rs +++ b/src/utility.rs @@ -97,7 +97,7 @@ mod timestamp { mod delta_clockstamp { use crate::detail::common_properties; use crate::utility; - pub const STATUS: u8 = 0b0010; + pub const STATUS: u8 = 0b0100; #[midi2_proc::generate_message(Via(crate::utility::Utility), FixedSize, MinSizeUmp(1))] struct DeltaClockstamp { #[property(common_properties::UmpMessageTypeProperty<{utility::UMP_MESSAGE_TYPE}>)] @@ -252,6 +252,16 @@ mod tests { #[test] fn delta_clock_stamp_try_from() { - DeltaClockstamp::try_from(&[0x0020_0000][..]).unwrap(); + DeltaClockstamp::try_from(&[0x0040_0000][..]).unwrap(); + } + + #[test] + fn delta_clock_stamp_tpq_try_from() { + DeltaClockstampTpq::try_from(&[0x0030_0000][..]).unwrap(); + } + + #[test] + fn time_stamp_try_from() { + Timestamp::try_from(&[0x0020_0000][..]).unwrap(); } } From 82c37a1c5629e9be0f3c0e03a4558ce7c82a2a24 Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Mon, 25 Nov 2024 09:15:16 +0100 Subject: [PATCH 2/3] chore: bump cargo version --- Cargo.toml | 4 ++-- README.md | 2 +- midi2_proc/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 30fd923..ce28c55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "midi2" -version = "0.6.2" +version = "0.6.3" description = "Ergonomic, versatile, strong types wrapping MIDI 2.0 message data." edition = "2021" readme = "README.md" @@ -37,7 +37,7 @@ utility = [] [dependencies] derive_more = { version = "0.99.17", features = ["from"], default-features = false } fixed = "1.27.0" -midi2_proc = { version = "0.6.2", path = "midi2_proc" } +midi2_proc = { version = "0.6.3", path = "midi2_proc" } ux = "0.1.6" [dev-dependencies] diff --git a/README.md b/README.md index 54d858a..0059bdb 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ You'll want to setup midi2 without default features to compile without the `std` feature. ```toml -midi2 = { version = "0.6.2", default-features = false, features = ["channel-voice2", "sysex7"], } +midi2 = { version = "0.6.3", default-features = false, features = ["channel-voice2", "sysex7"], } ``` ### Generic Representation diff --git a/midi2_proc/Cargo.toml b/midi2_proc/Cargo.toml index 826d14b..765d5ba 100644 --- a/midi2_proc/Cargo.toml +++ b/midi2_proc/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "midi2_proc" description = "Internal procedural macro crate. Only intended for use with midi2" -version = "0.6.2" +version = "0.6.3" edition = "2021" readme = "README.md" license = "MIT OR Apache-2.0" From 040ed0fcbd754bc46a40487340e338818911934e Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Mon, 25 Nov 2024 09:18:42 +0100 Subject: [PATCH 3/3] docs: update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5915cbf..2ed4d07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.6.3 +* fix: correct delta clock stamp status code + # 0.6.2 * fix: incorrect status of delta clockstamp tpq message