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]   Go Down

Author Topic: Melodeon Explorer  (Read 4481 times)

0 Members and 1 Guest are viewing this topic.

Gena Crisman

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1108
  • 🇬🇧
Re: Melodeon Explorer
« Reply #20 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.
Logged

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #21 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.
« Last Edit: July 13, 2021, 08:57:53 PM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer - teaser
« Reply #22 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) 


* 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# ?
« Last Edit: July 28, 2021, 07:56:29 PM by Chris Ryall »
Logged
  _       _    _      _ 

-Y-

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 896
  • Handry 18 (G/C), Mélodie (D), Club IIb (A/D)
    • a database of nearly 500 melodeons here
Re: Melodeon Explorer
« Reply #23 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?

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #24 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 🤔
« Last Edit: July 29, 2021, 09:16:19 AM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #25 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».  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.
« Last Edit: July 29, 2021, 10:15:35 AM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #26 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 …
« Last Edit: August 05, 2021, 02:55:22 PM by Chris Ryall »
Logged
  _       _    _      _ 

Anahata

  • This mind intentionally left blank
  • Hero Member
  • *****
  • Online Online
  • Posts: 6767
  • Oakwood D/G, C/F Club, 1-rows in C,D,G
    • Treewind Music
Re: Melodeon Explorer
« Reply #27 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.
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: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #28 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 😴
« Last Edit: August 05, 2021, 10:22:44 PM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Melodeon Explorer
« Reply #29 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 ...
« Last Edit: August 21, 2021, 04:02:33 PM by Chris Ryall »
Logged
  _       _    _      _ 
Pages: 1 [2]   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