mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix typos
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user