Melodeon.net Forums

Discussions => Teaching and Learning => Topic started by: Chris Ryall on June 28, 2021, 12:28:57 PM

Title: Melodeon Explorer
Post by: Chris Ryall on June 28, 2021, 12:28:57 PM
ANNOUNCE that the  Melodeon Explorer (aka “Chord Finder) app is being recoded,  partly because using the D/E F#/G … description used in the Melnet library is in terms of absolute notes, attached to zinc plates. ie it’s for melodeon makers and fettlers. Transposing layouts and tidying up the consequence stayed on my too hard list.

But mainly to take advantage of the fantastic features of EC6 javascript, and CSS3 style sheets. They even insert the ‘/‘ automatically in layout view. My design objectives are

1 totally relative simulation model based on the “start” key of outer main row
   Apply “G” or “D” to that and everything transposes. Trick also works on eg D/D# kit!

2 Three views : “as per Melnet” for those that like it, and on screen edits
                      push, pull only, essential for chords, useful for x-row scales

3 Playable (I already have note samples over 5 octaves 👍. A test revealed that
    that a web browser can “play” both chords and arpeggios from these

4 Ability to “invert” a chord or scale across the whole layout (both ends!)

5 An advice section suggesting chord extends, whether blues scale works, “out”
   chords from parallel scales. Yes that’s jazz stuff  :neigh:

6 Set the tonic for a scale or chord, or change note of the START button at will

7 Save a “tweaked” layout to own PC or tablet easily

8 Retention of the “Ryanair” button (a Clive request)

From Martin Matthew  :|bl

Hey Chris, here's hoping you are well.  Any chance you could add the "extra spaces" to Melodeon Explorer for the full-on 33/12 C/F club set up

Mainly covered by [7]? I want a library of all major button layouts and Club is one of those. 🤔 Is Bb/Eb, or C/F more common? Don’t want to clutter the library too much
Title: Re: Melodeon Explorer
Post by: Michael Driscoll on June 28, 2021, 12:39:05 PM
I don't really understand all of that. Is this a useful App. that has been the subject of discussion before? I couldn't find this on the search box.
Title: Re: Melodeon Explorer
Post by: Gena Crisman on June 28, 2021, 02:51:43 PM
Hi Chris,

I've batted around the idea working on some similar software - ticking some of your goals there (but probably moving away from some of what a lot of what melodeon explorer was made for originally). I'm not a web dev though, and having had plenty of work throughout lockdown, it's mostly stayed on the back burner - spending more time at the computer hasn't exactly excited me, heh.

Specifically though, one of my goals was fast, simple, layout transposition, and the results being sharable & importable via plaintext in some way. I also wanted to generating a lester-style vector based layout, and include a solfege system to allow greater & faster understanding, in both directions.

All the web stuff & CSS is pretty outside of my knowledge, but, the solutions & approaches for transposing etc I already have figured out. Are you yourself doing this development? Are you interested in working with anyone else or open sourcing the project in some way?
Title: Re: Melodeon Explorer
Post by: Matthew B on June 28, 2021, 03:12:36 PM
Mainly covered by [7]? I want a library of all major button layouts and Club is one of those. 🤔 Is Bb/Eb, or C/F more common? Don’t want to clutter the library too much

First of all, thanks for building the tool.  It's really useful, and I appreciate your efforts.  Last things first: C/F is by far the most common Club tuning in my experience. 

The Club option on the current Melodeon Explorer covers a lot of the possibilities.  It differs from the "traditional" Club layout in two respects.  Modern 30 key Club boxes have seven buttons on the helper row, rather than the six on your current diagram.  There is typically an additional high octave C#/Eb on the knee end.  Also, the highest button on the C row is a G/C (rather than the G/D on Melodeon Explorer). 

The "full-sized" 33 key instruments, have ten buttons on the "helper" row.  The two "extra" buttons on the chin end are F#/Ab followed by D/Eb.  On the knee end the "extra" button is an additional D/Eb.  This puts the sequence of accidentals and reversals F#/Ab, D/Eb, Eb/C# in roughly the same order over three octaves. 

The first button on the outer (C) row on the 33 key instrument is switched to a low C/D to extend the scale a bit lower. This is possible as the low F#/Ab has been moved up to the helper row. 

The left hand has additional bass notes Eb/E and Ab/B, paired with additional chords F7/C7 and C7/G7. 

 
Title: Re: Melodeon Explorer
Post by: Chris Ryall on June 28, 2021, 03:22:09 PM
Confirm that layout is now essentially “vectored”, albeit only a 1 dimensional vector. Transpose will be trivial 👍

So will solfege. My folksy version already had that. I just add a 2nd lookup table for the vector.  The issue there is space on the screen, sol# takes up twice the space of G# or Ab.  CSS3 should handle that. You can make any screen element any size, colour, even add that ‘/‘ for Sol#/La# automatically. To show only one of those notes, I just suppress dispay of the other. SO much easier 🙂

yes, all code will be Creative Commons. 
Title: Re: Melodeon Explorer
Post by: Anahata on June 28, 2021, 03:40:48 PM
I don't really understand all of that. Is this a useful App. that has been the subject of discussion before? I couldn't find this on the search box.

Chris didn't supply a link. See https://squeezebox.chrisryall.net/
(it has been mentioned on MelNet before, but I wouldn't expect people to remember where it was)
Title: Re: Melodeon Explorer
Post by: Gena Crisman on June 28, 2021, 04:24:52 PM
I meant https://en.wikipedia.org/wiki/Vector_graphics Chris, so, people can also save & share eg svg files, instead of jpegs or pngs, and can keep/print a fixed/physical copy or what the interface is displaying. I got about this far: https://codepen.io/chromatophore/pen/OJMOKoa - all the http and css are placeholder really, basically the last thing I remember working on was the bass/chord area and how to adequately define it, after having figured out how I'd approach spelling the notes. It was very much a work in progress (and goes quite wrong if you resize the window), and my next hurdle was the going to be the UI and deciding on getting data into and out of the system in plain text.

Well, in any case, I guess I misunderstood your opening line there (http://forum.melodeon.net/index.php/topic,27173.msg327638.html#msg327638) - I thought you were saying that transposing entire layouts was a challenge you were still not intending so solve with this update. I presume you're treating the notes as numbers this time, and have picked a way to translate these back to what will make sense for the layout (I decided on standardised, but customisable, spellings of notes was the way to go, at least that way we can have double sharps/flats as needed without having to guess at something which will be obvious to the end user).

Also, the Creative Commons licenses are not really intended for use with software (https://creativecommons.org/faq/#can-i-apply-a-creative-commons-license-to-software). Regardless of which, I was really asking more, are you intending to seek and accept assistance from other software making people and intending to maintain the project on, for example, github or sourceforge, etc, where you might accept feedback and pull requests/patches etc. I'm asking about collaboration.
Title: Re: Melodeon Explorer
Post by: Chris Ryall on June 28, 2021, 04:46:23 PM
I just do the graphics in CSS. Put a border around the G# and round the corners into a button shape. For G#/Bb I use plain old text, even that is editable in HTML(“5”)! But basically I’m moving away from the 2010 “Rodec” description of melodeon rows. Into a rich library of button arrangements. No typing in. Just raise or lower +/- semitones, at will.

I’d not imagined Matthew’s 7/10/11, but can default to that. Deleting buttons is less complicated than adding.

Plenty of time … I retired off the GMC register in January, and a surgical disaster has me stuck on this couch, dieting for an op 200 miles away, hopefully December.

Still wrestling with the new const/let convention in js, but it’s sound, and a good idea. I’ll set up a beta version later this month. We’ll take it from there, though further ideas encouraged.

Thanks for the encouragement, all. Matthew, could you please pm me that layout, or a link to it. TIA (I can process that en sofa, if not yet … en solfage) 😉

Gina, as the layout view is plain text anyway, share is easy. Just copy/paste it wherever. As computers all have so much memory nowadays it’ll copy a user’s conversation into a “log” ditto copy/pasteable as plain text.  Yes to open source. I’m commenting before I write code, to help with that 🙂

@ 2-row owners - this is mainly for 2½+ row kit. But the facility will find all chords for you, and might help to explore the harmonic minor of your outer row.  It’s also mainly “about” cross rowing style of play

Oh, I forgot … HTML’s new web memory makes saving idiosyncratic layout to your local ‘disk’ easy too. (I found ‘cookies’ a bit over complicated 🥴). It’ll pop up as first item in the “library”
Title: Re: Melodeon Explorer
Post by: Eshed on June 28, 2021, 09:28:43 PM
Hi Chris,

I've batted around the idea working on some similar software...
All the web stuff & CSS is pretty outside of my knowledge
Describes me precisely!
I toyed with the idea of making some open source melodeon.js, but a few looks at how to do layout demoralised me, so chapeau to you Chris!
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 11, 2021, 02:12:50 PM
Layout coding consultation: (non geeks: please ignore) 😉 objectives, and path  were:-

1 separate pitch and layout information  (ME 1.0 mixed these)

2 use melnet’s 3rd, 4th start concept. let’s face it, thats how WE describe layouts. No-one else will use M.E 2.1? 😉

3 Avoid JSON or XML representation of the model. It’s hard to read and folk may want to swap layouts here?

4  Using D/E for a plate=button descriptor is OUT. It mixes tonality and structure.  00/02 as semitone intervals is … fine for start button. And very attractive. But what about octave up? Button 2? The bass end?

5  integers drive you mad! If E is “2” or “02” then it’s 14 further up. And -10 in octave°

6 I even tried hex. Worse! It’s full of ABC’s … another confusion trap!

The code can map any of these, and in the end I’ve gone for a mixed notation in nn/mm “melnet friendly” format. Each “nn” is a tuple [octave,note] with octaves numbered 0 for start button, 2,3,4 going up and “-“ short for -1 for notes lower than start button. The note part is semitones from start note. We get 00/02 as first button outer row. I find that intuitive. Inner row “start” is 05/07 👍 on a halftone B/C (or D/D#) it’d be 01/03.  3-row also look tidy and read easily. Ditto accs … Eb/F might be end row or helper row, but still appears  as 01/03 relative to start=D

Those pesky 11 intervals? 0-9 are easy. I could extend to 10,11 but then you get plates coded 011/20 (C#/D). I prefer T=ten H=11 which allows a diatonic scale of

   00 02  04 05 07 09 0H 10  (0T 10 would be mixolydian, b7h note)

Does that work for others? Alternative is 00 02  04 05 07 09 011 10 ?

The other bit of the tuple is octave. This notates basses, and notes to head end of “start” as

   (chord)  -0/-7 (=D/A)  (chord)  -5/-0          on 8 bass left end (in any key)
   (chord)  -9/-2 (=D/A)  (chord)  -T/-T    <= or -10/-10 ? 🥴

@Clive we’re back to that voicing issue. But in my experience makers voice bass with lowest available notes? And again, having all basses as “-N” is nice, clear, readable?

The chord tonics would be

  17/10   10/15
  19/12   1T/1T  (or 110/110) … but chords are another issue!   
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 11, 2021, 02:24:23 PM
As things progress - one could either type a layout, or more likely copy/paste from here? … into ME’s scratchpad. Press [load] and it would simulate 🙂  Within that … maybe flip Eb/F to F/Eb,  and see what that did to your B7 chord 🥴

Edit1:  Would a 12 semitone notation of 0,1,2,3,4,5,6,7,8,9,T,Δ be more intuitive? Any other ideas?

Edit2 better ? 0123456789ØΔ (Theta, Delta) echoing diminished and Maj7 notation?

pseudo code for eg 4th start would look like this (note tonality / layout separated)

Code: [Select]
name :  Anahata 2-row 4th start D/G
start : D
left:
07/02 -0/-7 00/07 -5/-0
04/09 -9/-2 05/05 -Ø/-Ø
right:
     03/05   -7/-Ø  00/04  05/07  09/0Ø  10/12  15/14  19/17  2/1Ø 25/22  29/24
 06/08   -5/-7  -7/-Δ  00/02  04/05  07/09  10/0Δ  14/12  17/15 20/19  24/1Δ  27/15

Note:  ØΔ interval symbols would always lie on main rows : eg (start=D) C=Ø, C#=Δ. They would almost never need typing in when modifying a layout. 🙂 Another miracle of the diatonic scale?

A glichton button would coded 10/10. Dutch inversion as 12/10

This is internal,  at worst for layout posting here. On screen editing is normal ‘notes’, with facility to [export layout]
Title: Re: Melodeon Explorer
Post by: Gena Crisman on July 12, 2021, 04:23:53 PM
My approach was to define the starting pitch, eg G4, and in code, consider that as a number relative to C0 = 0, and any/all note 'numbers' being considered from there would be relative to C0 = 0, internally at least. As almost every single melodeon layout is based on some kind of repeating pattern, which a few variances layered on top, I defined the start pitch, the button that anchors the pattern, and then only really individual 'odd' buttons top of it.

I did not find integers to drive me mad particularly, but I too did not care to deal with them by eye, particularly, outside of the 0-12 range. Consider though that in a very plain human readable way, the only information you need to define the melody side of a D/G G scale layout is:

(edit forgot to include button count, lol)

Row 1, 11 buttons
D4 button 4
Pattern [ [0,4,7], [2,5,9,11] ]
(1,1) = (Bb4/G#4)
(1,2) = (G3/A3)

Row 2, 10 buttons
G4 button 4
Pattern [ [0,4,7], [2,5,9,11] ]
(2,1) = (Eb5/F5)
(2,2) = (B3/C4)

And I'm sure you can bake that down to very little actual exchangeable data very quickly, particularly if you include a few 'standard' patterns in the code. If people can get a URL to share their layout with others, they likely won't need to paste anything in plain text, and if they want to keep it, they'll probably save an image of it. However, if they do:

Consider that while you describe your numbers there as reading easily, the relationship of buttons between the rows does not, in my opinion, read easily. The only solution that I think would read easily are the is the eg A3-G4 notes, which naturally is the point of generating the layout. I wouldn't worry too much about it, and honestly I would consider taking the punt and just doing having it generate that fixed width text with Bb4/C#5, if the layout being fully recoverable from the text is important to you. You already surely need to support the definition of the 3 character wide '-10' for any layouts that include a low octave note on the same row? And probably have to have an interpreter for 'D#4" being the 'start' button of a row, and, must be able to convert numbers back to A-G notes in some way.

edit to add, just saying, what you're describing is wanting to have your cake and eat it - I don't think there's a middle ground that isn't esoteric as all get out, so, pick one or the other, I'd say. Is this text for the program's benefit, or for the human - do whatever best serves that thing's needs.
Title: Re: Melodeon Explorer
Post by: Eshed on July 12, 2021, 06:45:14 PM
A small point - I would try to stay within the confines of ASCII and keyboard available symbols. I'd much prefer 10, 11 etc. over thetas and deltas.
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 12, 2021, 08:48:19 PM
A small point - I would try to stay within the confines of ASCII and keyboard available symbols. I'd much prefer 10, 11 etc. over thetas and deltas.

1. digits 0 to 9 are not enough to code the *12* semitones in each octave
    One either wraps back to the 0 in a decimal way, losing the pattern Gina
     pointed out. Or extends to 0,1,2,3,4,5,6,7,8,9,😎,🥴 whatever. The actual
     symbols are arbitrary, but I wanted to use something “intuitive” After
    experiment ø and Δ felt OK to me (already in use to describe the ½-dim
    and Maj7 chords, both of which have 7th in them.

    PC’s are utterly tireless. No reason why both these and T,H be accepted
    in a button descriptor. So that’s a 👍

2  ASCII? Well, that’s … 1970s. I used it for terminals for my degree project
    1978. I’ve been typing and coding in UTF-8 for about 20 years, incuding
    thus reply. I tap in française, Bjørn, and strange ¿spanish? stuff all on my
    tablet keyboard, at near normal speed.

    But this won’t be an issue. Most layouts will load from a library similar to
    Melnet’s, and be “tweaked”. It was a pleasant surprise to me that those
    awkward 7ths all lie on the main 2 rows 😀. The row end accs, and
    most helper row stuff are in the easy typeable 0-9s. 

    Very few people will tap in layouts anyway. At present design stage the button
    editor can raise (or lower) reed pitch at a click. eg D=>Eb => E. Or back down!

    So this is for anyone programming, either the background interface, or “coding”
    an unusual keyboard like my C#/D/G, François Heim’s Dutch inversion, or some
    crazy whole-tone apart scheme. Those do exist!

    So that’s a commitment to both T,H and ø,Δ working to code C,C# on D/G kit,
    that’s F,F# on your G/C and so on. It’s important to realise that most melodeons
    play the same, but in different keys. All is relative to the “start” button on main row

edit: if I alias  T,H with ø,Δ, then 10,11 can be made to work too 🤔 but it’ll be a bit ugly
 
Title: Re: Melodeon Explorer
Post by: Gena Crisman on July 12, 2021, 09:16:43 PM
Well, remember that:

start : D4
 06/08   -5/-7  -7/-Δ  00/02  04/05  07/09  10/0Δ  14/12  17/15 20/19  24/1Δ  27/15

and:

start : D4
Bb4/G#4 G3/A3 A3/C#4 D4/E4 F#4/G4 A4/B4 D5/C#5 F#5/E5 A5/G5 D6/B5 F#6/C#6

as far as the computer should be concerned, it should to be quite trivial to move between these, no? Is it not in fact vital for presenting the final layout, and, working out & displaying chords?

1 separate pitch and layout information  (ME 1.0 mixed these)

4  Using D/E for a plate=button descriptor is OUT. It mixes tonality and structure.

I can not really see the benefit that the former solution offers over the latter to... either the human or a computer, really. The only information it feels like you were missing before was 'start : D4'. If you know that the row is considered to be a D row, then surely with an array of human readable notes, you would know all of these numbers and symbols? What is the advantage, in your eyes? Is it not quite trivial to separate the two?
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 12, 2021, 09:28:17 PM
My approach was to define the starting pitch, eg G4, and in code, consider that as a number relative to C0 = 0, and any/all note 'numbers' being considered from there would be relative to C0 = 0, internally at least.

I walked straight into the “absolute” trap in version 1. Basically it’s utterly readable, a straight crib from Melnt’s layouts. Except that those are not “layouts”! They are waxing in diagrams for makers and fettlers.

An analogy might be HTML code used for all web pages including this one, and the  style that might, or might not be overlain onto it. Back to melodeons, my C♯DG
and F♯GC boxes have the same ‘“layout”. The tonalities (start=D, start=G) are overlain onto that by the maker.

I take your point about the diatonic pattern, shared with mouth organs? But what about a Club Gleichton, the Dutch inversion, or Grenoble’s C,♯5 inner row?

Transposition is a pig if one codes absolute notes. Whereas a computer can map (Anahata 4th start, D) into a screen representation in milliseconds. And in any key!

I also want to ‘throw” chord intervals, and a tonic at a simulation and see “what works, what doesn’t” That’d be triads in folk mode, 4-chords for those who like harmonic minor or klezmer stuff, and melodic minor modes for the truly cool. Also bebop and Blues scales. My kit can cover about 10. F♯  Bâ™­ and E are the fluent ones. Aâ™­ well night impossible on either 🥴 

@Eshed - I’m typing these ♫ musical symbols in on iPad too! 😉
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 12, 2021, 09:45:46 PM
Gena has extended her argument thile I typed in. Yes, it has much merit, in a group used to “wax in” layouts. I can only offer that https://chrisryall.net/chords/ … felt like a dead end. I would be very interested in your prototype, if it’s online? ME2.1 is still to buggy to go there

Here’s copy pasted “scratchpad” chord diagrams from my present breadboard. Would it be useful? I had not realised how much of the chord was there on push! 

Code: [Select]
Pull Emin9
       â—Œ    F♯    â—Œ   â—Œ    â—Œ    F♯   â—Œ    â—Œ    â—Œ
â—Œ    â—Œ    E    G    B    â—Œ    E    G    B    â—Œ    E

Push Emin9
  â—Œ    â—Œ    G    B    â—Œ    G    B    â—Œ    G    B
â—Œ    â—Œ    â—Œ   F♯   â—Œ    â—Œ    F♯   â—Œ    â—Œ    F♯   â—Œ

The objective is to find any chord (or scale, they’re the same thing) any key, invert at will.

‘Play’ that as a chord or arpeggio.  Any layout, any tonality. It might even suggest functional harmony. Another idea is to 'score' a layout for playing in off piste scales. As we've all discovered - some lie under the fingers just fine. Whereas the melodeon 'fights' other ones? However in a purchase - we commit to restraints that (I at least) didn't appreciate in my earlier days  :(

To be clear - users will only see clickable (and tapable) buttons on screen. Shot attached
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 12, 2021, 10:49:16 PM
@Ashad - here’s what an [octave/decimal] coding looks like using decimals. But on screen you’d see the shot above. Layout text is only for storing or exchanging stuff. eg If you switch from Chrome to Firefox browser any save layouts will disappear.  They all save their “cookies”, now called local  storage in different ways!

@Gena the Eâ™­ row’s  .0/..  .5/..  .9/..  extends across the numbered octaves, as in your method. The difference is that I prefer to anchor to the [start] button (which means something to my index finger), rather than to any particular frequency. [Start] always codes as “00/02”  Octave° tonic and octave°2nd interval. Bâ™­/C on your screen and editable there.

Code: [Select]
name :  Anahata 2-row Bâ™­/Eâ™­      **  Bâ™­=10, B =11 text encoding, in this case **
start : Bâ™­
left:
       07/02 -0/-7 00/07 -5/-0
       04/09 -9/-2 05/05 -10/-10
right: 03/05   -7/-10  00/04  05/07  09/010  10/12  15/14  19/17  20/110 25/22  29/24
       06/08   -5/-7  -7/-11  00/02  04/05  07/09  10/011  14/12  17/15 20/19  24/111  27/15

I’ve moved the rows a bit. I’ll make no difference. And also different key. You’ll see rows in B♭/E♭ now. Think of this as a “recipe”
Title: Re: Melodeon Explorer
Post by: Gena Crisman on July 12, 2021, 11:44:29 PM
Transposition is a pig if one codes absolute notes.

Why would that be?

If you can convert D4 + 09 to B4... what would stop you from converting B4 to D4 + 09? Like if you know it's a row based on D4, that seems pretty easy? Even if you don't know, you can pick C0, B4 is +59. OK let's transpose it 5 semitones up, ok now it's 64, and that's E5.

Like the main challenge in my mind of going through numbers is: is 63 D# or Eb? Pretty sure you may have that same problem with your described approach.

But what about a Club Gleichton, the Dutch inversion, or Grenoble’s C,♯5 inner row?

Figure them out the same way you opt to do accidentals, I imagine.

edit - so, wait, is part of your motivation that Bb major as Bb4 D5 F5, straddles over a C octave step up, and that 00 04 07 is, to you, a better way to convey it as it deals more with 'same octave as the row's tonic'? Is that what you mean when you say the layouts with C4 etc are for those 'waxing in reeds'? Does that apply when you think about, let's say, forming a G minor chord on that same layout? Like does 09 10 14 jump out at you as easily?

As noted https://codepen.io/chromatophore/pen/OJMOKoa was my prototype but I was more looking more at getting the layout drawing done in svg than I was text I/O, so it's all very dictionary-y
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 13, 2021, 09:25:22 AM
There's been some confusion as to "order" here.  I originally posted "00/02" intended to mean [octave0,semitone0/octave0,semitone2], which is in essence a heiarchical coding concept.

Gina, also I see Clive, (in his "chords" article) describe reeds in piano notation, where [start] note on a G row might be "G4/A4".  As the latter seems to be pretty common in the forum. I'd better go that way  :Ph

I still don't like mixing layout and tonality in what I call a 'rodec'. However, as Gina suggest, if a description method is rigourous and internally consistent, mapping  to a different tonality is not all that difficult. The new EC6 javascript can do that for a whole row in a single line of code!

The objective remains  readability so let's pick a standard tonality and then use the piano notaion.

Which main row though? D/G is ... a bit peculiar to Britain?

G/C is I believe  most common Internationally, and I'm no 'little Englander'! I'd suggest a convention to using C as the 'standard' row, C4/D4 becomes the important [start] button, again respecting Melnet usage. That also minimises #/b's on  main rows to a single F#. (meanwhile throwing all codes into #/b's  on a semitone companion layout)!

[start] now resides on on the inner diatonic row of a "4th interval apart"  layout.  The scheme is very readable  caters 'intutively' for B/C and C/C♯, even George's B/C/C♯ kit. And can be mostly typed using one finger  ;)

In 'getting into' a layout you'd first seek out it's C4/D4 button, on the right end. 

Here's what that  might look like as a Rodec, with the [start button] *highlighted* 

Code: [Select]
name :  Anahata 2-row 4th start
start : G  /* transposing C=>G, and G=>D in the simulation */
left:
    D3/A3    G1/D1   G3/D3   C1/G1
    B3/E3    E1/A1   05/05   F1/F1
right:
    Ab4/Bb4  E4/F4  G3/B3  *C4/D4*  E4/F4   G4/A4   C5/B4   E5/D5   G5/F5   C6/A5   E6/B5   
    Eb4/Db4  C3/D3  D3/F#3  G3/A4   B4/C4   D4/E4   G5/F#4  B5/A5   D5/C5   G6/E5   B5/F#5   D6/A6

This layout would be transposed up to an inner row [start] of G4/A4 before display. That too .. works well as G/C seems to be the 'sweet spot' for real, ie metal reeds.  G/C medodeons don't have a 'squeaky end'?  All simulation build transpositions could default to "upwards".b Another welcome simplification.

There's no perfect solution in this as each decision throws up a problem elsewhere. But might something like this .. annoy the fewest people?
Title: Re: Melodeon Explorer
Post by: Gena Crisman on July 13, 2021, 06:09:30 PM
I still don't like mixing layout and tonality in what I call a 'rodec'. However, as Gina suggest, if a description method is rigourous and internally consistent, mapping  to a different tonality is not all that difficult. The new EC6 javascript can do that for a whole row in a single line of code!

The objective remains  readability so let's pick a standard tonality and then use the piano notaion.

Mixing layout and tonality could be a 'mistake' - like I do believe that this concept:

Think of this as a “recipe”

has merit. I posted this earlier, and this, also, is a recipe:

Row 1, 11 buttons
D4 button 4
Pattern [ [0,4,7], [2,5,9,11] ]
(1,1) = (Bb4/G#4)
(1,2) = (G3/A3)

Row 2, 10 buttons
G4 button 4
Pattern [ [0,4,7], [2,5,9,11] ]
(2,1) = (Eb5/F5)
(2,2) = (B3/C4)

And that could be defined in an even less human readable manner, all those G4s and B3s could be replaced with numeric offsets etc and baked down. But to me, that is data for the computer, not for me, a human, trying to figure out what I can play. The computer takes the recipe, and turns it into the cake/layout that I want to see.

If human readability of this text is the primary concern, ie it having clear value to people without the software interpreter you intend to create, then there seems there are very few options. If this is text for humans, then, humans are unlikely to be able to transpose a G/C layout to D/G. Basically: I do not understand the objective of this text because the way you talk about using it does not seem to coincide with how you seem to be designing it. What is the point of there ever being a human readable, text version of the layout that defines all of the buttons, if it is in a different key? Like presumably this entire layout text block can be generated by the software?

At this stage your goals with this text definition seem very unclear to me as they don't seem to match with what you're saying. But, it should be straight forward to reconsider in the future. Perhaps you should persist with what you feel makes sense, and with time it will become clearer? Whatever it is you choose to do, making a text interpreters that convert it all which ways should be principally straight forwards.
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 13, 2021, 08:46:56 PM
Thank, Gina. My grandma had knitting patterns like that 😉.  Presently the parser is snarked. Iit does the more awkward buttons bit, somehow then choking on “Anahata”! 🥴 

I’m due some “not without risk” surgery towards  the end of the year, and would hope donate this to melnet, if it works. ie it has to be soundly coded and documented, with a sound underlying data model. ME v1 wasn’t coded in that way. It evolved.

People’s comments have been really useful, thanks, and I’d been cribbing of this site’s layout diagrams for inspiration. But in the end the meta language and code won’t affect users*. If they see either then a wheel has fallen off?

Except* these rodecs? Internet security rules mean that a user changing browser would lose all locally saved work. Text “backup” … has merit? But the melnet library will be “built in”. They each use fewer bytes than … the yellow melodeon  icon at top of this page.

This thread is in very much geek mode. As explained above the simulation will be, and has to be WYSIWYG. I’ll try to get something online this month. 

Chucking chord and scale interval patterns at the keyboard exemplars will be the fun bit 🙂 It’ll hopefully open up ideas of a more musical nature. Will go to ground for a while now.
Title: Re: Melodeon Explorer - teaser
Post by: Chris Ryall on July 28, 2021, 06:05:48 PM
I can report .. slow progress, but ME on my screen does begin to 'look' like a melodeon. The buttons look 3D, and they now play the expected notes (I have samples running A2=>A7). It can do L, M voicings, or bandonèon.

Layouts (4 so far) are all laid out on a 'common' G/C basis (the simplest format, as per above). Any other tonality eg  gets  eg {C_maps_to:'G'} as a tag. Soon it will transpose at will, on screen. a Clive request. Saving that to local storage is still rudimantary, and it did turn out that anything saved in eg FireFox cannot be reached by eg Chrome. If you change browser you'll need to transfer favourite layouts as text.

The text layouts are typeable as simple ASCII as requested, with strictly A, Bb, B, C, Db, D, Eb, E, F, F#, G, Ab  allowed for now*. This naturally throws  F#'s onto the main outer row, and all other acc's as 'b's ... elsewhere, making errors obvious (:)  The reed frequency format will be in 'piano' notation eg Ab4/Bb4 (in boring equal temperament, I'm afraid). 

Sets, (strictly tuples) of note intervals eg [0,3,7,10] => minor7 chord and [0,2,3,5,7,9,10] => dorian scale, and can played as chord, or arpeggio. It can even 'stress' dorian's 'sensitive' #6!

A bit of experimental musicality is working already.  Here's what ME produced, when I asked what cross fingered chords might exist on my 18-bass (has all 12 bass notes) favourite box.

Code: [Select]
Melodeon Explorer found: 12 minor7, 12 major7, 12 sus chords on left-end.
   NB: a maj7 cross-chord needs your 3rds switched or taped out,
    if not: the 3rd âž¡ augmented 5th, relative to its new bass!

Tonic: Chord(s)
A : pull C/G=>[Gsus]       push C/A=>[Amin7]      push D/A=>[Asus]     
A♯: pull A/F=>[Fmaj7]      push D/A♯=>[A♯maj7]                          [edit: whoops! Bugged 🥴]
B : pull A/E=>[Esus]       push D/B=>[Bmin7]     
C : pull D♯/C=>[Cmin7]     pull E/C=>[Cmaj7]      pull F/C=>[Csus]     
C♯: pull E/C♯=>[C♯min7]    pull F/C♯=>[C♯maj7]    push F♯/C♯=>[C♯sus]   
D : pull C/A=>[Amin7]      pull D/A=>[Asus]       push F♯/D=>[Dmaj7]     push G/D=>[Dsus]     
D♯: pull A/F♯=>[F♯min7]    push F♯/D♯=>[D♯min7]   push G/D♯=>D♯maj7]   
E : pull D/B=>[Bmin7]      pull D♯/B=>[Bmaj7]     pull E/B=>[Bsus]       push G/E=>[Emin7]     
F : pull D/A♯=>[A♯maj7]    pull D♯/A♯=>[A♯sus]    push A♯/F=>[Fsus]     
F♯: push A♯/F♯=>[F♯maj7]   push B/F♯=>[F♯sus]   
G : pull F/D=>[Dmin7]      push A♯/G=>[Gmin7]     push B/G=>[Gmaj7]      push C/G=>[Gsus]     
G♯: pull C/G♯=>[G♯maj7]    push B/G♯=>[G♯min7]    push C/G♯=>[G♯maj7] 

I'd expected about 12!  On D/G 8 bass it found Amin7, Bmin7, Cmaj7 Gmaj7, Dsus and Gsus.  In the production version the [name]'s will be clickable and show the chord on the simulated left end. If you've spotted that it's all ♯ notation .. that'll be fixed soon. [as will the bugged chords I’ve just spotted 😕]

Just to show folk 'where I'm heading'.  I'll leave this thread open for constructive comments for a day or so. Reasonable wish-list stuff 'considered' as implementation might be easier, at this stage than later  (:) 

Would anyone be interested in 'modern' graphical chord-theory, based on the circle of 5ths?  A 'melodic minor' exemplar attached below (see Ethan Hein's blog (http://www.ethanhein.com/wp/2011/the-freakiness-of-melodic-minor/)) 


* as the note 'codecs' are looked up in a map, C# D# G# etcetera are possible, and might make sense in the 'rodec' describing a halftone system C#/D, or D/D# ?
Title: Re: Melodeon Explorer
Post by: -Y- on July 28, 2021, 09:07:36 PM
Chris, your attached image made me think of this webpage here:
https://forum.tradzone.net/rose/

But maybe you already knew about it?
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 28, 2021, 10:58:35 PM
Similar, new to me, and a superb source of exotic scales! I actually do use double harmonic minor as intro in my version of England’s “7 gypsies” song 🤔
Title: Re: Melodeon Explorer
Post by: Chris Ryall on July 29, 2021, 09:55:05 AM
Slept on this. Cannot find similar graphic for harmonic minor so I sketched one (finger in iPad, sorry!)

The first is the scale trajectory for C harmonic minor. As expected, it’s a bit lopsided, reflecting its characteristic 1½ tone leap from Ab =>B. But we know that that offers much better cadence?

The 2nd graphic is startling to me 😳 We might simply regard that as the Bdim vii chord of the scale? But it’s also all 4 “colour”  notes of Cminor’s dominant V chord G7(b9). (I’ve left out the V’s tonic). In either sense you get a perfect square! Total symmetry across the V chord’s working frequencies.

Which underlies why “tritone substitute” Db7b9  and “backdoor dominant” Bb7b9 also resolve to C 👍, 👍. That’s long been the basis of functional harmony, but the graphic really brings it out?

These tuples were already in there as interval sets. Example: here’s Pignol using this sort of thing in an improvisation (2nd half of recording) «les pieds de dame aux clebs» (http://chrisryall.net/tunes/fast-auvergat-pignol.mp3).  In the fireworks section (@3’20”), he’s basically rolling major triads that have their [3rd,5th] on the vertices of that square. Again that’s the colour intervals. (The tune is Dm those are A, C,  Eb  and F# triads). The long climax note is C#, also on a corner!

Simple in concept, effective, and hopefully ME will find those triads on 3 row kit.
Title: Re: Melodeon Explorer
Post by: Chris Ryall on August 05, 2021, 02:21:07 PM
Alpha version now on line - it's in EC6 javascript (2016) so consider updating your browser, if ‘old’

I've tested only in Fireox so far

  https://chrisryall.net/explorer/

Had problems with stabilising button images so switched to svg.  Thank yous owed to Gina.  Other stuff is well on the way but still buggy. I've put dummy fall back code in for now.

Please say your browser, op system and machine if it falls over on you


edit: 1st bug is that the notes don’t sound on this iPad,firefox 🤔! Easy enough fix, but am playing bridge …
Title: Re: Melodeon Explorer
Post by: Anahata on August 05, 2021, 07:04:20 PM
It says: "Please use library button below"
So I click on the "Library" button and get a pop-up saying "Load from the inbuild library" and an 'OK' button.
I click 'OK' and the popup goes away.
I'm not sure what's supposed to happen, but nothing changes and it's not obvious what to expect, or my browser doesn't like your JS and something more self-explanatory failed to happen.

Firefox 78.12.0esr on Debian Linux (probably a bit of an outlier in terms of typical users, but it's a data point)

I guess the nice sharp resizing of graphics with window size is the SVG at work...

Notes do sound on this system.
Title: Re: Melodeon Explorer
Post by: Chris Ryall on August 05, 2021, 09:58:03 PM
Thanks.  Glad Linux works.  Yes. SVG solved a few problems! Sorry, the library is on a fallback method at present (library “built” but not fully stocked or indexed). Your eponymous layout is however item[0] in there 👍

I guess  the popup alerts don’t give the message, but in the spec you’ll be able to save a favourite (ie edited) layout to local storage. Your own layouts will then show ahead of the stock ones. It should also be possible to reload your last choice automatically. 

But all dependent on the customer having “local storage” (used to be “cookies”) enabled. That seems to be default on my kit, but browsers vary. It is also “local” to both the machine used, and the browser.  Change browser and you can’t access stuff stored by the old one.

I’m not able to offer the world storage on my (ie your 😉) server, a step too far. The other workaround is to export your favourite layout as text, a “rodec”. It looks like this

Code: [Select]
name: 'Anahata 2-row 4th start'
C_maps_to: 'G'
left:  G4/D4   G2/D2   C4/G4  C2/G2
       E4/A4   E2/A2   F4/F4  F2/F2
right: A3/G3  C3/D3    G3/B3  C4/D4   E4/F4   G4/A4    C5/B4  E5/D5  G5/F5  C6/A5
  Db2/Eb2  C3/D3   D3/F#3  G3/A3   B3/C4   D4/E4   G4/F#4  B4/A4   D5/C5  G6/E5  B5/F#5

Sorry about the C …then transpose, but it made order out of chaos; there’s an infinity of possible layouts out there, and GC is the commonest. I’ve used standard piano tuner notation for the octaves. On left end octave 1-2+means a bass playing 2 notes octave apart (as is common), anything higher then 2 is interpreted as a chord and plays octave+ 5th. Thirds would be easy, but T+5 chords work, and the model is “about” exploring cross chording and things outside  main row scales, eg finding Bmin7 chord, whatever. That clashes with 3rd “in”.

I “think” that a user could type a rodec in directly, with C_maps_to: 'C', no transposition. But it’d be far easier to edit a similar stock layout on screen and “save” that to local store.

Bug at present is that sound fails on tablet, but works on a screen! A bit odd, as the 2011 version played notes even on my old mobile phone, half way up a mountain. I’ll get there …

edit: The “welcome” message in the bellows is also a place holder. The beta will offer the triads of any scale (eg A mixolydian) and some chord progressions in folk mode.

With folk mode “off” you get extended chords (ie what Jack H is playing in Douze), alternative licks like bebop of blues, and some of the gorgeous chords like … the lydian. They are very much there on 2½ + rows. Actually “lydian” is there on 2 rows, standard basses 😉 All clickable to highlight on screen

Yes, that’s … verbose, but the bellows can expand to accommodate the extra lines.  That really was fun to code! 🙂  It’s late. Time for some more dreams 😴
Title: Re: Melodeon Explorer
Post by: Chris Ryall on August 21, 2021, 03:54:54 PM
Progress is rather slow (I can't 'sit') but it's moving on.   

I've given up on coding for tablets as 'gesture' stuff turned too complicated to do twice over, but everything should still work on tablet or phone.  The simulation isn't meant for 'playing', and I'm not sure that 'exploring' a layout on a mobile phone means much?

Transposition is nearly sorted.  Library of layouts and local save of your bespoke layout nearly there. See screen shot  (:)  Chris

[edit] Whoops - a bug on the GCF. ME should notice that it's a 3-row  :( though it got the left end correct )!  Back to work ...
SimplePortal 2.3.5 © 2008-2012, SimplePortal