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 question  (Read 4267 times)

0 Members and 1 Guest are viewing this topic.

Andy Next Tune

  • aka Andy Wooles
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1127
  • Melodeon with Accidentals? Make a PI Claim!!!
    • www.shavethedonkey.co.uk
ABC question
« on: May 17, 2015, 05:56:00 PM »

I use ABCExplorer, and have an ABC conundrum. I'm not sure whether it is an ABC or ABCExplorer issue, but....

ABCExplorer will play chord accompaniment if it is in the ABC file.
As soon as you add 'chord' notation to an ABC file,  ABCEx will continue to play that chord until it gets instructed to play a different one.
Which is OK until you want a section of music with no chord accompaniment!

Is there a way within the ABC notation to turn the accompaniment off for one or more bars, then restart it?
Logged
Andy, from the now ex-County Palatine of Cheshire

Caring for a European community of melodeons from France, Italy, Germany, Wales and Suffolk!

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: ABC question
« Reply #1 on: May 17, 2015, 06:03:09 PM »

No.  It's a silly omission in ABC itself, and it should have been fixed years ago.
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC question
« Reply #2 on: May 17, 2015, 06:53:55 PM »

You can of course switch chord accompaniment off altogether to stop it being annoying, but as Jack says it's a horrible glitch that shouldn't be beyond the wit of man to put right!
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)

vof

  • Regular debater
  • ***
  • Offline Offline
  • Posts: 221
Re: ABC question
« Reply #3 on: May 17, 2015, 06:56:47 PM »

It looks more like a player than a notation problem to me. The obvious - at least to me - way to clearly indicate that no chord is to be sounded after chords have been played earlier is to use an empty chord specification - that is a pair of double quotes like this "". The ABCMus player interprets empty chord specs of this form to mean sound no chord though I too use ABCExplorer because of its all-round features set and ease of use.

vof

Logged
Vince O'Farrell
Dino BPII; Hohners: red Erica G/C; couple of 1040s in C and G project boxes.

Andy Next Tune

  • aka Andy Wooles
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1127
  • Melodeon with Accidentals? Make a PI Claim!!!
    • www.shavethedonkey.co.uk
Re: ABC question
« Reply #4 on: May 17, 2015, 07:18:36 PM »

Unfortunately, ABCExplorer ignores an empty chord spec "", or nonsensical chord spec e.g "Z", and just carries on regardless.

Glad it wasn't just me missing the blindingly obvious.
Logged
Andy, from the now ex-County Palatine of Cheshire

Caring for a European community of melodeons from France, Italy, Germany, Wales and Suffolk!

ChrisP

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 279
  • West Yorkshire, UK
    • Chris Partington
Re: ABC question
« Reply #5 on: May 17, 2015, 09:02:48 PM »

I'm not too familiar with chord symbols as they apply to music notation. I would guess that abc2midi is following conventional orders, "keep playing that chord until another one comes along". Is there a way in conventional notation to signify that you should not play chords any more? If not then it's hardly ABC's fault; but yes, I find it inconvenient too. It could be addressed quite simply I suspect.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC question
« Reply #6 on: May 17, 2015, 10:28:12 PM »

There's a midi instruction, all notes off, that would stop the chords sounding if it was invoked at the end of the bar but I've no idea how to code that in abc.
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)

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: ABC question
« Reply #7 on: May 18, 2015, 01:40:23 AM »

Quote
Is there a way in conventional notation to signify that you should not play chords any more?

"tacet" where a chord symbol would go.  I've also seen people write "0" or "-".

Using "" in ABC looks good to me, particularly if something out there already implements it.  Using " " (or any number of spaces inside quote marks) would be fine too.
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

ChrisP

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 279
  • West Yorkshire, UK
    • Chris Partington
Re: ABC question
« Reply #8 on: May 18, 2015, 10:46:49 AM »

I asked the question on the ABCusers group and it seems there is no provision for it in either the ABC standard or ABCmidi at present, but that it would be relatively trivial to implement, possibly along the lines of "0_", which would print a pre-existing understood symbol (at least in France?)(and could be done immediately as far as print-only is concerned), which would then need implementing in the player program, ABC2midi. Whether it would ever make it into the standard is another question....though it should, in my view.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC question
« Reply #9 on: January 16, 2026, 03:50:14 PM »

I'm dredging up this old thread to talk about a workaround that I am using to "stop" MIDI chords playing part way through an ABC file. I found it irritating that if I combine two tune files together to make a set and the first tune includes chords but the second one doesn't then the last chord from the first tune plays continuously throughout the second tune because ABC is unable to send a MIDI command to stop chords being played.

The solution has been staring me in the face for years but it just didn't occur to me! First of all a "chord" in ABC invokes two different MIDI commands by default, a fundamental bass note and an actual chord played in a rhythm defined by the time signature. The bass note and the chord can be assigned to different instruments and each can be set to a different volume level (both independent of the melody line instrument and volume) and herein lies the solution to my problem. I can't stop the bass and chords from playing but I can turn the volume off with an inline command when I don't want to hear them. The following file contains a note in the header to remind me that the volume is off for the second tune should I ever get around to adding chords at a later stage.


