Melodeon.net Forums

Discussions => Teaching and Learning => Topic started by: Chris Ryall on November 25, 2012, 03:19:50 PM

Title: Melodeon Explorer: a Web chord/scale finder for squeezeboxes
Post by: Chris Ryall on November 25, 2012, 03:19:50 PM
I wrote a scales facility in MSexcel a year or two - some here said nice things but too many weren't using MS spreadsheet and the others weren't compatible enough to make a 'port' worthwhile.  Always planned to make it a web page, and am about 80% there.

  http://squeezebox.chrisryall.net  (apologies  - it was wrong)  :|bl

It finds the scales OK (as far as I can tell) but the code to make your own layout is still only half written.  For now I'd be grateful is any fellow geeks might eyeball it and let me know of bugs that emerge in the chords/scale finding aspect.

My own kit is pretty non standard so I downloaded a G/C/accs off the net. The inner row looked frankly daft with some notes both ways.  Does anyone have a 'standard French trois rangées' and can let me have the layout, please.

Don't try too hard with the text entry box - not fully coded now working, 2 Dec - but eventually you'll be able to paste in your own layout and hopefully save/load it too 

TIA
Title: Re: Chord and scale finder for melodeons
Post by: Lester on November 25, 2012, 05:02:55 PM
Looks to be good work in progress  (:)

I'm using W7P 64bit and Chrome (latest version) and would make the following observations

Could you change the colour of the selected notes on the layout because emboldening them is a bit indistinct. 

The instructions say "Choose a tonic, select scale or chord. Press "Show" - (use the #/b controls to toggle display above)" I can find neither a Show Button nor a #/b control
Title: Re: Chord and scale finder for melodeons
Post by: Chris Ryall on November 25, 2012, 05:27:06 PM
Thanks - all of  'accidental' button labels should  toggle just by clicking them - eg Eb with toggle to D# and vice versa.. It works in IE, Safari and Firefox. I don't have Chrome or Opera installed (hence this beta test) but I "think" it is all generically W3C coded so should be OK.  The controls aren't windows buttons - just click the "Eb" text on the "tone centre" row.

You're right - I removed the show button - it wasn't needed as fielding the events generated by changing key/chord/scale was actually very fast - I'll tidy that up. I agree: those 'bolder' keys are a bit wimpy too - evening's job to change 'em all though  :-\

Please keep the bugs coming!  :|glug (a '95 Rioja actually  ;D)
Title: Re: Chord and scale finder for melodeons
Post by: Lester on November 25, 2012, 05:30:35 PM
Right! I understand the #/b bit now and it does indeed work.
Title: Re: Chord and scale finder for melodeons
Post by: Chris Ryall on November 25, 2012, 06:16:20 PM
Been colouring in like mad meanwhile ..   :Ph

Note the facile C#min75b and F#min75b chords on pull  ;)

 .. ditto F# blues  8)
Title: Re: Chord and scale finder for melodeons
Post by: Lester on November 25, 2012, 06:52:27 PM
Been colouring in like mad meanwhile ..   :Ph

That's better  (:)
Title: Re: Chord and scale finder for melodeons
Post by: Jack Humphreys on November 26, 2012, 06:05:56 PM
Thanks Chris for all this work for our benefit....adding to your exisisting great news service about events in France, Belgium etc, and notifications of great videos from over there.  Much appreciation!
Title: Re: Chord and scale finder for melodeons
Post by: Strigulino on November 26, 2012, 07:19:29 PM
Getting a "406 not acceptable" page on IE7 (yes, yes, I know, out of the Ark but I am at work).
Title: Re: Chord and scale finder for melodeons
Post by: Chris Ryall on November 26, 2012, 09:22:10 PM
Gosh - had to look that one up - it means IE is getting content it cannot or won't display! OR (if it's like my work) that a firewall is intervening .  Sez here .. (my best guess)
    There is one common known issue for 406 error and that is Mod_security a web application firewall. It is a security module installed on the server to protect from injections attacks. if your script contains stings {sic} which are detected as vulnerable or the code trying to perform suspicious activity then Mod_security rule will restrict your application request and will raise this error. there are many blogs/forums suggested to put following code in .htaccess file so it will fix your problem.
Code: [Select]
<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

<IfModule mod_security2.c>
SecRuleEngine Off
 </IfModule>

I'm presently looking to turn the scale runs into text to that people can save their favourite fingerings in a word processor. That uses the (perfectly legal) javascript string.replace() method to fade the F#s etc to dots.

I did see something about "text injection" when I read that up.  I can only say - it validates as HTML 4.01 and the javastript is utterly standard w3schools stuff.   The only other file types in there are .css for presentation effect and .png and a single .gif for the graphics.

Coming up  - I have to parse text input to generate a simulation of the user's melodeon and manipulate the DOM to make that work - hate to think what MSIE-7 might make of that. But it's "legal".  ::)

Does it do this at home?
Title: Re: Chord and scale finder for melodeons
Post by: Strigulino on November 27, 2012, 12:28:08 PM
I'll try it at home later.  We do have paranoid settings at work but I have NEVER seen that page before.  Usually if something is blocked by the firewall, the firewall tells you so.  Other "functional" pages like the Tune-o-Tron and a site I know of that transposes keys both work.
Title: Re: Chord and scale finder for melodeons
Post by: Chris Ryall on November 27, 2012, 01:25:44 PM
Works fine on my work kit - MSIE7.0 - NHS/Army issue!

