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 15854 times)

0 Members and 1 Guest are viewing this topic.

docEdock

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 390
  • Hohners, Gaillards, Castagnaris
    • LoafingAboard


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]
Logged
How difficult can it be?
http://loafingaboard.blogspot.com/

Chris Ryall

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

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
« Last Edit: December 11, 2012, 01:23:43 PM by Chris Ryall »
Logged
  _       _    _      _ 

docEdock

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 390
  • Hohners, Gaillards, Castagnaris
    • LoafingAboard

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?
Logged
How difficult can it be?
http://loafingaboard.blogspot.com/

Chris Ryall

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

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
« Last Edit: December 11, 2012, 05:19:50 PM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: Generic chord/scale finder - version 2.1 uploaded
« Reply #44 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
Logged
  _       _    _      _ 

Graham W

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 277

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#
Logged

Chris Ryall

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

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!
« Last Edit: December 13, 2012, 08:41:42 AM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

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

A version 3 has been uploaded with a rather tidier control interface (Dols hated the old one). 

Main changes to http://squeezebox.chrisryall.net/
  • General tidy up and fettle
  • Chords are split (presently default) to help find crossed chords
  • More presets - English concertina fans have offset buttons (at cost of no edit)!
  • You can hide/show inactive controls using top left tick boxes.
  • A scratchpad can receive text versions (graphics near working) for cc into your word processor
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
Logged
  _       _    _      _ 

Chris Ryall

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

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 ..   ::)
Logged
  _       _    _      _ 

penn

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 574

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
Logged
Hohners, Dino Baffetti, Lilly, Benny + a lot of junk.

Chris Ryall

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

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' * 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?  ::)
« Last Edit: January 09, 2013, 10:55:03 AM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Melodeon Explorer
« Reply #51 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  ;)
« Last Edit: January 28, 2013, 06:49:20 AM by Chris Ryall »
Logged
  _       _    _      _ 

Roger Howard

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 606

Terrific work - most impressed.

Best wishes for the op.

Roger
Logged
G/C Gaillard 2 row, 3 voice, D/G Lilly, D/G Pariselle 2.6 row, Preciosa Bb/Eb.

Steve_freereeder

  • Content Manager
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 7511
  • MAD is inevitable. Keep Calm and Carry On
    • Lizzie Dripping

Love the Ryanair button!  >:E
Logged
Steve
Sheffield, UK.
www.lizziedripping.org.uk

Chris Ryall

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

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 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
« Last Edit: January 28, 2013, 10:35:35 AM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Melodeon Explorer
« Reply #55 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!!
« Last Edit: January 29, 2013, 02:52:17 PM by Chris Ryall »
Logged
  _       _    _      _ 

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

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...
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Chris Ryall

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

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
Logged
  _       _    _      _ 

penn

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 574

A small bump/endorsement for Melodeon Explorer and a big thanks to Chris.
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
Logged
Hohners, Dino Baffetti, Lilly, Benny + a lot of junk.

drstoney

  • New Starter
  • Offline Offline
  • Posts: 1
Re: Chord and scale finder for melodeons
« Reply #59 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?
« Last Edit: December 28, 2013, 05:02:38 PM by Theo »
Logged
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