Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Hugh Taylor on December 29, 2021, 12:46:06 PM

Title: Why not showing 4 bars per line
Post by: Hugh Taylor on December 29, 2021, 12:46:06 PM
I can't seem to display this abc of the well known tune The Cream Pot with 4 bars per line. I'm using ABCcExplorer 1.6.1
Any advice?
Thanks
Hugh

X:1
T:Cream Pot, The
T:aka The Kern Staff
T:aka The Accomplished Maid from the comic opera The Accomplished Maid (1767)
T:by Italian dramatist Carlo Goldoni, with music by Niccolò Piccinni
T:performed in Covent Garden
T:aka Miss Grace Hay’s Delight - Neil Gow's renaming of the English original
M:6/8
L:1/8
S:William Vickers c1770 - Great Northern Tune Book
S:Johnny Adams <j.adams:salford.ac.uk> tradtunes 2002-12-23
K:G
|: G2 A B2 c | dBd efg | G2 A B2 c | dBG AFD |
E2 C CEG | F2 D D2 c| BdB cAF | G3 A3 :|
K:D
|: d2 e f2 g | afd ecA | faf ege | fdf ecA |
B2 G GBd |! c2 A A2 g | faf gec |1 (d3 d2) A :|2 d3 =c3 |
K:G
|: B2 g gdB | B2 g gdB |! A2 A ABc |BAG AFD |
E2 C CEG | F2 D D2 c | BdB cAF | (G3 G3) :|
Title: Re: Why not showing 4 bars per line
Post by: Lester on December 29, 2021, 01:10:48 PM
I use EasyABC but it was showing the same problem.
The tune has some spurious ! characters see below in red


|: d2 e f2 g | afd ecA | faf ege | fdf ecA |
B2 G GBd |!
c2 A A2 g | faf gec |1 (d3 d2) A :|2 d3 =c3 |
K:G
|: B2 g gdB | B2 g gdB |!
A2 A ABc |BAG AFD |
E2 C CEG | F2 D D2 c | BdB cAF | (G3 G3) :|

Once deleted the correct number of bars works
Title: Re: Why not showing 4 bars per line
Post by: Anahata on December 29, 2021, 01:39:21 PM
I've seen that before. The ABC interpreter abcm2ps  picks up the '!' character and seems to interpret it as a signal to ignore line breaks in the ABC as a line break in the rendered music (the usual ABC standard) and instead apply the rule used by ABC2WIN.EXE, which puts in a line break where the '!' is encountered and ignores ABC newlines.

There is still some legacy ABC code around with those '!'s in it, including copies of earlier Village Music Project work, though I think that's all been edited to standard ABC on the VMP web site itself.
It's incredibly frustrating until you know the cause and what to look for.
Title: Re: Why not showing 4 bars per line
Post by: Hugh Taylor on December 29, 2021, 01:56:17 PM
Thanks Lester.
I hadn't noticed the '!' mark until you pointed it out. All ok now.
Title: Re: Why not showing 4 bars per line
Post by: Roger Hare on December 29, 2021, 05:58:00 PM
...There is still some legacy ABC code around with those '!'s in it...It's incredibly frustrating
until you know the cause and what to look for.

I've also seen '!'s (apparently) used as bar-lines. It's not common, but at the same time,
it looks systematic, and is too frequent to be a 'mistake'.

My other favourite is files with '+..+' rather than '[..]' to denote chords (multi-headed notes,
if you prefer). I just spent an hour dealing with that one, and I ain't got 'em all yet...

I got sick of it a while back, and I now have a piece of software which scans a file and picks
up all instances of unbalanced '!'s, and '+..+'s, etc. to give me a clue where to look for the
little buggers. It also helps in picking up instances where I am expecting (but not getting)
4-bars-per-line...
Title: Re: Why not showing 4 bars per line
Post by: Anahata on December 29, 2021, 11:05:20 PM
I've also seen '!'s (apparently) used as bar-lines. It's not common, but at the same time,
it looks systematic, and is too frequent to be a 'mistake'.

My other favourite is files with '+..+' rather than '[..]' to denote chords (multi-headed notes,
if you prefer). I just spent an hour dealing with that one, and I ain't got 'em all yet...
There's a perfectly good symbol for a bar line already, so if a piece of software was designed to use '!' for bar lines that simply perverse. I've never heard of that being part of the standard.

The +..+ notation was, I think, in an earlier ABC standard, after a software package implemented it and it was considered useful, and the notation was then changed for some (hopefully good) reason.

Title: Re: Why not showing 4 bars per line
Post by: Roger Hare on December 30, 2021, 05:56:37 AM
[1] There's a perfectly good symbol for a bar line already, so if a piece of software was designed to use '!' for bar lines that
simply perverse.  I've never heard of that being part of the standard.

[2] The +..+ notation was, I think, in an earlier ABC standard, after a software package implemented it and it was considered
useful, and the notation was then changed for some (hopefully good) reason.

[1] I'd (almost) started to wonder if there was an early 'dialect' of ABC which used '!' for a bar line in some circumstances.
It's difficult to try and work out what exactly was intended (assuming it's not simply a typing error).
Thank you for reassuring me that this was not part of the language...

[2] There seems to be a slightly convoluted 'trail' covering the (changing) use of '+..+' and '[..]'. I think I've got it sorted now,
and to avoid any confusion, I always convert legacy files to 'modern' usage...
Title: Re: Why not showing 4 bars per line
Post by: Pete Dunk on December 30, 2021, 10:47:39 AM
In-line commands which are currently written in the format !segno! were previously written as +segno+. Long since deprecated but I think some software may still support it.


I’ve only seen the exclamation point ! on its own used as a hard return at the end of a line of music, never as a replacement of the pipe symbol used for bar lines.
Title: Re: Why not showing 4 bars per line
Post by: Roger Hare on December 30, 2021, 05:06:46 PM
...I’ve only seen the exclamation point ! on its own used as a hard return at the end of a line
of music, never as a replacement of the pipe symbol used for bar lines.
I just spent an hour or so dealing with these. It's weird - they are often at the start of a line,
as if they are intended to be bar lines. Even knowing what (I think) i 'know' about earlier,
slightly different syntax for ABC files, I can't for the life of me work out what may have been
intended by the original transcriber. I'm coming round to the idea that somehow, such files
have got 'scrambled' in some way on their long journey around the internet...

As I said, fixing these, quite often seems to fix the 'not getting 4 lines to a bar' problem...
SimplePortal 2.3.5 © 2008-2012, SimplePortal