Skip to content

Commit

Permalink
Arp interface is public
Browse files Browse the repository at this point in the history
  • Loading branch information
jeudine committed Sep 6, 2024
1 parent 064b51a commit 7ae4101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/arp.rs
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -46,7 +38,7 @@ impl DeteTrack {
root: Note,
channel_id: u8,
name: &str,
) -> Result<Self, ArpError> {
) -> Result<Self, MSeqError> {
let mut rdr = csv::Reader::from_path(filename)?;
let pattern = rdr
.deserialize::<MidiNote>()
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 7ae4101

Please sign in to comment.