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: changing line length  (Read 4590 times)

0 Members and 1 Guest are viewing this topic.

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
changing line length
« on: March 10, 2020, 07:36:02 PM »

I've got a tune I want to score in 4 bars per line.
However, it starts with a two bar intro that  I want to have by itself, on the first line.
I want the bar width on the two bar line to be consistent with the width of the bars on the four bar lines
but, they stretch themselves out to the full page width.
I have tried using %%right margin 12cm, that gives me the first line I want,  but I can't get it to change back to full width lines with a statement within the coding. Also, it tends to throw my editor into a spin when I try to create a pdf.

Is there a right way to do this?
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: changing line length
« Reply #1 on: March 10, 2020, 09:19:16 PM »

Add:

%%stretchstaff 0

to the headers.

Please note that it is a zero not a capital O. The following tune is a bit of nonesense, I just copied and pasted two bars at the begining to illustrate the point. Please note this will probably not work using phone or tablet apps, they tend to ignore %% commands. It certainly works in ABC Explorer.

X:78
T:Beaux of London City - Adderbury
T:Shooting
M:6/8
L:1/8
A:Adderbury
%%titlefont Helvetica 22
%%subtitlefont Helvetica 16
%%composerfont Helvetica
%%partsfont Arial 20
%%partsbox
%%gchordfont Arial 16
%%barnumbers 1
%%MIDI program 73 % flute
%%MIDI chordprog 1 % piano
%%stretchstaff 0
V:1 gchord=down
V:2
P:A(AB)6
K:G
V:1
P:A
"G"G2G B>AG| Bd2-d2D|
D|"G"G2G B>AG| Bd2-d2D|G2 G B2"D" A| "G" G3-G2D|
G>GG B>AG| Bd2-d2D|"C"G>DG "D"B2A| "G"G3-G2|
P:B
|:z|"G" d2c B>AG| Bd2-d3 |"D7"A2 A A2"G"B| "C"c3-c3 |
"G"d2c B>AG| "Bm"Bd2-d2D|"C"G>DG "D7"B2A| "G"G3-G2:|
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)

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #2 on: March 10, 2020, 10:13:15 PM »

Add:

%%stretchstaff 0

to the headers...

That works great for the 2 bar line, but it leaves the 4 bar lines at random lengths. I want them justified.

Can it be easily cancelled in the coding for subsequent lines?

I want:

score|score|
score| score|score|score|
score| score|score|score|
score| score|score|score|
score| score|score|score|

if that makes sense.
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: changing line length
« Reply #3 on: March 10, 2020, 10:32:41 PM »

Off the top of my head I would try this (I'll have a mess about another day but right now I haven't got the time).

score|score|
%%stretchstaff 1
score| score|score|score|
score| score|score|score|
score| score|score|score|
score| score|score|score|
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)

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #4 on: March 10, 2020, 10:42:13 PM »

Thanks for taking the time,  Pete.

[Edit, after trying it:unfortunately that cancels the %%stretchstaff 0]
[further edit: I've just discovered that %%stretchstaff 0 seems to work on just the first line in portrait, but not in landscape. However, I'm working in landscape.

Maybe I just need a bit more page formatting]
« Last Edit: March 10, 2020, 10:54:02 PM by Tone Dumb Greg »
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: changing line length
« Reply #5 on: March 11, 2020, 05:00:29 AM »

I wonder if you could do what you want using an 'Ossia stave'?

I haven't checked it out in detail, but there's a lengthy thread (with examples)
discussing these on The Session:

https://thesession.org/discussions/43650

It looks as this might provide an approximation to what you are looking for?

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.

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #6 on: March 11, 2020, 09:53:32 AM »

I wonder if you could do what you want using an 'Ossia stave'?


Thanks Roger. That looks a lot like a possible solution...if I can figure out the format and syntax.
There's plenty of exploring to do.

Another thought I had was to split the line into two columns. Haven't tried it yet, though.
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: changing line length
« Reply #7 on: March 12, 2020, 02:22:38 PM »

Following on from a post in the Facebook ABC Notation Users group, I think this is the answer. You will need to edit the margin and staff widths to suit your landscape layout but this definitely works in ABC Explorer.

X1
T:Beaux of London City - Adderbury
T:Shooting
M:6/8
L:1/8
A:Adderbury
%%titlefont Helvetica 22
%%subtitlefont Helvetica 16
%%composerfont Helvetica
%%partsfont Arial 20
%%partsbox
%%gchordfont Arial 16
%%barnumbers 1
%%MIDI program 73 % flute
%%MIDI chordprog 1 % piano
V:1 gchord=down
V:2
P:A(AB)6
K:G
V:1
%%leftmargin 1cm
%%staffwidth 8.5cmP:A
"G"G2G B>AG| Bd2-d2D|
%%leftmargin 1cm
%%staffwidth 17cm
D|"G"G2G B>AG| Bd2-d2D|G2 G B2"D" A| "G" G3-G2D|
G>GG B>AG| Bd2-d2D|"C"G>DG "D"B2A| "G"G3-G2|
P:B
|:z|"G" d2c B>AG| Bd2-d3 |"D7"A2 A A2"G"B| "C"c3-c3 |
"G"d2c B>AG| "Bm"Bd2-d2D|"C"G>DG "D7"B2A| "G"G3-G2:|

