Fix typos
This commit is contained in:
parent
62f7f38a9e
commit
d7cefcd29a
|
@ -19,7 +19,7 @@ use nih_plug::prelude::*;
|
||||||
use crate::MAX_OCTAVE_SHIFT;
|
use crate::MAX_OCTAVE_SHIFT;
|
||||||
|
|
||||||
/// A super simple ring buffer abstraction that records audio into a buffer until it is full, and
|
/// 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
|
/// 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.
|
/// samples that correspond to the period size of MIDI note 0.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
|
|
|
@ -234,7 +234,8 @@ impl Plugin for BuffrGlitch {
|
||||||
let mut block_start: usize = 0;
|
let mut block_start: usize = 0;
|
||||||
let mut block_end: usize = MAX_BLOCK_SIZE.min(num_samples);
|
let mut block_end: usize = MAX_BLOCK_SIZE.min(num_samples);
|
||||||
while block_start < 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 {
|
'events: loop {
|
||||||
match next_event {
|
match next_event {
|
||||||
// If the event happens now, then we'll keep processing events
|
// If the event happens now, then we'll keep processing events
|
||||||
|
@ -392,7 +393,7 @@ impl Voice {
|
||||||
self.amp_envelope.reset();
|
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) {
|
pub fn note_on(&mut self, params: &BuffrGlitchParams, midi_note_id: u8, velocity: f32) {
|
||||||
self.midi_note_id = Some(midi_note_id);
|
self.midi_note_id = Some(midi_note_id);
|
||||||
self.velocity_gain = if params.velocity_sensitive.value() {
|
self.velocity_gain = if params.velocity_sensitive.value() {
|
||||||
|
|
Loading…
Reference in a new issue