PG Music Home
Posted By: Gary524 Opening an ABC file - 06/27/18 05:00 PM
When I import an ABC file, the chords are correct, but BIAB seems to not recognize the key signature and (for instance) a song in the key of D will have all the "F's" marked as naturals and will play them as naturals. Is this a known bug, or do I have a setting wrong in my copy?
Posted By: Kent - PG Music Re: Opening an ABC file - 06/27/18 05:55 PM
Hi Gary,

Band-in-a-Box is loading the key signature from the ABC files I've tested so far. Can you send the ABC file to support@pgmusic.com? I'll be happy to check it out.

Thanks
Kent
PG Music
Posted By: Kent - PG Music Re: Opening an ABC file - 06/28/18 05:55 PM
Hi Gary,

I'm not seeing anything wrong with this file, or how it's opening. The key is recognized correctly as D, and the melody includes F#s and Fs. Since the D scale does include F# but not F, the Fs are marked with a natural sign.

Thanks
Kent
PG Music
Posted By: Gary524 Re: Opening an ABC file - 07/08/18 12:23 AM
Kent,

In measure 1a of the BIAB file, the first 2 "F"s are noted as naturals. Compare that to the abc file I sent. The first two "F"s there have no accidentals so, in the key of D, they should be F#. You can clearly hear the discordant notes when you play the tune in BIAB.
Posted By: Kent - PG Music Re: Opening an ABC file - 07/09/18 05:54 PM
Hi Gary,

That's exactly how BIAB is playing them for me.

In the ABC file, the notes in bar 1 are written as follows: FF=F/^F3/

"=" before a note indicates a natural, "^" indicates a sharp.

So we have two Fs (which are automatically sharped by the key signature), then "=F" (which means F natural, and is how it was notated by Band-in-a-Box, with a natural sign), then ^F, which indicates a sharp, but plays a G since F is already sharp.

If I look at bar 1 in the Piano Roll, I see two F#s, then an F, then a G. Do you see something different?

I'm not saying that the notes don't sound discordant, but Band-in-a-Box does appear to be playing what was written in the ABC file, unless I'm missing something (which is entirely possible).

Thank you
Kent
PG Music
Posted By: Gary524 Re: Opening an ABC file - 07/10/18 10:56 AM
Kent,

Thank you for your ongoing help. I'm beginning to think it may be some setting on my end.

I'm attaching two jpegs showing what I see. The first is from the ABC file....2 F#s in the first full measure (set by the key), followed by an F natural, then another F#. The last F# should not play as a G...the previous natural F has overridden the key signature for the rest of the measure and to get back to an F#, it must appear as an accidental.

Nevertheless, the second picture shows what I'm seeing in the notation window of BIAB. In the first full measure there are two F naturals (instead of 2 F#) followed by an E (instead of an F natural), and then the F# (which should play as an F#, not a G).
[img]https://www.dropbox.com/s/7qho6uety8illup/Gracie%20abc.jpg?dl=0[/img]
[img]https://www.dropbox.com/s/dxb1n55a0gc02h4/Gracie%20BIAB.jpg?dl=0[/img]
Posted By: Gary524 Re: Opening an ABC file - 07/10/18 12:59 PM
I have found part of the issue. The ABC file had some formatting commands at the very top. Once I removed those and saved the file again, the import of the melody improved.

However, BIAB is still not recognizing that when an accidental occurs in a measure, it remains in effect through out the rest of the measure unless another accidental happens. BIAB is not recognizing that the F natural in measure 1A is still in effect when it reaches the final F in the measure, and the only way to get back to an F# is to note it as such. Instead, BIAB is interpreting this as an F## (or G). See the picture below for the notation window after I removed the formatting commands from the ABC file. [img]https://www.dropbox.com/s/palr0vvej83e9fv/BIAB%202.jpg?dl=0[/img]
Posted By: Kent - PG Music Re: Opening an ABC file - 07/10/18 04:10 PM
Hi Gary,

I see what you mean now.

