From 7ae410158d94a2824ef632598264f70836206555 Mon Sep 17 00:00:00 2001 From: julien Date: Fri, 6 Sep 2024 21:34:30 +0200 Subject: [PATCH] Arp interface is public --- src/arp.rs | 12 ++---------- src/lib.rs | 1 + 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/arp.rs b/src/arp.rs index db570ba..98e20a3 100644 --- a/src/arp.rs +++ b/src/arp.rs @@ -1,14 +1,6 @@ -use crate::DeteTrack; -use crate::MidiNote; -use crate::Note; +use crate::{DeteTrack, MSeqError, MidiNote, Note}; use std::path::Path; -use thiserror::Error; -#[derive(Error, Debug)] -pub enum ArpError { - #[error("Failed to read arp file [{}: {}]\n\t{0}", file!(), line!())] - Reading(#[from] csv::Error), -} #[derive(Default, Clone, Copy)] pub enum ArpDiv { #[default] @@ -46,7 +38,7 @@ impl DeteTrack { root: Note, channel_id: u8, name: &str, - ) -> Result { + ) -> Result { let mut rdr = csv::Reader::from_path(filename)?; let pattern = rdr .deserialize::() diff --git a/src/lib.rs b/src/lib.rs index ad7f895..d177afe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ mod tests; mod track; // Interface +pub use arp::ArpDiv; pub use conductor::Conductor; pub use midi_connection::MidiConnection; use midi_connection::{MidiError, MidirConnection};