Yes, our net nanny says things like "resticted, catagory 'alcohol'"
    .. this for things like the alcoholics anonymous home page  ;D
Title: Re: Chord and scale finder for melodeons
Post by: Chris Ryall on November 28, 2012, 08:15:09 AM
1. changed to A/D/G (more universal)
2. implemented a proper parser
3. this has made the text writeback fall over  :(
4. Prettified it as per Lester's advice
5 .. see present ativar to the left!
Title: Re: Chord and scale finder for melodeons
Post by: Endolf on November 28, 2012, 08:53:08 AM
I clicked the library button to see what other keyboard layouts were available, got a 404 :)

Endolf
Title: Re: Chord and scale finder for melodeons
Post by: Lester on November 29, 2012, 09:09:31 AM
Theory for swingers (http://www.youtube.com/watch?v=dF074CL5vjI)
Title: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 01, 2012, 06:44:30 PM
[update]

Mostly working now.  Looking for bugs and any other wishes, please.  Anyone who thinks other layouts should be available as a preset please use the facility of the web page and post your favoured layout here in the text format and I'll consider inclusion. Just look how C Blues 'rolls' on the C#D halftone 2-row.   Was that melodeon 'made for it'?  .. probably not!  :-\

New! Got concertinas working too - as per new screen shot -  http://squeezebox.chrisryall.net  Enjoy!  :Ph
     (http://chrisryall.net/chords/screen.png) (http://squeezebox.chrisryall.net)
PS #3 - anyone got a layout for a 36 key anglo Linota? Sold mine to buy a melodeon  ;)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Theo on December 02, 2012, 01:11:49 PM
Hi Chris,  I think this is a wonderful tool.

I've just tried adding a half row like this:

Code: [Select]
push> >> @  D  @  G 
>>>>> >> @  B  @  C
>>>>>>>> G# D# C G#
> F  B  D  G  B  D  G  B  D  G 
Ab F# A  D  F# A  D  F# A  D  F#

= D/G-4th-button-start

pull> >> @  A  @  D 
>>>>> >> @  E  @  C 
>>>>>>>> A# F D A#
> Eb D  F# A  C  E  F# A  C  E 
Bb A  C# E  G  B  C# E  G  B  C#

and get this error

Quote
Whoops!

 >>>>>>>> - not recognised note or token
 >>>>>>>> - not recognised note or token
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 02, 2012, 01:54:00 PM
Why thanks  :|bl

The '>>>' indents are recognised up to a stack of 5 = '>>>>>'.  I needed some sensible limit and this corresponds to the width of the push> pull> graphics (which have built in spacers). It 'could' easily be changed if there were demand.

However eg ">>>>>  >> " is perfectly legal (as per  instructions!) and would generate the  5+2=7 half spaces, = 3½ buttons wide that you probably wanted. You've put 8 there ??? which would indent more than the line above! Actually - I'd simply copy that  over.

 I'm not suggesting anyone will need such a space, but this is the flexibility we need. Spacers can actually go anywhere a button can go. Try the new concertina pre-set button - that needed the push/pulls and some space in the middle to look right.  So the message is: "experiment"  ;) and remember that 'a space' is not a spacer (it's ignored) - but '>' is an indent

.. but I thought ... you were busy fettling Dolly's box?  >:E  I'm working on 'cookies'  :Ph

Try this
Code: [Select]
push> >> @  D  @  G 
>>>>> >> @  B  @  C 
>>>>> >> Ab Eb C  Ab
> F  B  D  G  B  D  G  B  D  G 
Ab F# A  D  F# A  D  F# A  D  F#

=  D/G-4th-button-start

pull> >> @  A  @  D 
>>>>> >> @  E  @  C 
>>>>> >> Bb F  D  Bb
> Eb D  F# A  C  E  F# A  C  E 
Bb A  C# E  G  B  C# E  G  B  C#
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Theo on December 02, 2012, 02:04:34 PM
Well it's the instructions I'm failing to understand then, I don't see anything about leaving spaces between indents.  I wanted a 4 button indent so put 8 >s as the instructions say half button indent per >.

Quote
Indent your buttons using '>'s, usually at left edge to indent ½ button per arrow.

 What have I missed?

Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 02, 2012, 02:19:25 PM
Sorted.
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Theo on December 02, 2012, 02:29:50 PM
Understood, and got it working.

The next question may be just the limit of my musical knowledge showing but in the pentatonic section selecting blues scale in F# with DG layout gives six notes not five.  F# A B C C# E
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 02, 2012, 03:23:46 PM
Understood, and got it working.

The next question may be just the limit of my musical knowledge showing but in the pentatonic section selecting blues scale in F# with DG layout gives six notes not five.  F# A B C C# E

That is intended. The 'Official' Blues scale is pentatonic minor with a 4# added = 6 notes.  I've put it in there because real 'Blues' is played to a great extent on the 5 main notes, but the artificial (but nevertheless pretty standard) scale has all six.  There are actually other passing notes used*  Try toggling from minor5 to Blues and back. The C should come and go ...

In reality blues could also be myxolydian, dorian, or lydian, (Mike H has told us that in Louisiana - they use pure pentatonic minor)  Then there's all the jazzier stuff - melodic modes etc etc  :|glug

*Tous foutu .. improvise sur la gamme Blues
 Blues foutu? Joue la chromatique
French proberb  ;)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 04, 2012, 12:34:16 PM
Chris, this is brilliant work. Simple interface, attractive graphics, powerful tool for exploration. Thanks all the hard work and for sharing it.

FYI, I notice that the Apply button can change the layout text a couple of ways:
This may be by design but I thought I'd mention it.

To duplicate what I saw,

1) Input:

push> >> @  G  @  C  @  F 
>>>>> >> @  E  @  A  @  Bb
>> D# C  F  A  C  F  A  C  F  A 
> F# G  C  E  G  C  E  G  C  E  G 
C# D  G  B  D  G  B  D  G  B  D  G
= Castagnari-GCF-Benny
pull> >> @  D  @  G  @  C 
>>>>> >> @  A  @  D  @  Bb
>> C# E  G  Bb D  E  G  Bb D  E 
> G# B  D  F  A  B  D  F  A  B  D 
D# F# A  C  E  F#  A  C  E  F#  A  C

2) Click Apply

3) The input becomes:

push> >> @  G  @  C  @  F 
>>>>> >> @  E  @  A  @  Bb
>> Eb C  F  A  C  F  A  C  F  A 
> F# G  C  E  G  C  E  G  C  E  G 
C# D  G  B  D  G  B  D  G  B  D  G 
=  Castagnari-GCF-Benny


pull> >> @  D  @  G  @  C 
>>>>> >> @  A  @  D  @  Bb
>> C# E  G  Bb D  E  G  Bb D  E 
> Ab B  D  F  A  B  D  F  A  B  D 
Eb F# A  C  E  F# A  C  E  F# A  C 
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 04, 2012, 12:40:04 PM
Great - keep the bugs and layouts coming please. I don't guarantee all the latter will be buttonned but can put them in the .txt library  (:)

I'm presently leaving the web version well alone as I've "taught it French" allowing Solfage input and buttons (there's a BIG French/Low Countries interest in this sort of thing). I don't need to tell any fellow programming geeks on the forum the chain opf little bugs that has set off! Please bear with me, but another weekend'll probably sort it. Chris

Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 04, 2012, 02:53:48 PM
I don't need to tell any fellow programming geeks on the forum the chain opf little bugs that has set off!

We (diplomatically) refer to those as design decisions to be reevaluated in light of changing user requirements even when we made the changes to the requirements. Have fun stalking.
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Strigulino on December 04, 2012, 03:09:33 PM
Still doesn't work on IE at work but does work on my phone.  I shall try to remember to do layouts for my boxes so you can add them if you want to.

Just had a quick look - I see there is not a 2.5 row C/F (I have a Liliput declubbed, so I should be able to give you a Liliput clubbed and declubbed when I get a mo) which has low notes rather than accidentals - is the D/G version low notes or accidentals?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 04, 2012, 04:11:50 PM
Yes please - I want Club systems in there. Please could you post here as simple text cc'd from the box and I'll make a pre-set

Sorry about MSIA - what version may I ask?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Strigulino on December 04, 2012, 04:29:16 PM
Version 7.0.5730.13.

"This error (HTTP 406 Not Acceptable) means that Internet Explorer was able to receive information from the website you visited, but the information was not in a format that Internet Explorer can display."

I can see all the gubbins if I do View Source though.
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 04, 2012, 10:32:51 PM
Er -I'm on version 9. I think 7 came out something over 6 years ago when there was a browser  attack involving use of the Javascript string.replace() method. But (from what I can glean) HTTP 406 Not Acceptable errors usually emanate from a mediaeval (we're talking Internet chronology) firewall.

I can assure you - it's all hand coded and Kosher. My own (2009) firewall is entirely happy. As is MSIE9. As is Firefox, and Safari. So I think any weakness might have been fixed. Try the 'update' button. I suspect 'view source' won't get you very far  ::)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 04, 2012, 11:47:17 PM
Also works on Chrome Version 23.0.1271.95 m.
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Strigulino on December 05, 2012, 11:52:08 AM
My work having a clockwork, steampunk firewall?   I can believe it.  :D
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 05, 2012, 02:19:50 PM
Actually it should be raise with IT as it is now an inappropriate barrier. Having said - my hospital's net nanny manages to bar me from some .NHS.UK sites  ???  To say nothing of the nurse in Devon who received only [profane email deleted] when I had the temerity to us the word b1tch, as a verb. To say nothing of the trouble it caused our .. shall I say "female upper anterior thorax" surgeons a few years ago ..  :|glug
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Strigulino on December 05, 2012, 02:45:03 PM
I used to work for a sexual health clinic.  The staff there had no end of trouble with emails.

We're supposed to be getting upgrades soon.  I think they've realised that using such elderly systems is probably not sufficiently secure...
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 08, 2012, 06:30:27 PM
New major version 2.0 uploaded

:Ph Please keep bugs/wishes coming - http://squeezebox.chrisryall.net/

Fixes done
1. The [/o] is an SMF bug wrt the [ o ] unordered list facility
2. up/down sorted - thanks Brian
3. Write the new enharmonic spelling to Buttons as the user toggles
    enharmonics, thereby documenting the user's most recent spelling.
    This was supposed to happen - a little bug  :|bl
4. Provide a way to print a portable document (pdf or Google
   Doc perhaps) showing the formatted button layout.
   Have asked Lester for info on how his Google layouts work

.. keep 'em coming
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Lester on December 08, 2012, 06:46:11 PM
[/o] ?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: brianread on December 09, 2012, 08:00:10 AM
The "tool tips on the "up" and "down" are reversed (up says down, etc).
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 09, 2012, 10:33:20 AM
Chris,

I believe you have created a new standard for documenting buttonboard layout -- the term keyboard is so PA that we clearly need a different descriptor. Your Generic Chord and Scale Finder (GCSF) input file reminds me of ABC for musical scores. It is compact, font independent, easy to read at a glance, yet powerfully encodes all sorts of relationships.  GCSF translates the input file to a formatted layout in much the same way that some ABC editors produce a musical score.

To nurture this emerging standard, should you wish to venture along that path, consider
Again, this is first rate imagineering. Bravo! Let me stand while I clap.
Doc
p.s. Generic Chord and Scale Finder is a bit of a mouthful from a marketing point of view. How about a catchy name contest for your app. May I submit Progression as an entry?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 09, 2012, 10:42:03 AM
Thanks  :|bl

  .. the floor is open for a "catchy name"  :|glug
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: sharpie55 on December 10, 2012, 10:58:42 AM
Hi Chris,

I've just tried out your website and it looks really useful (not to say impressive). However, on my PCs the "Remember this layout" button doesn't work, it tells me I need cookies enabled when they are. I've tried four different browsers (Firefox, IE, Chrome and Opera), two PCs and three operating systems (XP, W7 and Ubuntu) with the same result. Any ideas?

The layout I've entered is :-

push> > @  A  @  D  @  G 
>>>>> > @  F♯ @  B  @  C 
>
>>>>> >>>> Aâ™­ F  C  Aâ™­
> F  B  D  G  B  D  G  B  D  G  B 
Aâ™­ F♯ A  D  F♯ A  D  F♯ A  D  F♯ A 

=   Saltarelle Connemara II D/G Factory Tuning                       


pull> > @  G  @  A  @  D 
>>>>> > @  F  @  E  @  C 
>
>>>>> >>>> Bâ™­ Eâ™­ F  Eâ™­
> Eâ™­ D  F♯ A  C  E  F♯ A  C  E  F♯
Bâ™­ A  C♯ E  G  B  C♯ E  G  B  C♯ E 

Also, should it change some sharps to flats?  I entered G# on the half row and it was changed to to Ab? I like my sharps (it's in the name).

Many thanks,

Sharpie
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 10, 2012, 12:32:53 PM
Cookies are on the 'to do' list I'm afraid.  Partly they are awkward to use and have IMHO bizarre coding. Also the way they import  will it seems clash with the '=' I've use as a token - and no doubt create bugs.  :-\  I've never used them, or I'd have avoided that one

Sharp's/flats are NOT controlled by the input.  I decided the buttons by the notes should do that - ihat t's a 'user' matter' 

I could take the one used in the box - but what if it has a mixture etc etc?  Can of worms ... The box is actually  completely permissive',accepting Aâ™­, G♯,Laâ™­,Sol♯, Ab Lab,G# or Sol# as input for the note you want. It will even accept the same in lower case! Once you click outside the box it it auto-corrects, according to the current 'buttons' settings.  In the future I'd hope to 'remember' these as a cookie. And I MIGHT also allow a comment parameters line .. to force the buttons into preferred state .. eg

Code: [Select]
push> > @  A  @  D  @  G 
>>>>> > @  F♯ @  B  @  C 
>
>>>>> >>>> Aâ™­ F  C  Aâ™­
> F  B  D  G  B  D  G  B  D  G  B 
Aâ™­ F♯ A  D  F♯ A  D  F♯ A  D  F♯ A

FORCE ABC A♯C♯D♯ F♯G♯G♯

Easy enough- what do people think?  Guess it wouldn't affect most of us?

Not sure how many of the thousands of 'standards' will actually get in - its 'library' page annoyingly bugged layout in MSIE and is presently taken out - but you colud simply save this as a text file on own kit - or Theo might allow something here if it takes off.  Or you can copy/paste from here (intentionally).  I could implement the more idiosyncratic ones as a pull down (guess that includes mine)  ;)

Problem is pleasing all the people all of the time.  I'm presently trying out sound - not underwritten until HTML5 deploys in 2014 - but the present beta version on Firefox seems to do what is expected of it :D  Won't get much done next weekend as I'll be on a jolly to Iceland. (BTW: do we have any accordeonistas over there)?

As the page is text driven, it and knows nothing about the innards of melodeons.  I'm therefore keen for comment from concertina players too. Could someone please consider starting a thread on concertina.net - I particularly want some 'English', Linota-37 and perhaps duet layouts.  I  have a signon on 'the other place' but can't 'start' a thread on it.  :|glug
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Matthew B on December 10, 2012, 08:10:02 PM
Great tool Chris, many thanks.
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 11, 2012, 10:52:34 AM

I MIGHT also allow a comment parameters line .. to force the buttons into preferred state . . . eg . . .
FORCE ABC A♯C♯D♯ F♯G♯G♯


From a design point of view I like the flexibility of a parameters approach and suspect you will find other parameters useful as your app evolves. To parse the input, I suggest using a delimiter pair rather than relying on unique verbs, a la

