Giter VIP home page Giter VIP logo

Comments (6)

aspiers avatar aspiers commented on June 27, 2024

I suspect this is probably because ly2video doesn't expect the path to the .ly file to contain any : characters, but since you're on Windows, it begins with C:. This should be a simple fix - can you try changing the second line of these two in cli.py:

                     # file:line:char
                     '([^:]+): *(\d+):(\d+)'

to

                     # file:line:char
                     '(.+): *(\d+):(\d+)'

and then try again?

from ly2video.

miifanboy avatar miifanboy commented on June 27, 2024

I tried it but it still gives me the same error with the same values

Edit:

The problem occurs on the line i marked with * so I think the problem is with the file regex:

\include "dump-spacetime-info.ly"
\include "dump-spacetime-info.ly"
\version "2.16.0"
\paper {
   page-breaking = #ly:one-line-breaking
   top-margin    = 83\mm
   bottom-margin = 83\mm
   left-margin   = 46\mm
   right-margin  = 46\mm
}
#(set-global-staff-size 20)

\header {
   tagline = ##f composer = ##f
}

music = \new Voice {
  \relative c' {
    <a c e>1 q <f a c>2 q            ************************************************************************
  }
}

\score {
 \unfoldRepeats
  \music
  \layout { }
  \midi { }
}

from ly2video.

aspiers avatar aspiers commented on June 27, 2024

Did you reinstall the updated code with pip install after editing it?

from ly2video.

miifanboy avatar miifanboy commented on June 27, 2024

Yes, I tried that it didn't work but then I removed '$' in

# file:line:char
'(.+): *(\d+):(\d+)'
'$', line)

so the final version would be:

# file:line:char
'(.+): *(\d+):(\d+)'
,line)

after that, Timidity++ gave errors so I had to port it to fluidsynth instead, now it can generate sound and video for normal notation but i am getting errors when i try to use guitar tableture instead. I can close this issue and create a seperate issue for that if you prefer keeping things clean.

ERROR: Didn't find any notes; something must have gone wrong with the use of dump-spacetime-info.

from ly2video.

aspiers avatar aspiers commented on June 27, 2024

If the final $ was causing problems then I suspect it could be a Windows CR/LF line-ending issue. Perhaps changing to \r?$ would work?

Let's keep this open until we figure out exactly what the parsing issue was. And yes please, let's have separate issues filed for each issue found - thanks!

from ly2video.

aspiers avatar aspiers commented on June 27, 2024

@miifanboy This may be fixed in master now; please can you test?

from ly2video.

Related Issues (20)

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.