Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1]   Go Down

Author Topic: ABC notation to indicate 'favourite' tunes  (Read 1345 times)

0 Members and 1 Guest are viewing this topic.

Nick Ray

  • Good talker
  • **
  • Offline Offline
  • Posts: 72
ABC notation to indicate 'favourite' tunes
« 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
Logged

Anahata

  • This mind intentionally left blank
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 6767
  • Oakwood D/G, C/F Club, 1-rows in C,D,G
    • Treewind Music
Re: ABC notation to indicate 'favourite' tunes
« Reply #1 on: September 20, 2021, 07:21:34 PM »

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.
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Roger Hare

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 949
  • Urmston, Lancashire, U.K. éééé
Re: ABC notation to indicate 'favourite' tunes
« Reply #2 on: September 21, 2021, 07:15:45 AM »

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...
« Last Edit: September 21, 2021, 07:23:01 AM by Roger Hare »
Logged
My ABC tune collections can be found here (GoogleDrive) & here (Dropbox).

For more about Manchester Morris, The Beech Band Folk Club or anything else,  please use the private messaging facility.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC notation to indicate 'favourite' tunes
« Reply #3 on: September 23, 2021, 09:43:47 PM »

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)
Logged
Squeezing on the Isle of Oxney, UK
Primo (Serenellini) D/G
Isis D/G
Hohner B/E, G/C, C/F, Bb/Eb G/C/F
Liliputs D/G (G scale), C/F, Bb/Eb, Albrecht Custom D/G (G scale)

Roger Hare

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 949
  • Urmston, Lancashire, U.K. éééé
Re: ABC notation to indicate 'favourite' tunes
« Reply #4 on: September 26, 2021, 05:26:54 AM »

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'...
Logged
My ABC tune collections can be found here (GoogleDrive) & here (Dropbox).

For more about Manchester Morris, The Beech Band Folk Club or anything else,  please use the private messaging facility.

Nick Ray

  • Good talker
  • **
  • Offline Offline
  • Posts: 72
Re: ABC notation to indicate 'favourite' tunes
« Reply #5 on: October 02, 2021, 11:30:18 AM »

Thanks for the suggestions guys.
Logged
Pages: [1]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal