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] 2   Go Down

Author Topic: Thoughts on R: field  (Read 5028 times)

0 Members and 1 Guest are viewing this topic.

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Thoughts on R: field
« on: March 10, 2021, 12:43:05 PM »

I'm just working my way through a relatively large tune book.
It is divided up into sections 'Jigs', 'Quicksteps', '9/8 jigs' etc.

I want to keep the notated tunebook as a single file, so don't want to split it up into individual abc files of jigs, quicksteps etc but see the worth of indicating  the type ( jig, quickstep etc. ) when the abc tune is displayed as music.

From what my abc info says, the R: field should be how to indicate this information, but it doesn't seem to translate or be displayed when viewed as the music in my abc app ( ABCExplorer ).

Just wondering how others display this information so it can be seen displayed within the music.
cheers
Q
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: Thoughts on R: field
« Reply #1 on: March 10, 2021, 01:16:56 PM »

Hi Q,

Yes, you are correct, the R: field is not displayed either on-screen or when exporting to PDF.
The best way to display the type of tune is to duplicate it as an additional T: field on a separate line after the title T: fields, e.g.

X:1
T:Merch Megan
T:(Megan's Daughter)
T:Waltz
C:Traditional
S:Blodau'r Grug
M:3/4
K:G
|:d3/c/|B2 G2 G2|e4 d2|c2 B2 A3/G/|F2 D2d3/c/|
B2 G2 G2|e4 d2|c2 B2 A2|G4:|
d2|g2 ga ga|f2 fg fg|e2 ef ge|f2 d2 d2|
g2 ga bg|f2 fg af|eb ag fe|d4 d3/c/|B2 G2 G2|e4 d2|
c2 B2 A3/G/|F2 D2d3/c/|B2 G2 G2|e4 d2|c2 B2 A2|G4|]
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #2 on: March 10, 2021, 01:24:54 PM »

Thanks Steve for confirming the R: field isn't displayed.
Yes, I thought another T: field would work, seems a sensible option but I thought I'd check.
Right, onwards!
Cheers
Q
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: Thoughts on R: field
« Reply #3 on: March 10, 2021, 02:50:48 PM »

Just about to rush out of the door now, haven't time to check fully, but I think you'll be able to solve the problem using one or more of the %%infoline, %%infoname and %%writefields formatting commands.

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: Thoughts on R: field
« Reply #4 on: March 10, 2021, 03:00:03 PM »

Just about to rush out of the door now, haven't time to check fully, but I think you'll be able to solve the problem using one or more of the %%infoline, %%infoname and %%writefields formatting commands.

This is absolutely correct.

abcm2ps/abc2svg documentation confirms this.

Adding '%%infoline 1' and slightly altering Steve's code gives output with both Area and Rhythm. (Sample output attached.)

Code: [Select]
X:3
T:Merch Megan
T:(Megan's Daughter)
R:Waltz
A:Wales
C:Traditional
S:Blodau'r Grug
M:3/4
%%infoline 1
K:G
|:d3/c/|B2 G2 G2|e4 d2|c2 B2 A3/G/|F2 D2d3/c/|
B2 G2 G2|e4 d2|c2 B2 A2|G4:|
d2|g2 ga ga|f2 fg fg|e2 ef ge|f2 d2 d2|
g2 ga bg|f2 fg af|eb ag fe|d4 d3/c/|B2 G2 G2|e4 d2|
c2 B2 A3/G/|F2 D2d3/c/|B2 G2 G2|e4 d2|c2 B2 A2|G4|]
Logged
Semper idem, sed non eodem modo

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #5 on: March 10, 2021, 03:03:41 PM »