If I remove the ^ before the last F, it goes in as an F natural, not an F#, and if I leave it in, it's a G. There's no way to return to F# after that natural. I'll report this.

That being said, the screenshot in your last comment is what I've been looking at this whole time. I'm not sure why you'd have seen what's in the second screenshot, with the two F naturals, E, and F#. I haven't seen that in any of my tests, and haven't deleted anything other than that one "^".

Thanks
Kent
PG Music
Posted By: Gary524 Re: Opening an ABC file - 07/11/18 12:20 AM
The screenshot with the two F naturals and E was made when I imported the ABC file with the formatting code in front of the music code. The ABC file looked like this:

%%%%topmargin 1 in.
%%scale 1
%%topspace 0
U: m = !breath!
U: h=!slide!
U: w=!wedge!
%%musiconly

X:111
T:Gracie's Tune
C:Elizabeth Durning
L:1/4
Q:1/4=120
%%scale .8
M:4/4
K:D
DE |: "D"FF=F/^F3/ | "A7"G2-G/(F/G/^G/) |"D"AA^G/A3/ |"G"B3/B/AG |"D"FF3/E/F | GFED |
"A7"E2(E3/F/ )| ECDE | "D"FF=F/^F3/ | "A7"G2-G/(F/G/^G/) |"D"AA^G/A3/ |"G"B3/B/AG | "D"FF3/E/F|"A7"GEDC |
"D"D2("G"D3/E/) |"D"D3/D/"D7"GA | "G"B3/B/_B=B | d2-d/(d/c/B/) | | "D"AAD/E/=F |F2-F/E/F/G/ | AA^G/A3/ |
"B7"BAGF | "E"E2E/_E/D/C/- | "A"C3/C/DE | "D"FF=F/^F3/ | "A7"G2-G/(F/G/^G/) | "D7"AA^G/A3/ | "G"B3/B/AG |
"D"FF3/E/F | "A7"GEDC|1 "D"D3/A,/ "G"B,/D/B, | "D"D3/a,,/DE:|2 "D"D3/A,/ "G"B,/D/B, | "D"D2Z |]

It was all the formatting code before the line X:111.
Posted By: Kent - PG Music Re: Opening an ABC file - 07/11/18 03:19 PM
Hi Gary,

I've left all of that text in the ABC file, and have been seeing what's in screenshot 3 this whole time. I honestly can't imagine how that bit of text would have transposed your melody notes down by a semitone, so I suspect something else changed that we're missing.

Are you running build 519? If not, please update then try opening that ABC file again.

http://www.pgmusic.com/support_windowsupdates.htm#519

Thanks
Kent
PG Music
Posted By: Gary524 Re: Opening an ABC file - 07/12/18 01:59 AM
Yes, I'm running 519.

While we're working on ABC notation in BIAB, I'm also noticing that BIAB is not recognizing any repeats or 1st and 2nd endings in the ABC notation. For instance, here's an ABC file of Chinese Breakdown with two repeats, neither of which is being recognized when loaded into BIAB.

X: 19
T:Chinese Breakdown
M:4/4
L:1/4
Q:170
K:D
A"D"|:ddBA|"D"FF2A|"D"dd BA|"Em"E3A|"A"cc BA|"A"cc2B|"A7"3AA/A/ BA|
"D"F2 -"A7"FA|"D"dd BA|"D"FF2E|\
"D7"D"d"D "c#"E"c"F|"G/b"G2GB|"Em"e2ed|"A7"cc2B|"A7"AA Bc|
"D"d4 "A7":|]"D"faf/2e/d|"D"ff2e|"D"ff/f/a g|"A"e2e2|"A"aa2a|"A"gg2B|"A7"ccBB|
"D"A2"A7"A2|"D"faf/2e/d|"D"ff2e|"D7"d"d"d"e"c"f#"=c|"G"B4|"Em"ee2c|"A7"cc2B|"A7"AA Bc|"D" d3d:|

© PG Music Forums