From 099229a8576b0bf709d4fdd53f794bf9135cfcec Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Mon, 13 Jan 2025 20:18:16 +0100 Subject: [PATCH 1/3] docs: improve readme example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 826795f..25360d9 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ assert_eq!(note_on.group(), u4::new(0x8)); assert_eq!(note_on.channel(), u4::new(0xA)); assert_eq!(note_on.note_number(), u7::new(0x5E)); assert_eq!(note_on.velocity(), 0x6A14); +assert_eq!(note_on.data(), &[0x489A_5E00, 0x6A14_0000]); // Messages wrap an underlying buffer of data which can be read as an // ordinary slice. @@ -49,8 +50,8 @@ assert_eq!( 0x7665_7265, 0x6C69_7374, 0x0000_0000, -]); - + ] +); ``` ## Aggregate Message Types From 1d8e8b45e4b7e052cd7dc6cb17600cef535ee0f0 Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Thu, 16 Jan 2025 07:45:31 +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 b8158be..3ad9c6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "midi2" -version = "0.6.4" +version = "0.6.5" 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.4", path = "midi2_proc" } +midi2_proc = { version = "0.6.5", path = "midi2_proc" } ux = "0.1.6" [dev-dependencies] diff --git a/README.md b/README.md index 25360d9..bf5002d 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ You'll want to setup midi2 without default features to compile without the `std` feature. ```toml -midi2 = { version = "0.6.4", default-features = false, features = ["channel-voice2", "sysex7"], } +midi2 = { version = "0.6.5", default-features = false, features = ["channel-voice2", "sysex7"], } ``` ### Generic Representation diff --git a/midi2_proc/Cargo.toml b/midi2_proc/Cargo.toml index 48a67a9..4422491 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.4" +version = "0.6.5" edition = "2021" readme = "README.md" license = "MIT OR Apache-2.0" From 2fe7c6ecf3e5cf83d37df879c29d5e8ddae87b6f Mon Sep 17 00:00:00 2001 From: Ben Leadbetter Date: Thu, 16 Jan 2025 07:46:51 +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 e90c0db..7b660e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.6.5 +* docs: improve readme example + # 0.6.4 * fix: realtime bytes messages should have no data bytes