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: One-row Melodeon Checking App  (Read 1972 times)

0 Members and 1 Guest are viewing this topic.

deltasalmon

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1002
One-row Melodeon Checking App
« on: June 03, 2015, 12:30:04 AM »

Firstly, please note that I'm an absolute amateur web designer and this is my first time trying a javascript program so it's a little ugly.

Another post about one-row melodeons had me checking tunes that were able to be played on a one row and I quickly grew tired of checking sheet music for tunes outside the home key and if any accidental notes were being played. My solution was to let a computer do it so I wrote up a quick script in html/JS and decided to post it online. The tool will look at a tune and based on the key (which must be entered K: Xxxx so K: Gmaj not K:G, etc) and the notes in the tune (so far it can only read notes A-G and a-g, nothing higher octave or lower and it can't make sense of accidentals so ^ and _ will break it) and decide whether it can be played on a one-row accordion. Being that I read sheet music in the key of D (due to playing mainly C#/D) its also set up for a one-row D melodeon.

Aside from that I wouldn't mind if people could test it out and send me any suggestions. Just note that I again must state that I'm not a computer programmer by profession and probably won't be able to address all suggestions, but it will give me something to do when either my box is not around or its too late to play.

the link is http://deltasalmon.ddns.net/
Logged
Sean McGinnis
Bordentown City, NJ, USA

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping
Re: One-row Melodeon Checking App
« Reply #1 on: June 03, 2015, 01:18:33 AM »

Sean,

This is all very well and I salute your javascript programming - I wouldn't know where to start.

However, I would just comment that one of the joys/quirks/limitations (call it what you will) of the one-row melodeon is the need to adapt tunes to the instrument. Just because a tune uses some notes which are not available on a one-row, it doesn't mean that it cannot be played. Missing notes, accidentals, etc. can often be fudged somehow by playing alternative notes or leaving gaps. It is partly up to the skill and musicianship of the player as to how successful the compromise is. When it is done well, the ear of the listener subconsciously 'fills in' any missing or 'wrong' notes.
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: One-row Melodeon Checking App
« Reply #2 on: June 03, 2015, 02:48:21 AM »

Hi Sean!

Your key list includes Bdor. Tunes in B dorian (which are rare in Irish music, although I very recently learned one) would normally have G#s in them, making them unplayable without resorting to the kind of fudging Steve is referring to.

Tunes in B minor on the other hand would be perfectly playable and so that key should be in your accepted list. So should A mixolydian, another 2-sharps key.

Your key list excludes Em. I'd be willing to bet that you could find a number of tunes notated as being in Em have no Cs in them and are therefore playable on your box... Also, picking up on what Steve said, many Em tunes that do have Cnats would sound OK with passing C#s instead of Cnats. Or with doubled Bs instead of B - Cnat sequences etc.

To be really functional, ultimately (several iterations down the road maybe  (:) ) your app should be able to accept any key signature (and also be able to understand that Dmaj = D and Bm = Bmin).

Then, knowing what notes in those keys lie outside the range of your box, it could immediately flag any note in the tune that will cause problems. For example it would know that any G in a tune with key signature Amaj was sharp and therefore a problem. Whereas tunes marked Amaj but having no Gs in them (bet we can find some) would be playable but will be ruled out unless you make the app accept any key.

In fact it would be very useful if it produced a list of the unobtainable notes and what bars they occur in...

If it helps you I produced a grid or a list of sharps and flats in all the possible keys and modes (including F# phrygian etc.) and can dig it out for you. I used it in the "BCD" program I wrote in FoxPro to compute the number of bellows movements required to play each tune in Henrik Norbeck's 1600-strong ABC collection on both C#/D and B/C boxes and test the theory that C#/D playing involved vastly more bellows movements than B/C. (It doesn't - 30% more average over all those tunes. :-) )

Sorry to be discouraging but when you start a project like this, the scope will creep - and you'll learn a lot about programming in the language you have chosen in the process (:)

Baron Collins-Hill

  • Regular debater
  • ***
  • Offline Offline
  • Posts: 232
  • Maine, USA
Re: One-row Melodeon Checking App
« Reply #3 on: June 03, 2015, 03:04:24 AM »

Sorry for the thread creep, but Stiamh: to clarify, was the result of your research that c#/d uses 30% more bellows reversals than b/c, or b/c uses 30% more than c#/d?

Thanks,
Baron
Logged
D/G/Acc Castagnari Big 18 (full Dutch reversals)
Mandolin & Tenor Guitarist: Velocipede
Free Online Mandolin Lessons: MandoLessons

deltasalmon

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1002
Re: One-row Melodeon Checking App
« Reply #4 on: June 03, 2015, 03:06:19 AM »

Thank you Steves for you're responses. Like I said, I'm accepting all criticisms but the limiter is my programming abilities.

Steve_freereeder,
I agree 100%. In fact in the post I mentioned earlier I actually explained how with the tune "Maggie in the Woods" I actually play it differently in the key of A to avoid having to play a G#, I play an E instead. I think a good way around this would maybe add a feature so that the program not only tells me if it can be played but would highlight the notes that "can't" be played which could offer the user options on ways to get around it. An example I've personally been interested in is how to play "Merrily Kiss the Quaker" on a one-row in D.

Stiamh,
I agree my list of possible keys is short at the moment. I started with D, G and A major and then with couple copy/pastes created Edor, Ador, and Bdor as just being the dorian equivalents to the major keys. I'll have to add at least minor (aeolian scale) and mixolydian of the three major keys (for a D melodeon) for this to really be useful. I actually considered doing a grid of all modes vs keys but it seemed like a lot to type at the time. You're probably right though that might be the best way to do it so I'll certainly look into it. Any code you may be able to dig up could only help.

Both Steves,
It seems like the common factor is that if notes make it "unplayable" according to the rules I set, that I should find out how to show which notes are unplayable and offer possibly a solution. Again this is a hobby at best, so I will certainly look into this in my free time and I thank you for trying it out and helping me decide my priorities.

If anyone else has criticisms (regardless of how discouraging they are  (:) ) I welcome them, at worst it might help me become a better programmer.
Logged
Sean McGinnis
Bordentown City, NJ, USA

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: One-row Melodeon Checking App
« Reply #5 on: June 03, 2015, 03:44:51 AM »

Sorry for the thread creep, but Stiamh: to clarify, was the result of your research that c#/d uses 30% more bellows reversals than b/c, or b/c uses 30% more than c#/d?

Hi Baron - c#/d uses more - I was surprised it was only 30% more. Read all about it: http://www.rogermillington.com/steam/alltunes_abd2.txt

Seán - I just dug out the code and it's not a grid but a gigantic case statement - see the attached text file. I don't guarantee it is 100% error-free (:) but maybe it will help.

deltasalmon

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1002
Re: One-row Melodeon Checking App
« Reply #6 on: June 11, 2015, 02:20:35 PM »

So I started adding more key/mode choices to the original 6 that were available (Dmaj, Edor, Gmaj, Ador, Amaj, Bdor). I initially planned to add all possible combinations but realized quickly that it would take a very long time. There are 7 modes per key with 17 keys (to be able to accept both flat and sharp keys) which is 119 separate instances. Even if I only accepted flat keys that's still 84 instances of which only a fraction will be able to be played on a D melodeon (Db major for instance would only be able to be played if the tune was comprised only of F#s and C#s)

The main tune database I use is thesession.org which only accepts keys for 23 modes so I set my script to work with those 23 modes. If others needed to be added I could add those individual ones but I don't plan on adding every possible combination.

The keys available on the session are:
Ador   Amaj   Amin   Amix   Bdor   Bmin   Bmix   Cdor   Cmaj   Ddor   Dmaj   Dmin   Dmix   Edor   Emaj   Emin   Emix   Fdor   Fmaj   Gdor   Gmaj   Gmin   Gmix

I'm still trying to figure out how I can point out the parts of the tune which don't work on a one row in D
Logged
Sean McGinnis
Bordentown City, NJ, USA
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