Code: [Select]
[parameter] FORCE ABC A♯C♯D♯ F♯G♯G♯ [/parameter]
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 11, 2012, 01:11:26 PM
Thanks. I'm trying to keep it simple, particularly from user point of view as I suspect most will be quite naive to the delights of syntax parsing.  As such the 'unparsed line' approach - for what essentially are directives - attracts and can be kept tight.   I'm currently thinking of simple structures like

 |accs:C♯Eâ™­F♯Aâ™­Bâ™­CDE
     .. or
 |force:Do♯Miâ™­Fa♯Laâ™­Siâ™­DoRéMi

.. with button font intended inferred from the final directive in the list, if not appended specifically. As the rest of it is a GUI I hope users will find this simple and acceptable. If it comes wrong .. correction is only a click away. Basically I'm picking up on the squeezeboxes being 'in rows' anyway ;) and keeping it 'texty' in the same way bagpiper Chris Walshaw did for his popular ABC notation. 

::) |Force: and |Accs: were chosen as they are almost same in the Latinate European languages as English.

I'm currently musing on delimiter pairs being  needed if it ever it moves on to paper output,as touched on above. While I can probably cope with melodeons - matching up the push/pulls for the side/side layou suitable for concertinas (try the 30 button anglo) might end up problematic. These guys play much more 'with both hands' than we do.  :|glug
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: docEdock on December 11, 2012, 04:57:04 PM
Thanks. I'm trying to keep it simple, particularly from user point of view as I suspect most will be quite naive to the delights of syntax parsing. 

 |force:Do♯Miâ™­Fa♯Laâ™­Siâ™­DoRéMi

Excellent point. It's hard to argue with ABC nomenclature as a strategy. In the example above |force: are the | and : characters reserved as delimiters?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 11, 2012, 05:05:05 PM
Nope - "|" is to represent the left hand edge
          colon .. sort of on my mind just now  :|glug

The 'delimiters' are ..

  new line (representing a new line)
  space    (representing space)

Tokens are ..

  The 12 notes +/- '♯|#|â™­|b' ("|" usual usage here!) and their do ré me synonyms => 96!!

  '=' representing  .. bellows really?
  'force' or 'accs' - with the rest of the line .. freely interpreted
  'push', and 'pull' = technically just  'decorative'! 
    '>' making it indent /put in a ½ button space - a true token! 

I do like "App"  :D  actually I've seen it work now on a tablet, and a phone!  ;D
Title: Re: Generic chord/scale finder - version 2.1 uploaded
Post by: Chris Ryall on December 12, 2012, 05:13:05 PM
I've (bravely perhaps) uploaded my development version 2.1 which has handles installed for several ideas come in from the two forums. Most are not  yet linked to code to make them work! 

Sound is definitely 'greyed out' though it does now make noises in Firefox. There's a bug in appearance the sound buttons in the simulation which should be transparent (OK at home, not on web)!  As sound is N/A that shouldn't matter. 

English concertina came in 'vertically' but I find it much more manageable with left on the left, right on right. Advice sought from its players.  cc'd "The Other Place" C
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Graham W on December 12, 2012, 09:49:45 PM
Two more layouts to play with:

The first is the Heim standard three row G/C/Acc,  the second is my 3 row D/G/Acc which is basically the Heim G/C layout transposed to D/G.

push>  @  G#  @ G  @  C 
>>>>> @  Eb @  E  @  F 
> G#  A  Eb  G#  A  Eb  G#  A  Eb  G#
E G  C  E G  C  E G  C  E G 
> D G  B D  G  B D  G  B D

= Heim-Standard-G/C/Acc

pull>  @  B  @  D  @  G 
>>>>> @  Bb  @  A  @  F 
> Bb C# G  G#  Bb  C# G  G# Bb  C#
G B D  F  A  B D  F  A  B D 
> F#  A  C  E F# A  C  E F# A 



push>  @ Eb  @ D @ G 
>>>>>  @ Bb @ B @ C

> Bb  Eb  E  Bb  Eb  E  Bb  Eb  E  Bb
 G B  D  G B  D  G B  D  G B
> F# A  D F#  A  D F#  A  D F# 

= Graham.W.D/G/Acc

pull>  @ F# @ A @ D
>>>>>  @ F @ E @ C

> G# F G#  D  Eb  F G#  D  Eb  F
 C D F# A  C  E F#  A  C  E F#
> B  C#  E  G B C#  E  G B C#
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 13, 2012, 08:03:29 AM
Thanks Graham.  I can't possibly put everyone's layout in there.  Also the 'Heim' box is in three versions on the net - the one I played in Chalap definitely had a Dutch inversion - and knowing the chap concerned - it's probably changed again since!

The description vectors presently reside in the javascript at about 120 byte's/box .. but a library would still burst the container. I do want to cover all major variants, and also serve the concertina community in this (bandoneón .. not ruled out).

Theo has made friendly noises about a link here once it stabilises.  Javascript HTTP requests would work, but don't look to have stabilised yet. I think best would be to simply wrap these layouts in XML and use a browser transform to display them as above with a button to link to the simulator .. to expand them for users to play about however they want.  That way melnet and cnet could maintain their own libraries in any manner they wished.  If they had differing XSL on thier server .. it'd display differently to their users :P I've a couple of months off work next year so will have plenty of time for that. The XSL needed is straightforward (albeit tends to be "write-only-code"!) and I've done this sort of thing in other projects.

