This repository has no description
1use super::audio::Stem;
2use serde::{Deserialize, Serialize};
3use std::collections::HashMap;
4
5pub type TimestampMS = usize;
6
7pub trait Syncable {
8 fn new(path: &str) -> Self;
9 fn load(&self, progress: Option<&indicatif::ProgressBar>) -> SyncData;
10}
11
12#[derive(Debug, Default, Serialize, Deserialize)]
13pub struct SyncData {
14 pub stems: HashMap<String, Stem>,
15 pub markers: HashMap<TimestampMS, String>,
16 pub bpm: usize,
17}