Edit:I've just tried it in Easy ABC and it works in that too.
« Last Edit: March 12, 2020, 02:34:33 PM by Pete Dunk »
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)

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #8 on: March 12, 2020, 05:51:40 PM »

That looks promising. Thanks Pete.
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: changing line length
« Reply #9 on: March 12, 2020, 07:50:36 PM »

No probs, I learned something new myself.
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)

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #10 on: March 12, 2020, 09:04:17 PM »

No probs, I learned something new myself.

Thanks again Pete

I would never have worked that one. Guido's Guide has one reference to %%staffwidth which just describes it as an alternative to %%pageheight and %%pagewidth.
Is there a more comprehensive guide?
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

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: changing line length
« Reply #11 on: March 12, 2020, 10:48:20 PM »

Is there a more comprehensive guide?

http://abcnotation.com/wiki/abc:standard:v2.1
Definitive and pretty comprehensive!
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: changing line length
« Reply #12 on: March 12, 2020, 10:51:24 PM »

I would never have worked that one. Guido's Guide has one reference to %%staffwidth which just describes it as an alternative to %%pageheight and %%pagewidth.
Is there a more comprehensive guide?

See Anahata's link above. Guido is exceptionally gifted but suffers from the same malady as many others bordering on genius, it all seems so childishly simple to him that he doesn't consider a explanation to be necessary. There is as Yahoo! group where many of these geeks hang out and chat, it might as well be wriiten in ancient Greek for the amount of info I can gleen from it!  ::)
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)

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #13 on: March 12, 2020, 10:55:52 PM »


http://abcnotation.com/wiki/abc:standard:v2.1
Definitive and pretty comprehensive!

Hmmm. Seems pretty good, but I can't find any mention of %%staffwidth in there.
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

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #14 on: March 12, 2020, 11:01:19 PM »


Guido is exceptionally gifted but suffers from the same malady as many others bordering on genius, it all seems so childishly simple to him that he doesn't consider a explanation to be necessary. There is as Yahoo! group where many of these geeks hang out and chat, it might as well be wriiten in ancient Greek for the amount of info I can gleen from it!  ::)

The reason I like to ask for help here is that I generally have half a chance of understanding the answer  :D :D :D
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

Gena Crisman

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1108
  • 🇬🇧
Re: changing line length
« Reply #15 on: March 12, 2020, 11:16:27 PM »

You need to look up abcm2ps, not the abc spec.

Also I feel bad because I thought exactly that approach might have worked, from learning about those in the incipits thread, but, didn't end up posting it. I'm glad you have a solution!
Logged

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #16 on: March 12, 2020, 11:21:31 PM »

You need to look up abcm2ps, not the abc spec.

Also I feel bad because I thought exactly that approach might have worked, from learning about those in the incipits thread, but, didn't end up posting it. I'm glad you have a solution!

Please don't feel bad Gina  ;D ;D ;D

I read the incipits thread and didn't pick up on this.
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

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: changing line length
« Reply #17 on: March 13, 2020, 08:35:19 AM »


http://abcnotation.com/wiki/abc:standard:v2.1
Definitive and pretty comprehensive!

Hmmm. Seems pretty good, but I can't find any mention of %%staffwidth in there.
You're right. I looked for %%staff and checked no further.
So it's apparently an abcm2ps extension. I think abcm2ps implements the ABCplus spec. So as Gena says, look at abcm2ps documentation but I'm not sure that's very detailed either, so Gonzato may be your best bet, with a bit of trial+error and guesswork.
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Gena Crisman

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1108
  • 🇬🇧
Re: changing line length
« Reply #18 on: March 13, 2020, 10:51:26 AM »

If you can find the right link to click (not an easy task, I can assure you, that's actually why I didn't include a link with my post earlier, haha) there is quite a lot of info on what is (supposed) to be available:

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

Bear in mind that abcm2ps has been conceptually superseded by abc2svg, which has several features not in abcm2ps, but, it's not really a like for like replacement (ie, there's not really a binary that you can drop in to our preferred abc editors)
Logged

Tone Dumb Greg

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 4955
    • Dartmoor Border Morris
Re: changing line length
« Reply #19 on: March 13, 2020, 10:54:50 AM »

If you can find the right link to click (not an easy task, I can assure you, that's actually why I didn't include a link with my post earlier, haha) there is quite a lot of info on what is (supposed) to be available:

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

Bear in mind that abcm2ps has been conceptually superseded by abc2svg, which has several features not in abcm2ps, but, it's not really a like for like replacement (ie, there's not really a binary that you can drop in to our preferred abc editors)

Thank you Gena. This is a great place to get answers I can understand.
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
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