Skip to content

Commit

Permalink
chore: Merge branch 'hotfix/0.6.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Leadbetter committed Nov 25, 2024
2 parents 1fe0545 + 040ed0f commit 756ec54
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion midi2_proc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 12 additions & 2 deletions src/utility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}>)]
Expand Down Expand Up @@ -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();
}
}

0 comments on commit 756ec54

Please sign in to comment.