1
0
Fork 0

Add missing ranges in note enum documentation

This commit is contained in:
Robbert van der Helm 2022-11-07 22:45:22 +01:00
parent 1df1a646a0
commit 5851bc5a27

View file

@ -81,9 +81,9 @@ pub enum NoteEvent {
/// The voice's unique identifier. Setting this allows a single voice to be terminated if
/// the plugin allows multiple overlapping voices for a single key.
voice_id: Option<i32>,
/// The note's channel, from 0 to 16, and the note's MIDI key number, from 0 to 127.
/// The note's channel, from 0 to 16.
channel: u8,
/// The note's MIDI key number
/// The note's MIDI key number, from 0 to 127.
note: u8,
},
/// A polyphonic modulation event, available on [`MidiConfig::Basic`] and up. This will only be
@ -294,7 +294,7 @@ pub enum NoteEvent {
timing: u32,
/// The affected channel, from 0 to 16.
channel: u8,
/// The program number.
/// The program number, from 0 to 127.
program: u8,
},
}