#song #parser #deluxe #file #mp3 #usdx #ultra-star

usdx_parser

Parser for UltraStar Deluxe song files

4 releases

0.2.2 Apr 7, 2022
0.2.1 Apr 6, 2022
0.2.0 Apr 6, 2022
0.1.0 Apr 3, 2022

#27 in #mp3

Apache-2.0 OR MIT

11KB
254 lines

UltraStar Deluxe parser

About

This is a rust parser for USDX song files. Files are written as a plaintext files that contain data about the song and notes/lyrics.

Usage

Direct read from a file:

let song = Song::from_file("tests/test.txt").unwrap();
dbg!(song);

Read from a &str:

let text = std::fs::read_to_string("tests/test.txt").unwrap();
let song = Song::from_str(&text).unwrap();
dbg!(song);

Parse directly from String:

let text = r#"
#ARTIST:Three Days Grace
#TITLE:I Hate Everything About You
#MP3:i_hate_everything_about_you.ogg
#LANGUAGE:English
#BPM:100
#GAP:100
"#;
let song: Song = text.to_string().into();
dbg!(song);

Dependencies

~545KB