Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli fixes #17

Closed
infojunkie opened this issue Dec 3, 2020 · 9 comments
Closed

cli fixes #17

infojunkie opened this issue Dec 3, 2020 · 9 comments

Comments

@infojunkie
Copy link
Owner

  • Don't crash
  • Report conversion errors
@ericfont
Copy link

ericfont commented Dec 3, 2020

The moment when start processing a new song, would be nice for the cli to print something like "Processing song $n / $total: $songname"

@infojunkie
Copy link
Owner Author

infojunkie commented Dec 3, 2020

k that was easy 😄 plz try it now. I was able to run it against the 1350 jazz standards to the end, in ~2 mins. I need to go through the log to see what failed - but at least there's a log 😍

@ericfont
Copy link

ericfont commented Dec 4, 2020

nice. It is also able to complete all 1350 on my computer too. Maybe simply by virtue of breaking the output up on a song-by-song, that might have had the byproduct of removing the crash.

@ericfont
Copy link

ericfont commented Dec 4, 2020

I see from your commit, that the try/catch blocks are done on an individual song basis. So that is why the whole thing doesn't crash...good.

@ericfont
Copy link

ericfont commented Dec 4, 2020

Here are the problem scores:

ireal2musicxml: Error converting "All Or Nothing At All" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Brazilian Suite" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Bud Powell" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Cabin in the Sky" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Corcovado" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Crepuscule With Nellie" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Driftin'" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Ill Wind" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "In a Sentimental Mood" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Invitation" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "It's Only a Paper Moon" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Lover Man" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Memories Of You" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "My One And Only Love" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "On The Sunny Side Of The Street" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Polkadots And Moonbeams" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Prelude To A Kiss" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Speak Low" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Spring Can Really Hang You Up The Most" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "That's All" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "There's A Small Hotel" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Travels" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "Yesterday's Gardenias" TypeError: Cannot read property 'spaces' of undefined
ireal2musicxml: Error converting "You Took Advantage Of Me" TypeError: Cannot read property 'spaces' of undefined

@ericfont
Copy link

ericfont commented Dec 4, 2020

I believe those above are the only errors which result in crashes.

The majority of the remaining console output consist of either of the following likely benign/recoverable errors:

  1. [MusicXML.adjustChordDuration] Too many beats (4 out of 3) in measure 1. Removing some spaces...
  2. [MusicXML.convertChord] Unhandled alternate chord {"note":"C","modifiers":"^7","over":null,"alternate":null}
  3. [MusicXML.convertMeasures] Unhandled empty/alternate chord {"note":" ","modifiers":"","over":null,"alternate":{"note":"Ab","modifiers":"-7","over":null,"alternate":null}}
  4. [MusicXML.convertMeasures] Starting a new measure over existing measure ...
  5. [MusicXML.convertMeasures] Found non-empty orphan cell {"annots":[],"comments":[],"bars":")","spacer":0,"chord":null}.

(and there are some variants of that alternate chord error)

@infojunkie
Copy link
Owner Author

Thanks a lot for taking the time to go through the log - that's a great help. Yes, the messages starting with [MusicXML.XXX] are expected cases that indicate situations that may or may not need fixing, but that are not crashing the converter. I'll fix the TypeError: Cannot read property 'spaces' of undefined error first.

@infojunkie
Copy link
Owner Author

Fyi, Unhandled alternate chord means that iReal Pro specifies an alternate chord in small font (but does not play it), and I ignore this info. If you think it's important to show on your charts, please +1 #2

@ericfont
Copy link

ericfont commented Dec 4, 2020

Case 4 "[MusicXML.convertMeasures] Starting a new measure over existing measure" seems to be a genuine error which needs to be fixed. I've separated to a separate issue #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants