Giter VIP home page Giter VIP logo

cue_sheet's People

Contributors

leoschwarz avatar mistydemeo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cue_sheet's Issues

Improve docs

  • document everything
  • write a better readme
  • additional examples

doesn't treat newlines as command termination

Quoting from the hydrogen audio wiki linked in the docs:

Line breaks must be used between commands

Unfortunately, it appears that this library currently doesn't consider newlines when parsing, resulting in it failing to parse cue sheets that (for example) include commands like REM DATE 2011-12-22.

Example not working: no method named `unwrap`

I added this under [dependencies] in Cargo.toml: cue_sheet = "0.2.0"

$ wget https://raw.githubusercontent.com/leoschwarz/cue_sheet/master/examples/to_mb.rs
$ cargo build
...
either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
$ mv to_mb.rs main.rs
$ cargo build                                                                                                                                                                                                                                     ✭master 
   Compiling music v0.1.0 (/home/michael/rust/music)                                                                                                                                                                                                                                      
error[E0599]: no method named `unwrap` found for type `std::string::String` in the current scope                                                                                                                                                                                          
  --> src/main.rs:48:29                                                                                                                                                                                                                                                                   
   |                                                                                                                                                                                                                                                                                      
48 |             t.clone().title.unwrap(),                                                                                                                                                                                                                                                
   |                             ^^^^^^                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                          
error: aborting due to previous error                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                          
For more information about this error, try `rustc --explain E0599`.                                                                                                                                                                                                                       
error: Could not compile `music`.                                                                                                                                                                                                                                                         

To learn more, run the command again with --verbose.

Parsing stops as soon as the first pregap is encountered

I have a CD-ROM disc whose second track has a pregap (sample CUE sheet at the end of the end of this post). It looks like parsing stops as soon as that's encountered; the resulting parsed Tracklist has only two tracks, and the second track has no indices. I assume that's because of the explicit break here: https://github.com/leoschwarz/cue_sheet/blob/master/src/tracklist.rs#L191

FILE "disc.img" BINARY
  TRACK 01 MODE1/2352
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    PREGAP 00:02:00
    INDEX 01 58:41:36
  TRACK 03 AUDIO
    INDEX 00 61:06:08
    INDEX 01 61:08:08

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.