Melodeon.net Forums
Discussions => Tunes => ABC => Topic started by: Nick Ray on September 09, 2021, 01:12:51 PM
-
Is there a header entry in ABC to mark the tune as a personal 'favourite'?
I think this may be how the Tradmusician app provides a 'favourites' listing, but I can't work out how to add to this list.
Any suggestions please.
Many thanks
Nick
-
Nothing in the ABC standard, but you could put a code in an ABC comment.
Any line starting with a '%' character is treated as a comment and ignored by the ABC interpreter.
-
An alternative approach might be to use one of the standard ABC headers (say N:), and append a
fixed 'favourite' text, eg:
N:favourite
You could then use the %%select directive at the start of your file to pick out all the 'favourites',
eg:
%%select N:.*favourite
.
X:0
T:My Favourite Things
N:favourite
.
X:0
T:My Non-Favourite Things
N:turkey
.
It's a bit limited - %%select is an abctops feature, so you can only export to PDF. I guess it all
depends on exactly what you want to do? I'm currently trying to write a little program which
allows me to select tunes in an ABC file and write them out to a separate ABC file (as far as I
can see, abc2abc doesn't have this feature).
The %%select directive is described in Guido Gonzato's manual...
-
I'm currently trying to write a little program which
allows me to select tunes in an ABC file and write them out to a separate ABC file (as far as I
can see, abc2abc doesn't have this feature).
ABC Explorer can do that. 8)
-
ABC Explorer can do that. 8)
Aye. Unfortunately, it doesn't do quite what I want, in the way I want - neither does EasyABC or
any of the other ABC 'front-ends'...
-
Thanks for the suggestions guys.