Skip to content

Commit 5324fab

Browse files
committed
Version 0.7.0
1 parent 16c64c6 commit 5324fab

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "midi-msg"
33
description = "A (eventually) complete representation of the MIDI 1.0 Detailed Specification and its many extensions and addenda, allowing for the serialization and deserialization of MIDI byte streams to and from a typed representation."
4-
version = "0.6.1"
4+
version = "0.7.0"
55
authors = ["Alex Charlton"]
66
edition = "2018"
77
readme = "readme.md"

readme.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Since the MIDI spec makes extensive use of non-byte-aligned integers, a Rust rep
1414
Add the following line to your Cargo.toml file:
1515

1616
```
17-
midi-msg = "0.6"
17+
midi-msg = "0.7"
1818
```
1919

2020
If you want to use midi-msg in a `no_std` environment, add this line instead:
2121

2222
```
23-
midi-msg = { version = "0.6", default-features = false, features=["sysex"/"file"] }
23+
midi-msg = { version = "0.7", default-features = false, features=["sysex"/"file"] }
2424
```
2525

2626
## Disabling system exclusive or MIDI File functionality
@@ -103,3 +103,11 @@ requirement on the use of `midir` when specifying this crate as a dependency.
103103

104104
## Contributing
105105
[Pull requests](https://github.com/AlexCharlton/midi-msg/pulls) for the features listed above as not-yet supported, for bug fixes (any omissions from the spec are considered bugs), or for documentation additions are most welcome, as are [bug reports](https://github.com/AlexCharlton/midi-msg/issues).
106+
107+
## Changelog
108+
- **0.7**
109+
- Added "simple" CC deserialization and made it the default. See [RecieverContext](https://docs.rs/midi-msg/latest/midi_msg/struct.ReceiverContext.html) and [ControlChange](https://docs.rs/midi-msg/latest/midi_msg/enum.ControlChange.html). This renames `ControlChange::Undefined` and `ControlChange::UndefinedHighRes` to `ControlChange::CC` and `ControlChange::CCHighRes`.
110+
- Added `is_*` predicates to `MidiMsg` (i.e. `is_note`).
111+
- Added `Track::len` and `Track::events` methods.
112+
- **0.6**
113+
- Added MIDI File (SMF) support

src/channel_voice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ pub enum ControlNumber {
361361
/// Used by [`ChannelVoiceMsg::ControlChange`] to modify sounds.
362362
/// Each control targets a particular [`ControlNumber`], the meaning of which is given by convention.
363363
///
364-
/// When deserializing and [`complex_cc`](crate::ReceiverContext ) is false (the default), only `ControlChange::CC` values are returned. "Simple" CC values represent the control parameter with a number, while "complex" variants capture the semantics of the spec. Simple can be turned into their complex counterparts using the `to_complex` method, or vis-versa using the `to_simple` and `to_simple_high_res` methods.
364+
/// When deserializing and [`complex_cc`](crate::ReceiverContext) is false (the default), only [ControlChange::CC] values are returned. "Simple" CC values represent the control parameter with a number, while "complex" variants capture the semantics of the spec. Simple can be turned into their complex counterparts using the [`to_complex`](ControlChange::to_complex) method, or vis-versa using the [`to_simple`](ControlChange::to_simple) and [`to_simple_high_res`](ControlChange::to_simple_high_res) methods.
365365
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
366366
pub enum ControlChange {
367367
/// "Simple" Control Change message.

src/file.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl Track {
381381
}
382382
}
383383

384-
/// Get the `TrackEvent` events in the track. Will be empty for an `AlienChunk`.
384+
/// Get the [`TrackEvent`] events in the track. Will be empty for an `AlienChunk`.
385385
pub fn events(&self) -> &[TrackEvent] {
386386
match self {
387387
Track::Midi(events) => events,

0 commit comments

Comments
 (0)