So .. do keep them coming please  8)

News: from t' Other Place.  They want some of the notes on the rows moved up a bit. Actually I think CSS on modern browsers can handle that - so it's on the wish list  :D something like..

Code: [Select]
^Bâ™­ ^B  D  Eâ™­ >>>> Aâ™­ A  ^C  ^C♯
^Eâ™­ ^E  G  Aâ™­ >>>> Eâ™­ D  ^F  ^F♯
^Aâ™­ ^A  C  C♯ >>>> Aâ™­ G  ^B  ^Bâ™­
^B  ^D  F  F♯ >>>> C♯ C  ^E  ^Eâ™­

.. might be feasible - but not this year!
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on January 04, 2013, 10:12:05 AM
A version 3 has been uploaded with a rather tidier control interface (Dols hated the old one). 

Main changes to http://squeezebox.chrisryall.net/ Sound is still on the too hard tray  ;) A few controls are not quite connected - but I'm more interested in usability/feel comment for now please. TIA Chris
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on January 09, 2013, 12:26:04 AM
Progress wrt the sound system :D It now works in testbed mode in Firefox, and should also function in Opera and Chrome, which also use open source .ogg sound.  The links are HTML5 (which "deploys 2016") so your browser must be a recent one! Out friend MSIE (as ever) offer a proprietary system based on MP3, and I'm damned if I'll record 61 notes twice  >:(

I've also written a how to use http://squeezebox.chrisryall.net/notes.htm which also has working sound. Interested in comments and workability please.  The main page "looks" OK, but I'd anticipate bugs as some parts of the script have changes and it's not fully back tested.

Off to bed ..   ::)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: penn on January 09, 2013, 08:19:50 AM
Out friend MSIE (as ever) offer a proprietary system based on MP3, and I'm damned if I'll record 61 notes twice  >:(
Something like dbPoweramp should bulk convert your files to pretty much any other format.
Steve
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on January 09, 2013, 08:48:23 AM
Thought someone would come up with something. However as an occasional web page maker (my magnum opus was in Contract Bridge) I'm amazed that MS still get are still getting away with doing their own thing. I know I could code eg

Code: [Select]
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {special coding to deal with Microsoft }
.. but I resent that enough to not bother, and simply use W3C's standard  :-\  Having said that .. and cracked the English concertina encoding problem (and a melodeon!) .. I plan a button in honour of Ryan Air  >:E

[edit]There's also progress in 'the other place'  (http://www.concertina.net/forums/index.php?showtopic=14982&st=18#entry142975)* where they have different requirements (indeed)!  But we might have got an "any squeezebox" web-friendly layout encoding here :P

May need to bite the MP3 bullet though .. that'll implement sound for iPads (surely a 'must')  ;)
*Is there a bandoneón.net?  ::)
Title: Melodeon Explorer
Post by: Chris Ryall on January 28, 2013, 06:40:40 AM
Been a while but the Gnomes of Wirral have been busy building and testing.  Version 4 is now loaded

  http://chrisryall.net/chords/

Sound now works (ogg codec browsers only), but as ever one browser is not compliant with what the rest of the Web do and that's caused problems. Can't even get MP3 working on MSIE and 'standard' XML library loads are also blocked (I could go on..) is so I've simply ploughed on without Microsoft >:(

It will be called 'melodeon explorer' and the similarity to to this place honestly reflects melnet's respected position in squeezebox discussion.  For melodeonistas, ME4 now has facility to' split' the left end chords. While that might sound silly (you can't actually play the notes separately) .. if both  notes in a T+5th pair are 'in scale' a 'crossed' chord with a different but 'in scale' bass is likely to sound cool - otherwise -  "don't bother"   :-\

Discussions in 'the other place' have shown that the concertina aficionado needs 'off row buttons' and regards A# and Bâ™­ as 'different', even though these play the same enharmonic note. Rodec (qv below)  allows him to tokenise these as A## and Bâ™­â™­ - not musical I know but at least it's concise and intuitive!