X:1
T:Louth Quickstep
M:2/4
L:1/16
N:***CHORD VOLUME AND BASS VOLUME OFF FOR SECOND TUNE***
%%titlefont Helvetica 22
%%subtitlefont Helvetica 22
%%composerfont Helvetica
%%historyfont Helvetica
%%partsfont Arial 20
%%tempofont Helvetica
%%gchordfont Helveticabold 16
%%annotationfont Helvetica
%%infofont Helvetica
%%textfont Helvetica
%%vocalfont Helvetica
%%wordsfont Helvetica
%%partsbox
%%barnumbers 0
%%MIDI program 73 % flute
%%MIDI chordprog 1 % piano
%%MIDI bassprog 43 % contrabass
%%MIDI chordvol 60
%%MIDI bassvol 60
%%gchord below
%%bstemdown 1
Q:1/4=109
K:G
"G"B2BG B2d2|"D7"c2A2 A4|"G"B2G2 F2G2|"D"AGFE D4|
"G"B2BG B2d2|"Am"c2A2 "D"A2c2|"C"cBAG "D7"FGAF|"G"G2B2 G4:|
|:"C"g4 f2e2|"G"e2d2 d4|"Am"e4 "D7"d2c2|"G"c2B2 B4|
"Em"g4 "D"f2e2|"C"e2d2 "G"d2c2|"Am7"cBAG "D7"FGAF|"G"G2B2 G4:|
%%vskip 20
%%MIDI chordvol 0
%%MIDI bassvol 0
T:Follow On
M:2/4
L:1/16
Q:1/4=109
K:D
F2A2 ABA2|f2d2 ded2|B2e2 e2f2|g2B2 A2G2|
F2A2 dcd2|f2d2 dcd2|e2ge f2e2|1d2 z2 A4:|2d2c2 =c4|
|:g2B2 BAB2|f2A2 AGF2|G2F2 E2B2|A2B2 =c4|
B2g2 gfg2|A2f2 fef2|e2g2 f2e2|1d2c2 =c4:|2d2 z2 "<("">)"A4|]
%%newpage
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 question
« Reply #10 on: January 16, 2026, 05:30:45 PM »

I may be completely missing the point here, but don't:

%%MIDI gchordoff   and
%%MIDI gchordon

respectively turn chord playback off and on?

For example:

Code: [Select]
X:6209
T:Ever Onward
%A lightly edited version of a song from the IBM TuneBook. Inspired by a post on ABC users 25 July 2023.
%Basic accompaniment chords generated by ABCMus, setting 0.
%an unconsciously funny song...
T:IBM Rally Song
C:From the IBM TuneBook
M:6/8
L:1/8
Q:3/8=100
K:Gmaj
%%MIDI gchordoff
"D" D3 "Em" E3 | "D" F3 "G" G3 | "D" F2 F "G" G2 G | "E" ^G2 G "D" A^GA | "G" B2 c "D" d2 e | "G" B3 "D" A3 |
%%MIDI gchordon
"D" z6 |: "D" z6 | \
%%MIDI gchordon
"G" B2 B "D" d2 d | "G" G2 G B2 B | "Em" E2 E E2 E |
w: There's a fee-ling ev'- ry where of big- ger things in
"Em" E3- E2 E | "D" F2 E D2 E | "D" F2 G A2 ^A | "G" B3- B3- | "G" B3 "D" D3 |
w: store_ Of new hor- i- zons com- ing in- to view__ Our
"G" B2 B "D" d2 d | "G" G2 G B2 B | "Em" E2 E E2 E | "Em" E3- E2 ^F |
w: aim is clear. To make each year ex- ceed the one be- fore
"D" F2 E D2 E | "D" F2 G A2 B | "G" G3- G3- | "G" G3- G2 G |
w: Sta- ying in the lead in ev'- rything we_ do The
"D" F2 F A2 A | "D" d2 d A2 A | "D" F2 F A2 A | "D" d3- d2 d |
w: will to win is built right in. It will not be den- ied. And
"D" d2 d d2 d | "D" d2 d d2 d | "D" d2 c A2 F | "D" D6 |
w: we will go a- head we know by work- ing side by side
"^;Chorus:;"
"D" D3 "Em" E3 | "D" F3 "G" G3 | "D" F3 "G" G3 | "E" ^G3 "D" A3 | "G" =G2 A B2 G |
w: Ev- er On- ward, Ev- er On- ward That's the spir- it
w: Ev- er On- ward, Ev- er On- ward We're bound for the
"D" A2 B A2 G | "Em" E3 E3- | "Em" E2 E "B" ^D2 E | "G" G2 F "D" F2 ^E |
w: that has brought us fame__ We're big but big- ger we will
w: top to nev- er fail__ Right here and now we thank- ful
"D" F3 "Dm" ^E2 F | "D" A2 G "G" G2 F | "G" G3 "D" F2 G | "G" B2 A "D" A2 ^G |
w: be We can't fail for all can see That to serv hu- man- i-
w: ly Pledge sin- cer- est loy-al- ty To the cor- por- a- tion
"A" A2 E "D" F2 G | "D" A3 A3- | "D" A2 D "A" ^C2 D | "G" G3 G3 |
w: ty has been our aim__ Our prod-ucts now are
w: that's the best of all__ Our lead- ers we re
"G" G3- G2 D | "Em" E3 "Dm" =F3 | "G" G3- G2 ^G | "D" A2 A A2 B |
w: known_ in ev- 'ery zone_ Our rep- u- ta- tion
w: were_ and while we'rw here_ Let's show the world just
"A" ^c2 c "G" B2 A | "D" d3- d3- | "D" d2 =c A2 F | "D" D3 "Em" E3 | "D" F3 "G" G3 |
w: spark- les like a gem__ We've fought our way through and new
w: what we think of them!__ So let us sing men, sing and
"D" F2 F "G" G2 G | "E" ^G2 G "D" A ^G A | "G" B2 c "D" d2 e | "G" B3 "D" A3 |
w: Fields we're sure to con- quer too For the Ev- er On- ward I B
w: Once or twice then sing a- gain For the Ev- er On- ward I B
!invisible! |1 "G" G3- G3- | "G" G2 z "D" z2 z :|2 "G" G3- G3- | "G" G2 z "D" z2 z |]
w: M__ M__
I can't check with ABCExplorer 'cos I don't have it on this machine, but in EasyABC that 6 bar intro'
at the top doesn't play the chords, despite them being there in the code. If ABCExplorer simply doesn't
'know' about 'gchordon' and 'gchordoff', then all bets are off, of course...
« Last Edit: January 16, 2026, 05:38:04 PM 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.

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: ABC question
« Reply #11 on: January 16, 2026, 05:50:03 PM »

