Skip to content

Uliboooo/track2line_lib

Repository files navigation

track2line lib

this lib version is 0.1.x

about transcription mod

this is still doesn't work properly.therefore, if you use this, turn on "experimental" in feature flag.

tools

known Issues

  • maybe don't work when empty line file is more than one file. #1

usage

track2line_lib = { git = "https://github.com/Uliboooo/track2line_lib", tag = "0.3.0" }
use track2line_lib;

fn main() {
    let path = PathBuf::from("target_folder_path");
    let mut sets = track2line_lib::PathSets::new(&path, "wav", "txt").unwrap();

    // print list of path to be changed(not renamed yet)
    println!("{}", sets.check().unwrap());

    // rename
    sets.rename().unwrap();
}

use config (feature)

Cargo.toml

[dependencies]
track2line_lib = { git = "https://github.com/Uliboooo/track2line_lib", tag = "v0.8.0", features = ["config"]}
use track2line_lib;

// use default config(wav, txt)
let default_config: Config = track2line_lib::config::Config::default();

//save
default_config.save()

// load
// もしconfigファイルがない場合、デフォルト設定でファイルを作成します
let setting = track2line_lib::config::Config::load();

description

this is a library for converting track files to line files.

About

the core functions library of track2line.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published