I wanted ME to handle 'any squeezebox' (despite the name) and concertinas do basically lay out 'in rows'  albeit  these are not straight!  This eventually led to the concept of a 'rodec' meaning a notation that describes rows. It is the same as what we started with, but with nudges 'up' and 'down' for a button's location. NB 'rodec' is merely the 'descriptor'; the actualyamount of nudge is in the implementation. I've gone for ¼ and ½ button width ..

   C  Eꜜ  G↑  Cꜛ - first button is on its row, the others up or down a bit (intuitively)

 Sound was basically held up by the 'voicing' issue; a web browser has no clue as to which octave the 'C's above play in, and a generic descriptor cannot safely make assumptions (eg the EC's octaves below .. rise 'upwards')!

Having made my step away from 1970's ASCII, to modern character sets - rodex uses a simply numeric prefix to specify octave.  Note that ME octaves run A..G♯!  It reflects that note 'A'=0 internally, but also'that 'low A' was the lowest I could actually sample on my Gaillard.

Hope I've I might have got the underlying model right. The rest is 'simply implementation' which has whittled a few evenings.

I think it's debuggered enough for a new version and offer it to the squeezebox community for beta test. I'm off later this week for a few weeks having an 'op', and will pick up once I'm home (and able to  sit straight again)  :-\  I've made ME's entry box a DG 4th start melodeon but you might like to try concertina presets to see what can be done.  It you want to type in your own -the 'test' button is [?] and 'build' is [‼]  Here's a couple of 'rodec' descriptors.  (Rodec will be public domain should it catche).

Rodec for a DG 4th start melodeon (note: 'nudged' graphics pull/push)
Code: [Select]
→ push↓ → ©  ºD  ©  ºG
→→→→ →→ ©  ºB  ©  ºC
→ ²F  ¹B  ¹D  ¹G  ²B  ²D  ²G  ³B ³D  ³G
¹Aâ™­ ºF♯ ¹A  ¹D  ¹F♯ ²A  ²D  ²F♯ ³A  ³D  ³F♯
=
→ pull↓ → ©  ºA  ©  ºD
→→→→ →→ ©  ºE  ©  ºC
→ ²Eâ™­ ¹D  ¹F♯ ²A  ²C  ²E  ²F♯ ³A  ³C  ³E
²Bâ™­ ¹A  ¹C♯ ¹E  ¹G  ²B  ²C♯ ²E  ²G  ³B  ³C♯

English concertina rodec
Code: [Select]
³A♭♭ ³G *B↑ *B♭♭↑ →→→→ ³F♯♯ ³F *A↑ ³A♭♭↑
³C♯♯ ³C ³E↑ ³E♭♭↑ →→→→ ³B♭♭ ³B ³D↑ ³D♯♯↑
²F♯♯ ²F ³A↑ ²A♭♭↑ →→→→ ²E♭♭ ²E ²G↑ ²G♯♯↑
²B♭♭ ²B ²D↑ ²E♭♭↑ →→→→ ¹A♭♭ ²A ²C↑ ²C♯♯↑
¹E♭♭ ¹E ¹G↑ ¹A♭♭↑ →→→→ ¹E♭♭ ¹D ¹F↑ ¹F♯♯↑
ºA♭♭ ¹A ¹C↑ ¹C♯♯↑ →→→→ ºA♭♭ ¹G ¹B↑ ¹B♭♭↑
=

Click the buttons to hear sound - it works in Firefox, and Chrome. Opera not tested. Safari plays ME's generic sounds but I haven't copied the notes samples into MP3 yet.  MSIE (latest version) remains obstinately silent

Whoops - spotted a 'wee bug' in the enharmonics - gotta go  ;)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Roger Howard on January 28, 2013, 09:00:05 AM
Terrific work - most impressed.

Best wishes for the op.

Roger
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Steve_freereeder on January 28, 2013, 09:12:08 AM
Love the Ryanair button!  >:E
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on January 28, 2013, 10:01:18 AM
Let this ::) be a warning to others!  However, I have a duty to point out that this particular ME facility relates to 'low cost airlines in general' and is completely unrelated to anything I saw Ryanair's baggage handlers doing at Liverpool airport (http://forum.melodeon.net/index.php/topic,10212.msg126200.html#msg126200) when I flew to Nîmes.  Ryanair was merely used a button logo as it is a leader in the field; indeed this fined airline is a paradigm for customer care in this important sector of Aviation :|glug
Title: Melodeon Explorer
Post by: Chris Ryall on January 29, 2013, 02:50:11 PM
Further background for the technicaly minded:  My present collection of "kit" is accumulating in http://chrisryall.net/chords/library.xml  - but has to be kept as a copy within the 'script' for now - due to MSIE "buggery" (to coin a new word for Microsoft's non-compliance with certain Web standards)! 

In the future this might drive an archive here, on concertina.net or privately. At 1k per instrument the current rodec set uses less space than melodeon.net's header graphic at top of page  ::)

iPad now working!!
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Anahata on January 29, 2013, 07:32:30 PM
Quote
At 1k per instrument the current rodec set uses less space than melodeon.net's header graphic at top of page ::)
Glad to see you're taking care not to bust my server space...
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on January 30, 2013, 07:16:46 AM
Yes its peanuts in present day terms. Went to Anahata's (excellent, recommended) 'self service' ;) control area and found this little graph, with gratifying blips of download activity for versions 3 and 4 (HTTP via the subdomain).  HTTP bandwidth log for the overall site is absolutely steady reflecting how small the new gadget is. But then it's loading in a few seconds onto an Iphone, so we sort of knew that.  :|glug
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: penn on December 10, 2013, 08:19:03 PM
A small bump/endorsement for Melodeon Explorer and a big thanks to Chris.
http://chrisryall.net/chords/ (http://chrisryall.net/chords/)
I've been volunteered for a guest spot in a rock band for a Xmas party, and had to learn some songs quickly - very handy for finding those daft chords that don't fit easily on the box. I'm now able to supply some luscious pads for Love is the Drug.
Thanks, Steve
Title: Re: Chord and scale finder for melodeons
Post by: drstoney on December 28, 2013, 04:28:43 PM
I am the new proud beginner owner of a vintage hohner 10 button melodeon in the unique key of e . looking to find chord and scale for her.  help !!  thanks to all

[[edited to move new posting outside of quoted text.]]