Ah so that's the way to make the R: field appear!
Oh blow...
Q
( just finished adding T:Jig to 130 tunes  :( )
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #6 on: March 10, 2021, 03:22:15 PM »

OK, thanks both to Stiamh and Mike.
Will take a break from my tunebook and decide which way to carry on.
I suppose in reality it doesn't matter as both methods give me the same result, albeit formally or informally if you see what I mean, though I do like to get things right!
Thanks for the information.

Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: Thoughts on R: field
« Reply #7 on: March 10, 2021, 05:17:24 PM »

I have to confess ignorance of the '%%infoline 1' command. :|bl

I suppose it depends on where you want the tune rhythm/genre to appear. Personally, I prefer to have it centred below the title rather than bunched up beneath the C: field entry which the '%%infoline 1' generates.

Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #8 on: March 10, 2021, 05:52:51 PM »

Yes I agree, so long as it is seen somewhere on the music layout to my mind it doesn't really matter.
It also saves me going back *again* to the first 140 tunes  :Ph
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

CAB

  • Mass Debater
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1147
    • Somerset Russets Village Band
Re: Thoughts on R: field
« Reply #9 on: March 10, 2021, 06:15:14 PM »

A bit late but... if you put tune type in the C field it appears neatly and discreetly on the right - always assuming there isn't actually a composer that is!  Fine for traditional tunes.

Edited to add - if you use  C field for composer and O field for tune type, the word "jig" appears in brackets after the composer.
« Last Edit: March 10, 2021, 06:20:52 PM by CAB »
Logged
Pas de lieu Rhone que nous

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: Thoughts on R: field
« Reply #10 on: March 10, 2021, 06:36:03 PM »

or you could put it in as a text block. Defaults to right alignment

before you start the actual notes code put

%%begintext
put rhythm type
%%endtext
Logged
Greg Smith
DG/GC Pokerwork, DG 2.4 Saltarelle, pre-war CF Hohner, Hohner 1040 Vienna style, old  BbEb Hohner that needs a lot of work.

ACCORDION, n. An instrument in harmony with the sentiments of an assassin. Ambrose Bierce

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #11 on: March 10, 2021, 06:40:59 PM »

Oh ok, seems like I have options, will go away and play with them.
Thanks peeps.
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: Thoughts on R: field
« Reply #12 on: March 10, 2021, 09:14:36 PM »

Thanks for Mike to the link to J-F Moine's documentation. Browsing the examples there, I discovered that we can do everything Q wants, and a good deal more, with the %%titleformat command.

http://moinejf.free.fr/abcm2ps-doc/titleformat.html

Generally I think it's not a good idea to use ABC header fields for anything other than their intended purpose. OK if you are never going to share tunes with anyone else and all that concerns you is an quick and dirty way of positioning some piece of information, I suppose.

But EasyABC, for example, allows you to quickly sort tunes in a collection based on any header field. So sorting on R: would put all your jigs together, and so on. Or you might want to sort by origin, or source, or book.... If you have irrelevant info in fields, this sorting feature is not going to be of much use.

And if you wanted to send a collection of tunes to someone else, they might be less than impressed by your use of such practices.  :|glug

Thrupenny Bit

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7232
  • happily squeezing away in Devon
Re: Thoughts on R: field
« Reply #13 on: March 10, 2021, 09:46:18 PM »

I can see that being able to use the sort facility can be a good idea to order tunes.
Might have to re-think this  ???
Logged
Thrupenny Bit

I think I'm starting to get most of the notes in roughly the right order...... sometimes!

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: Thoughts on R: field
« Reply #14 on: March 10, 2021, 09:53:40 PM »

You can always use R: to classify a tune by Rhythm and one of the other none specific options to display it on the score.
Logged
Greg Smith
DG/GC Pokerwork, DG 2.4 Saltarelle, pre-war CF Hohner, Hohner 1040 Vienna style, old  BbEb Hohner that needs a lot of work.

ACCORDION, n. An instrument in harmony with the sentiments of an assassin. Ambrose Bierce

Roger Hare

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 949
  • Urmston, Lancashire, U.K. éééé
Re: Thoughts on R: field
« Reply #15 on: March 11, 2021, 05:23:46 AM »

Just about to rush out of the door now, haven't time to check fully, but I think you'll be able to solve the problem using one or more of the %%infoline, %%infoname and %%writefields formatting commands.

Yes. If you use '%%writefields R 1', the Rhythm will appear as 'Rhythm: Jig' (say) below the music.
I couldn't get it work completely as advertised though, for example '%%writefields RA 1' failed to
produce an 'Area' label as specified with A:, when (according to how you read Guido Gonzato's
manual), it should work. However, according to the standard (2.1), A: is deprecated, maybe that's
why...
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.

CAB

  • Mass Debater
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1147
    • Somerset Russets Village Band
Re: Thoughts on R: field
« Reply #16 on: March 11, 2021, 08:22:38 AM »

Generally I think it's not a good idea to use ABC header fields for anything other than their intended purpose. OK if you are never going to share tunes with anyone else and all that concerns you is an quick and dirty way of positioning some piece of information, I suppose.

But EasyABC, for example, allows you to quickly sort tunes in a collection based on any header field. So sorting on R: would put all your jigs together, and so on. Or you might want to sort by origin, or source, or book.... If you have irrelevant info in fields, this sorting feature is not going to be of much use.

And if you wanted to send a collection of tunes to someone else, they might be less than impressed by your use of such practices.  :|glug

I'm afraid I'm not at all an abc purist.  I just use it as a tool for producing dots.  The end (output dots) justifies the means (cheating with the fields).  I'd never want to share the abc files, just the  staff notation.  I like the idea of being able to sort files but currently find it good enough to save them in appropriate folders.  I use abc Explorer - don't know how this differs from other programmes.  But lets me keep all my reels, say, in one folder so I can select any combination to generate a set on a page, which is all I ask.
Logged
Pas de lieu Rhone que nous

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: Thoughts on R: field
« Reply #17 on: March 11, 2021, 04:41:51 PM »

Who loves a purist? I just think that if you are using ABC to produce printed output via abcm2ps (via the command line or using EasyABC and similar front ends), it doesn't take much effort to explore the options provided by abcm2ps.

In reply to Greg's comment, if you look at the page on the %%titleformat command I linked to, you'll see that you don't need to use any field other than R: to display the tune type/rhythm information at the top of the page.

I played around with the %%titleformat, %%infoname and %%writefields to produce this, just as an example:

Code: [Select]
%%titleformat R-T C1,P- T O1,
%%infoname D "Recordings: "
%%infoname Z "Committed to dots by: "
%%infoname N "Interesting facts: "
%%infoname H "History: "
%%writefields DSZNH


X:42
T:PHOENIX, THE
T:Hennessy's
R:Reel
C:Dave Hennessy
O:Ireland (Cork)
S:Composer
D:Any Old Time, "Phoenix" - Arcady, "After the Ball"
H:Named after the famous music pub in Cork
N:Recorded by Any Old Time in E-maj/C#-min
Z:Steve Jones 2017-10-16
P:AABB
M:C|
K:D
P:A
de|f2df edcA|BAGB AGFA|f2df edcA|BAGB A2de|
f2df edcA|BAGB AGFE|Dddc defd| edce d2:|
P:B
ce|:B3A Bcde|f2df edcA|B3A Bcde|f2ef d2cd|
B2Fd B2Fd|BFBd cBAc|BBBA Bcde|1 fedc B3A:|2 fedc d2|]

PDF output from EasyABC attached

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: Thoughts on R: field
« Reply #18 on: March 11, 2021, 05:05:07 PM »

In reply to Greg's comment, if you look at the page on the %%titleformat command I linked to, you'll see that you don't need to use any field other than R: to display the tune type/rhythm information at the top of the page.

Fair enough. I need to understand this solution better. It looks like the appropriate one.
Logged
Greg Smith
DG/GC Pokerwork, DG 2.4 Saltarelle, pre-war CF Hohner, Hohner 1040 Vienna style, old  BbEb Hohner that needs a lot of work.

ACCORDION, n. An instrument in harmony with the sentiments of an assassin. Ambrose Bierce

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: Thoughts on R: field
« Reply #19 on: March 11, 2021, 05:25:29 PM »

I played around with the %%titleformat, %%infoname and %%writefields to produce this, just as an example:


Doesn't seem to work in ABC Explorer, none of the info in your PDF appears in the preview and the tune cannot be saved because it doesn't start with X:


Should the %% commands go into the file header rather than the tune text? If so that wouldn't work for me as I like my abc tunes to be stand alone to make them portable. Try as I may I can't get the commands to work within the tune header even when it's exported to PDF
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)
Pages: [1] 2   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