Melodeon.net Forums

Discussions => Teaching and Learning => Topic started by: Disparate Dan on June 23, 2024, 07:35:06 PM

Title: ABC conversion problem
Post by: Disparate Dan on June 23, 2024, 07:35:06 PM
I'm trying to convert the ABC of "Jack's Waltz" as performed here  https://www.youtube.com/watch?v=kCpWqagEpHU&ab_channel=romanchi47  (https://www.youtube.com/watch?v=kCpWqagEpHU&ab_channel=romanchi47) by using Michael Eskins' ABC tools so I can produce both the printed dots and a reference soundfile.  What I have is:-

X:1

T:Jack's Waltz [G]

C:Australia (Newport Bush Orchestra)

Q:1/4=110

M:3/4

L:1/4

K:Gmaj

"G"B3|ded|"D"c3|A2B|c2d|efe|"G"d3|B2d|g3|"D"fgf|

"C"e3|"G"d3|B3|1 BAG|"D"Afe|dcA:|2 "D"A3|"G"G3-|G3||

"G"bg z/2 e/2|d3|bg z/2 e/2|d3|"D"f e/2f/2e/2f/2|c3|fed|"G"B3|bgz/2e/2|d3|bgz/2e/2|d3|

"D"f e/2f/2e/2f/2|c2A|"G"G3-|G3||"G"B>AB|GAB|"D"c>Bc|A3|c>AB|ABc|"G"d>ed|B3|

d>ed|Bcd|"C"e>fe|"D"A2G|Ffe|dcA|"G"G3-|G3||

but it's not working.  ABC tools don't seem to recognise that, so can any ABC wizard please tell me if something's obviously wrong with it or missing?
Title: Re: ABC conversion problem
Post by: penn on June 23, 2024, 07:45:46 PM
I think you need to remove all the carriage return. It fails for me in Tunebook until I delete them.
Title: Re: ABC conversion problem
Post by: Disparate Dan on June 23, 2024, 07:59:30 PM
I think you need to remove all the carriage return. It fails for me in Tunebook until I delete them.

Thanks, but having no grandkid handy of whom I can enquire, I have to ask ... what are the carriage returns?
Title: Re: ABC conversion problem
Post by: Lester on June 23, 2024, 08:06:37 PM
X:1
T:Jack's Waltz [G]
C:Australia (Newport Bush Orchestra)
Q:1/4=110
M:3/4
L:1/4
K:Gmaj
"G"B3|ded|"D"c3|A2B|c2d|efe|"G"d3|B2d|g3|"D"fgf|
"C"e3|"G"d3|B3|1 BAG|"D"Afe|dcA:|2 "D"A3|"G"G3-|G3||
"G"bg z/2 e/2|d3|bg z/2 e/2|d3|"D"f e/2f/2e/2f/2|c3|fed|"G"B3|bgz/2e/2|d3|bgz/2e/2|d3|
"D"f e/2f/2e/2f/2|c2A|"G"G3-|G3||"G"B>AB|GAB|"D"c>Bc|A3|c>AB|ABc|"G"d>ed|B3|
d>ed|Bcd|"C"e>fe|"D"A2G|Ffe|dcA|"G"G3-|G3||

That should work
Title: Re: ABC conversion problem
Post by: Disparate Dan on June 23, 2024, 08:20:27 PM
... That should work

And indeed it does.  Thank you, Lester.  I am once again much obliged for your assistance.
Title: Re: ABC conversion problem
Post by: penn on June 23, 2024, 08:28:31 PM
I think you need to remove all the carriage return. It fails for me in Tunebook until I delete them.

Thanks, but having no grandkid handy of whom I can enquire, I have to ask ... what are the carriage returns?
It might be your grandmother you’d need to ask? Carriage return is an archaic term from typewriters. I meant the extra enter / returns  (presumably you’re using a computer or phone? ) after every line. Youre only allowed one for each line.
Title: Re: ABC conversion problem
Post by: Michael Eskin on June 24, 2024, 01:54:33 AM
What a lovely tune!

Here it is live in my ABC Transcription Tools:

https://michaeleskin.com/abctools/abctools.html?lzw=BoLgjAUAKiBSCGBjA1gcgM4AIDq8A2ALgF6YDaA4gLoQDCIAggK7oEBO+AlvJgBQByAUwDuABwD2rApgBCzABaYA8q0RyBLdgEoIARXAB6ACwBeMACYADBACyIAMxGIAGQOGIAaRDkAtvABWEACkmADKYowAdgAmAGZiEQQgmDHwBABGYgCeQfBpiH7oAPro4dFxCcmpGdnB1gJ4YlGZmCKsYgDm7N5J9IjhLByImOTs0ZgAClwRYkGB1gCSACLzLW2d8N6YVsHS8OhYrR1dPX3MBIPDo1ETUzOBc0sraXvoh+1bswvLmM-7AG5iPCYABsbmCNDkEiiBzWx0wvX65yGI3gY0mqLuD2+qihbw+9y+KxxrCiAKBdjMEAAROQqdI7AAfKICKIMqmLKmIRn0MzSBmIMysgQxARs2lRRnSQUM9qM9lUmLtGIM6k0KkCOXiyWMsAyejkNkc+gipmIeggBlmTDy+iaml2AC0DPIjJVNKpaXeRH0VoEPqZjM9mG9vv9EsNCswfrMMR90djZn5jJFrPd9IZnpD0YDGfaWbDjOpHJiUZ9Cfj-oF9DF9qdLoZNekAD56HzyK2I4gm9JEAzbfyW3zW733VEmyyGemIGOJz3U2qBE2TTazAaAGImqJmmsuuuM6hAA&format=noten&ssp=19&name=Jacks_Waltz_G&play=1
Title: Re: ABC conversion problem
Post by: Roger Hare on June 24, 2024, 05:41:55 AM
...It fails for me in Tunebook until I delete them.
Ditto EasyABC and ABCExplorer. Blank lines within a tune are best avoided, I think...
Title: Re: ABC conversion problem
Post by: Anahata on June 24, 2024, 07:21:47 AM
Blank lines within a tune are best avoided, I think...

Indeed so - I'm pretty sure it's part of the definition of ABC that a blank line marks the end of the tune...

It's quite likely in this case, with double newlines all the way though, that this was the result of an inaccurate conversion between computer systems that represent newlines differently. Windows, Unix/Linux and older Mac systems, for example.
Title: Re: ABC conversion problem
Post by: Disparate Dan on June 24, 2024, 07:50:14 AM
It might be your grandmother you’d need to ask? Carriage return is an archaic term from typewriters. I meant the extra enter / returns  (presumably you’re using a computer or phone? ) after every line. Youre only allowed one for each line.

I'm actually old enough to have grown up with typewriters, so I do know about carriage return (and indeed why at one time some girls' left breasts were bigger than their right, but I digress).  What threw me is that I don't recognise anything in that ABC as a "return" symbol. 
Title: Re: ABC conversion problem
Post by: Roger Hare on June 24, 2024, 08:07:57 AM
Indeed so - I'm pretty sure it's part of the definition of ABC that a blank line marks the end of the tune...
Yup! I did check 1) Guido Gonzato's manual; 2) The ABC language specification (v2.1) before making my earlier post.

They are both a little 'ambiguous' in that while they don't explicitly forbid the use of blank lines, they sort of imply that it's probably not
a good idea to use them...
Title: Re: ABC conversion problem
Post by: nigelr on June 24, 2024, 11:30:56 AM
Indeed so - I'm pretty sure it's part of the definition of ABC that a blank line marks the end of the tune...
Yup! I did check 1) Guido Gonzato's manual; 2) The ABC language specification (v2.1) before making my earlier post.

They are both a little 'ambiguous' in that while they don't explicitly forbid the use of blank lines, they sort of imply that it's probably not
a good idea to use them...
From the ABC spec:

2.2.1
An abc tune itself consists of a tune header and a tune body, terminated by an empty line or the end of the file.

2.2.4
Empty lines (also known as blank lines) are used to separate abc tunes, free text and the file header. They also aid the readability of abc files.
Lines that consist entirely of white-space (space and tab characters) are also regarded as empty lines.

SimplePortal 2.3.5 © 2008-2012, SimplePortal