As others have already made clear this is an awkward failing of the current abc standard.

I have always used the same method as Roger. It's slightly long winded, but it certainly works.

Within the context of the simplicity of abc as a notation tool, there are some things that require an unnecessary work around, but on the whole I find it easy to knuckle down and get on with it.

Not perfect, but still the best option available.
Logged
Semper idem, sed non eodem modo

Roger Hare

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 949
  • Urmston, Lancashire, U.K. éééé
Re: ABC question
« Reply #12 on: January 16, 2026, 06:03:56 PM »

...I have always used the same method as Roger. It's slightly long winded, but it certainly works
...Not perfect, but still the best option available.
Checking a little further in my master tune book, I see that it also can be used in (what I call)
'embedded' mode:
Code: [Select]
X:1732
T:Bicycle Pump Polka
%A lightly edited tune from Lester Bailey's Tune-A-Day.
%Basic accompaniment chords generated by ABCMus, setting 0.
C:Jan-Anders Andersson
M:4/4
L:1/8
Q:1/4=160
R:Polka
K:Gmaj
|: "G" d2 BG D2 G2 | [I:MIDI gchordoff] "D" z8 [I:MIDI gchordon] | "Am" c2 AF "D" D2 F2 | [I:MIDI gchordoff] "D" z8 [I:MIDI gchordon] |
"G" d2 BG D2 G2 | [I:MIDI gchordoff] "D" z8 [I:MIDI gchordon] | "Am" c2 AF "D" D2 F2 | [I:MIDI gchordoff] "D" z8 [I:MIDI gchordon] :|
|: "G" d2 BG DGBd | "Am" c2 AA "D" A2 A2 | "Am" c2 AF E2 F2 | "G" G2 B2 "D" d4 |
"G" d2 BG DGBd | "Am" c2 AA "D" A2 A2 | "Am" c2 AF E2 F2 | "G" G2 G2 G4 :|
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 question
« Reply #13 on: January 16, 2026, 06:15:43 PM »

I used it in ABC Explorer with no problem, no idea about EasyABC. This is a direct call to abc2midi so the editor is irrelevant in theory. %%MIDI gchordoff works but introduces another problem of its own!
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)

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC question
« Reply #15 on: January 17, 2026, 10:37:49 AM »

As I have mentioned elsewhere online tools are sadly not much use in a rural area that has a painfully slow, limited and unreliable internet connection. It should be called narrowband not broadband! I addition my normal ABC transcription workflow doesn’t require any complex coding or advanced functions so I am happy using stand alone desktop software.
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)

Michael Eskin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 547
    • AppCordions
Re: ABC question
« Reply #16 on: January 17, 2026, 02:17:01 PM »

As I also mentioned in your Facebook post, the first time the tool runs it stores itself in a private browser cache using what is called a JavaScript service worker.

After first run the tool will run completely off-line.

There are some minor limits in functionality when run off-line, all of them are described in detail in the user guide.

While they were certainly are some advanced features in my tool (most on the More Tools dialog), for the most part you can ignore them if you want and just enter and edit ABC just like any other ABC editor.

« Last Edit: January 17, 2026, 02:20:58 PM by Michael Eskin »
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