Gosh - had to look that one up - it means IE is getting content it cannot or won't display! OR (if it's like my work) that a firewall is intervening .  Sez here .. (my best guess)
    There is one common known issue for 406 error and that is Mod_security a web application firewall. It is a security module installed on the server to protect from injections attacks. if your script contains stings {sic} which are detected as vulnerable or the code trying to perform suspicious activity then Mod_security rule will restrict your application request and will raise this error. there are many blogs/forums suggested to put following code in .htaccess file so it will fix your problem.
Code: [Select]
<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

<IfModule mod_security2.c>
SecRuleEngine Off
 </IfModule>

I'm presently looking to turn the scale runs into text to that people can save their favourite fingerings in a word processor. That uses the (perfectly legal) javascript string.replace() method to fade the F#s etc to dots.

I did see something about "text injection" when I read that up.  I can only say - it validates as HTML 4.01 and the javastript is utterly standard w3schools stuff.   The only other file types in there are .css for presentation effect and .png and a single .gif for the graphics.

Coming up  - I have to parse text input to generate a simulation of the user's melodeon and manipulate the DOM to make that work - hate to think what MSIE-7 might make of that. But it's "legal".  ::)

Does it do this at home?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: malcolmbebb on December 28, 2013, 07:31:39 PM
Still getting my head around what this does for me - but is there a way to add a 30 button G/D Anglo layout to it?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Steve_freereeder on December 29, 2013, 09:53:08 AM
Still getting my head around what this does for me - but is there a way to add a 30 button G/D Anglo layout to it?
This is what I've developed for my students. Any use to you?
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: AirTime on December 29, 2013, 03:57:14 PM
Just looking at this thread for the first time. Thank you so much for your hard work Chris - a tremendous resource! This will be VERY helpful to me in trying to advance beyond the push it & hope for the best stage!   (:)
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: Chris Ryall on December 30, 2013, 12:12:44 PM
Still getting my head around what this does for me - but is there a way to add a 30 button G/D Anglo layout to it?

can you please post the note scheme here as  separate push and pull diagrams. Each can be a block for the two hands

push
x x x x    x x x x
x x x x    x x x x
x x x x    x x x x

pull
x x x x    x x x x
x x x x    x x x x
x x x x    x x x x

Assuming this is how the rows go? I used to play anglo and can voice it for you. Assume you would like you display rows curved as per steve. The webpage will find ANY chord if the instrument can do it, and some of the partials "work" too. i think 30 anglo happiest in its own keys, but friend Jan, of Gent plays proper jazz on his, and last december we were in G minor. So it's there … 
Title: Re: Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
Post by: malcolmbebb on December 31, 2013, 06:22:04 PM
Thanks Steve - I am trying to extend my new and imperfect left hand skills on the melodeon towards my concertina. As such I am clearly not yet able to fully recognise the value of the tool, so please forgive my ignorance.
Thanks also to Chris for taking the time to develop it, of course  (:) kind of goes without saying, but perhaps it shouldn't.

Moving on the box in question, which a Marcus.  :||: Curves entirely optional!

Push
B  E  G# E  D#      G# E  D# G# C        G# are 3, 4 and 5 on a Petersen tuner
G  D  G  B  D         G  B  D  G  B
F# A  D  F# A       D  F# A  D  F#

Pull
C  F  A# D  F       A# D  F  A# E
D  F# A  C  E      F#  A  C  E  F#
G  C# E G  B       C# E  G  B  C#

Title: Melodeon Explorer: a Web chord/scale finder for squeezeboxes
Post by: Chris Ryall on January 01, 2014, 07:43:44 AM
Try this (indented but not curved)

Code: [Select]
→→ ¹B  ¹E  ¹G♯ ²E  ²D♯ →→ ²G♯ ³E  ³D♯ ³G♯ *C
→ ºG  ¹D  ¹G  ²B  ²D →→→→ ²G  ³B  ³D  ³G  *B
¹F♯ ²A  ²D  ²F♯ ³A → push → ³D  ³F♯ *A  *D  *F♯
=
→→ ¹C  ¹F  ²A♯ ²D  ²F →→ ³A♯ ³D  ³F  *A♯ *E
→ ¹D  ¹F♯ ²A  ²C  ²E →→→→ ²F♯  ³A  ³C  ³E ³F♯
¹G  ²C♯ ²E  ²G  ³B → pull →  ³C♯ ³E  ³G  *B  *C♯

The code converts prefix voicing octaves to suffixes (looks tidier). The range is dictated by that low G 2nd row. Rodec octaves start on "A" and your "G" is a tone below that, so has to be on octave 0.

To explain the "*"'s:  There is no suffix 4 in most typesets, but nor is such a high note very meaningful musically. Any note above octave 3 shows as "*" and voices in octave 4. The actual notes sounding when you click the icons are off my Gaillard

If it sounds too low  you can toggle higher octave (on - Control -- row). Better, edit the rodec in the box. Delete eg "¹G" and replace with 2G, etc etc - press the [!!] button to rebuild. If you want different indents use ">" for an "→" arrow - they convert too.

You can then save the text rodec on any (standard now) UTF-8 text medium (such as "melodeon.net")  ;)  (Yes, Clive, I was going to do a 'Mediæval' ASCII option ... )

Once you are happy with it I can plumb it in as a pre-set. This layout seems pretty common.

[thread title updated to reflect development]
SimplePortal 2.3.5 © 2008-2012, SimplePortal