Skip to content

Commit

Permalink
Apparently this is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
MyBlackMIDIScore committed Oct 6, 2024
1 parent c9724e4 commit 80353a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions realtime/src/event_senders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ impl RealtimeEventSender {
)));
}

/// Changes the range of velocities that will be ignored.
pub fn set_ignore_range(&mut self, ignore_range: RangeInclusive<u8>) {
for sender in self.senders.iter_mut() {
sender.set_ignore_range(ignore_range.clone());
Expand Down
7 changes: 0 additions & 7 deletions realtime/src/realtime_synth.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::{
collections::VecDeque,
ops::RangeInclusive,
sync::{
atomic::{AtomicU64, Ordering},
Arc, Mutex,
Expand Down Expand Up @@ -334,12 +333,6 @@ impl RealtimeSynth {
let size = calculate_render_size(sample_rate, render_window_ms);
data.buffered_renderer.lock().unwrap().set_render_size(size);
}

/// Changes the range of velocities that will be ignored.
pub fn set_ignore_range(&mut self, ignore_range: RangeInclusive<u8>) {
let data = self.data.as_mut().unwrap();
data.event_senders.set_ignore_range(ignore_range);
}
}

impl Drop for RealtimeSynth {
Expand Down

0 comments on commit 80353a3

Please sign in to comment.