[−][src]Struct ot_utils::Slicer
The Slicer struct is the main struct of the library and it's responsable for parsing .wav files and generating the final .wav and .ot files
Fields
output_folder: String
Folder to which the final .ot and .wav files will be generated
output_filename: String
Name of the final .ot and .wav files (without extension)
sample_rate: u32
Sample rate of the audio samples
slices: Vec<OTSlice>
Vector of slices
tempo: u32
Tempo / BPM of the final .wav file
Implementations
impl Slicer
[src]
pub fn new() -> Self
[src]
Creates a new instance of the Slicer struct
pub fn add_file(
&mut self,
filepath: String
) -> Result<&'static str, &'static str>
[src]
&mut self,
filepath: String
) -> Result<&'static str, &'static str>
Appends new audio file (.wav) to the concatenated wav file and creates a new slice
pub fn generate_ot_file(&mut self) -> Result<&'static str, &'static str>
[src]
Generates the .ot file for the Octatrack and renames the concat .wav file to the same name as the .ot file
Auto Trait Implementations
impl RefUnwindSafe for Slicer
impl Send for Slicer
impl Sync for Slicer
impl Unpin for Slicer
impl UnwindSafe for Slicer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,