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 3 4   Go Down

Author Topic: Melodeon Explorer: a Web chord/scale finder for squeezeboxes  (Read 15813 times)

0 Members and 1 Guest are viewing this topic.

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Melodeon Explorer: a Web chord/scale finder for squeezeboxes
« 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
« Last Edit: January 01, 2014, 08:19:27 AM by Chris Ryall »
Logged
  _       _    _      _ 

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Chord and scale finder for melodeons
« Reply #1 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

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Chord and scale finder for melodeons
« Reply #2 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)
Logged
  _       _    _      _ 

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Chord and scale finder for melodeons
« Reply #3 on: November 25, 2012, 05:30:35 PM »

Right! I understand the #/b bit now and it does indeed work.

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Chord and scale finder for melodeons
« Reply #4 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)
« Last Edit: November 25, 2012, 06:20:02 PM by Chris Ryall »
Logged
  _       _    _      _ 

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Chord and scale finder for melodeons
« Reply #5 on: November 25, 2012, 06:52:27 PM »

Been colouring in like mad meanwhile ..   :Ph

That's better  (:)

Jack Humphreys

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 709
    • tunesbyjackhumphreys
Re: Chord and scale finder for melodeons
« Reply #6 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!

Strigulino

  • The Night Owl
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 933
  • @strigulino on Twitter
    • Strig on YouTube
Re: Chord and scale finder for melodeons
« Reply #7 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).
Logged
~~~~~~~~~~~
The Strig

"World-famous poker player. Give her a good poker and she'll play any tune you like." - The Goon Show
Pets:  Two cats, one husband, a D/G Hohner Morgane, a C/F Liliput, a dark and mysterious anglo concertina, a Streb, a Giordy...

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Chord and scale finder for melodeons
« Reply #8 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?
« Last Edit: November 26, 2012, 09:25:49 PM by Chris Ryall »
Logged
  _       _    _      _ 

Strigulino

  • The Night Owl
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 933
  • @strigulino on Twitter
    • Strig on YouTube
Re: Chord and scale finder for melodeons
« Reply #9 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.
Logged
~~~~~~~~~~~
The Strig

"World-famous poker player. Give her a good poker and she'll play any tune you like." - The Goon Show
Pets:  Two cats, one husband, a D/G Hohner Morgane, a C/F Liliput, a dark and mysterious anglo concertina, a Streb, a Giordy...

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Chord and scale finder for melodeons
« Reply #10 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
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Chord and scale finder for melodeons
« Reply #11 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!
Logged
  _       _    _      _ 

Endolf

  • Member
  • *
  • Offline Offline
  • Posts: 29
  • Dino Baffetti Black Pearl II, Beltuna Alex 3
Re: Chord and scale finder for melodeons
« Reply #12 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
Logged
Rag Morris
Pigsty Morris
Benfieldside Side (ex)
Gloucestershire Morris Men (once you're in, you can never leave)

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Chord and scale finder for melodeons
« Reply #13 on: November 29, 2012, 09:09:31 AM »

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Generic chord/scale finder for melodeons, concertinas and other squeezeboxes
« Reply #14 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
     
PS #3 - anyone got a layout for a 36 key anglo Linota? Sold mine to buy a melodeon  ;)
« Last Edit: December 02, 2012, 11:47:05 AM by Chris Ryall »
Logged
  _       _    _      _ 

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place

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
Logged
Theo Gibb - Gateshead UK

Proprietor of The Box Place for melodeon and concertina sales and service.
See my YouTube channel  for videos on repair and tuning

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall

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#
« Last Edit: December 02, 2012, 01:59:58 PM by Chris Ryall »
Logged
  _       _    _      _ 

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place

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?

Logged
Theo Gibb - Gateshead UK

Proprietor of The Box Place for melodeon and concertina sales and service.
See my YouTube channel  for videos on repair and tuning

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall

Sorted.
Logged
  _       _    _      _ 

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place

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
Logged
Theo Gibb - Gateshead UK

Proprietor of The Box Place for melodeon and concertina sales and service.
See my YouTube channel  for videos on repair and tuning
Pages: [1] 2 3 4   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