1
0
Fork 0

Mention NoteEvents being zero indexed

This commit is contained in:
Robbert van der Helm 2022-04-11 19:47:46 +02:00
parent c96e61e321
commit 1f8db9d9c2
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,8 @@ pub enum MidiConfig {
/// [`Plugin::MIDI_INPUT`][crate::prelude::Plugin::MIDI_INPUT]. Also check out the
/// [`util`][crate::util] module for convenient conversion functions.
///
/// All of the timings are sample offsets withing the current buffer.
/// All of the timings are sample offsets withing the current buffer. All sample, channel and note
/// numbers are zero-indexed.
#[derive(Debug, Clone, Copy, PartialEq)]
#[non_exhaustive]
pub enum NoteEvent {

View file

@ -21,8 +21,7 @@ use crate::param::internals::Params;
/// - Sidechain inputs
/// - Multiple output busses
/// - Special handling for offline processing
/// - Outputting MIDI events from the process function (you can output parmaeter changes from an
/// editor GUI)
/// - MIDI SysEx and MIDI2 for CLAP, note expressions and MIDI1 are already supported
#[allow(unused_variables)]
pub trait Plugin: Default + Send + Sync + 'static {
const NAME: &'static str;