From d7cefcd29a7ded32c7967e92cfa5c813c7d497a5 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 1 Feb 2023 19:03:50 +0100 Subject: [PATCH] Fix typos --- plugins/buffr_glitch/src/buffer.rs | 2 +- plugins/buffr_glitch/src/lib.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/buffr_glitch/src/buffer.rs b/plugins/buffr_glitch/src/buffer.rs index da2c90a5..7c668419 100644 --- a/plugins/buffr_glitch/src/buffer.rs +++ b/plugins/buffr_glitch/src/buffer.rs @@ -19,7 +19,7 @@ use nih_plug::prelude::*; use crate::MAX_OCTAVE_SHIFT; /// A super simple ring buffer abstraction that records audio into a buffer until it is full, and -/// then starts looping the already recorded audio. The recording starts hwne pressing a key so +/// then starts looping the already recorded audio. The recording starts when pressing a key so /// transients are preserved correctly. This needs to be able to store at least the number of /// samples that correspond to the period size of MIDI note 0. #[derive(Debug, Default)] diff --git a/plugins/buffr_glitch/src/lib.rs b/plugins/buffr_glitch/src/lib.rs index 5112d52a..bd9f3aac 100644 --- a/plugins/buffr_glitch/src/lib.rs +++ b/plugins/buffr_glitch/src/lib.rs @@ -234,7 +234,8 @@ impl Plugin for BuffrGlitch { let mut block_start: usize = 0; let mut block_end: usize = MAX_BLOCK_SIZE.min(num_samples); while block_start < num_samples { - // Keep procesing events until all events at or before `block_start` have been processed + // Keep processing events until all events at or before `block_start` have been + // processed 'events: loop { match next_event { // If the event happens now, then we'll keep processing events @@ -392,7 +393,7 @@ impl Voice { self.amp_envelope.reset(); } - /// Prepare playback on ntoe on. + /// Prepare playback on note on. pub fn note_on(&mut self, params: &BuffrGlitchParams, midi_note_id: u8, velocity: f32) { self.midi_note_id = Some(midi_note_id); self.velocity_gain = if params.velocity_sensitive.value() {