use rust-jack from submodule

This commit is contained in:
🪞👃🪞 2024-12-29 00:00:42 +01:00
parent 4812012f39
commit c36802bad9
4 changed files with 30 additions and 11 deletions

View file

@ -11,7 +11,7 @@ backtrace = "0.3.72"
better-panic = "0.3.0"
clojure-reader = "0.1.0"
crossterm = "0.27"
jack = "0.13"
jack = { path = "../../rust-jack" }
livi = "0.7.4"
midly = "0.5"
once_cell = "1.19.0"

View file

@ -16,10 +16,11 @@ pub trait MidiRecordApi: HasClock + HasPlayPhrase + HasMidiIns {
fn monitor (&mut self, scope: &ProcessScope, midi_buf: &mut Vec<Vec<Vec<u8>>>) {
// For highlighting keys and note repeat
let notes_in = self.notes_in().clone();
let monitoring = self.monitoring();
for input in self.midi_ins_mut().iter() {
for (sample, event, bytes) in parse_midi_input(input.iter(scope)) {
if let LiveEvent::Midi { message, .. } = event {
if self.monitoring() {
if monitoring {
midi_buf[sample].push(bytes.to_vec());
}
update_keys(&mut notes_in.write().unwrap(), &message);