1
0
Fork 0

Fix typos

This commit is contained in:
Robbert van der Helm 2023-02-01 19:03:50 +01:00
parent 62f7f38a9e
commit d7cefcd29a
2 changed files with 4 additions and 3 deletions

View file

@ -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)]

View file

@ -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() {