Melodeon.net Forums
Discussions => General Discussion => Topic started by: Chris Ryall on August 26, 2014, 09:27:25 AM
-
Melodeon Explorer (http://chrisryall.net/chords/) (a web page) was coded two years back, as a facility for people with multi row boxes or extended basses to tap in their layout, or edit pre-set standards.
It can already highlight how chords and scales might lie on the instrument, and as such "understands" the various minors, modes, and their associated harmonies. I have found it most useful in finding chords that lie "other direction" and several "crossed" left hand ones. I used it to plan my C#DG, though that didn't stop me ordering its Eb/Gb bass upside down (easily fixed) ;)
Sound was later added in, but suffered from poor level of development of HTML5. That has now become Web standard; browser support is certainly much better. Time to recode, and much of that will be from scratch. eg I want to integrate showing say a G dorian minor scale with all its associated right end chords, and make ME truly indifferent to base diatonic row key
Further ideas, wish lists etc are invited. Clive has already asked for plain text output of "rodec" keyboard descriptors. I'm also minded to make the facility properly midi compatible (ABC might be a step too far) But what else?
-
Clive has already asked for plain text output of "rodec" keyboard descriptors.
Oooooh..... yes please. Can I also beg for the successful return of transpose?
One other dark, dark thought. Could we also feed it an ABC file, and it show the possible fingerings for that tune? We'd have to have some mechanism of either choosing or showing both if there's 2 possible notes for a given sequence (perhaps it could choose according to active chord - 'this is inside a F#m chord, so we have to do this note on the push'), but if it could output melodeon tab, that would be *fantastic*.
-
That has possibilities. ABC is not "about" chords, and I'd regard their inclusion as "an arrangement". Indeed, isn't chord/melody balancing what a lot of melodonism is about? We debate it tirelessly on beginner threads!
But a lookahead algorithm that found built in chord arpeggios in an ABC; mapped out cross fingering "as far as it could" in a dynamic way on both directions? Defo worthy of consideration. Ta. But please don't expect full tab "how to play". Too many human/artistic factors I think :|glug
-
Chris, I have often looked at your melodeon explorer and am in great awe. I don't have the knowledge to program or write code (other than basic ABC) like that.
However, whilst I recognise that your Explorer is great for you and your style of playing based so much on harmonic structure, I find it less useful myself principally because of the way in which it is split into two separate diagrams, one for the push and one for the pull.
For me, as a rhythmic sort of player, it would be much more useful to see a single diagram with the buttons split to indicate notes available on push and pull, a bit like the melnet keyboard layouts e.g. here (http://forum.melodeon.net/index.php/page,keyboard.html).
Why? For me, playing the melodeon is a mixture of pushes and pulls which I need to 'visualise' as a single entity, not two separate instruments, one on the push, t'other on pull. Supposing I want to play (say) a tune in A major or B minor. It would be helpful for me (or my students) to see a single push/pull keyboard layout which highlights the notes of the scale in question and would show immediately where a single button needs to be both pushed and then pulled (or the other way around) to play adjacent notes of the scale; such a diagram would instantly show where the bellows 'waggles' need to take place and would help formulate a set of finger/bellows patterns for any particular scale. That's not easily apparent from your present system.
That's what I would find useful, and if you thought that something like that could be achieved, then fantastic!
But - it's your baby of course and I might well be asking too much. But you did ask for comments and suggestions...
-
Bass chords?
-
Hi Chris - this is really useful, especially for an Anglo - any chance please of a default G/D Anglo layout? Thanks.
-
C/G anglo is already there in two layouts, and if I abandon "keys" completely (everything is relative) then setting the "base" to G instead of C would sort the various anglo (and melodeon) tunings in a trice. Clive has already referred to the broken transpose button. Sorry it fell off on in a version 1.nn recode. Then I spent much of last year under a surgeon (or rather him under me) ;)
The issue with these things is actually "voicing" as various luthiers make idiosyncratic decisions in this - especially wrt the octave of the left and melodeon chords. Provided you don't want any sound output peculiar to your particular maker, it's very doable (already)
But how many standard layouts should there be? It quickly get very cluttered! I'm looking more to HTML5's much easier facility to store data blocks on your own computer. You could then edit/store your layout and voicing and have it reload automatically. I'm afraid those "cookie" things really weren't up to the task.
Push pull issues … could be sorted by combining the two mappings into a single diagram. But as
i have pointed out before, is about finding chords and free flowing scales. That's also why there eg is no true D7 chord in standard DG layout. D fundamental and C (7th) are in opposite directions. So such matters would always be a fudge.
Personally I'm more interested in part scales; that you can run E to C in both dorian and aolian modes simply by cross fingering on pull. But then melodeonism demands that you switch to push for your D unless you invest in a gleighton or helper row.
Are those G/A B/C D/E G/F# B/A D/C etc really of much use to people in planning tunes or scales? i've always seen them basically as the plan for a maker sticking his reed plates in. Any other use is … well I've found them pretty hard work over the years. Dunno about you, but my bellows are only in one mode at any particular moment ;) However the two are "mathematically" the same thing so just a matter of a bit of code. But it means four representations. Separate keyboards, combined push/pull, the rodec (which is "voiced") and the graphics. Covering both push and pull in the same graphic will IMHO look pretty messy.
-
Are those G/A B/C D/E G/F# B/A D/C etc really of much use to people in planning tunes or scales?...
As shown by you in this form, possibly not, other than to obviously highlight a row of adjacent buttons on the G-row and another on the D-row. But I think it becomes more useful when trying to see alternative cross-row patterns where you need a mixture of on-the-row push/pull and cross-row on the push and cross-row on the pull. It helps you plan bellows changes and better air management. A single diagram with split buttons also helps identify buttons/bellows changes for non-home row scales - for example A major, C major, A minor, B minor, etc on a D/G box.
As I've hinted at earlier, maybe I'm trying to fit your Explorer into a role which you don't envisage; that's fine, it's your idea and ultimately your decision what you do with it.
-
On the row phrase highlighting with directionality will be a challenge to do with any clarity but you've got to empty those bellows some time, and a "bit of tune" is the best way ;)
As ever, a sleepover on the issue has popped some ideas in my head, but i'll need to play with the new vecter graphics now "standard" on t' Internet :D
Any more ideas? It had occurred to me that as the internal harmony model is self contained, and the graphics model "linear" it'll also do guitar chords (tuning of your choice) … but let's not go there
-
Been experimenting.
Chord structures, and melodeons(!) are now 'objects' which might allow some code re-usability. HTML5 vector graphics are not very usable as you cannot control redraw. 'canvas' does work OK but is also still a bit buggy in some browsers. I think that is the way to go as it should be fast and efficient, and have worked around the bugs (it works here ;))
http://chrisryall.net/me2/test.htm
If volunteers might try this page to check it looks usable on their kit it would help keep me out of anything not generally usable. In due course you'll be able to click 'buttons' and see what 'interval' they are in the present key (eg minor 3rd) and make various 'chords' and 'scales' glow up in the brighter button style. Also to setup your own kit. ME1 can do this already but the new HTML makes saving to your own computer trivial
All comments will be useful, but please 'update' your favourite browser - they change all the time! Thanks, Chris
-
Melodeon Explorer Test Bed
This is a test of concept and of clarity: representing a melodeon on HTML5's <canvas> element
Please pass comment wrt clarity, practicality and usability to Chris Ryall, melodeon.net
Known issues
MSIE ignores the font if it is declared "bolder"
some browsers need a "refresh" to draw the buttons (I'm investigating)
Chrome fails to drew button images at all (Google: "acknowledged bug")
Some browser text centering leaves much to be desired, though still legible
I get this text plus 3 rows of buttons above it, all with the same note sequence. In Orangey red 1 and 3, and yellow, middle row. On Google Chrome
-
Shows up fine for me in latest Firefox on Ubuntu!
There's a few handy JS libraries around for doing canvas work which might be worth a look if you're doing a lot of it, though I haven't used any of them in the past year so I'm not sure how they compare to the standard APIs now:
- http://raphaeljs.com/
- http://paperjs.org/about/
- http://fabricjs.com/
- http://kineticjs.com/
-
Looks fine to me on Safari 5.1.10 and Firefox 31.0 on Mac OS 10.6.8.
I like the larger layout - nice clear button graphics and colours.
The text within the buttons is properly centred in Firefox; less so in Safari where C# and F# nudge up against the LH inside of the black outline perimeter. But that's just a very minor cosmetic issue.
Overall, very good indeed so far. I like it!
-
Thanks chaps. The buttons are smaller and tighter, and now software generated. Clarity is fundamental and I needed reassurance from other people's screen experience.
Instruction to 'center' the text note icon is interpreted differently(!) by the four main browsers .. one of the classic joys of web software :-\ I'd abandoned vector graphics for similar reasons; too many work-arounds involved. I plan to code according to the W3C standard and let Microsoft and co catch up when they get round to it. But it seems all is at least legible and I could shrink the font for Safari. Thanks for the library tip: had found raphael, but ME's draw requirements don't need that much power (or code overhead). I hope to apply KISS principles this time.
A chord and scale engine is nearly there and should generate clickable eg [I,ii,iii,IV..] full chord lists for all modes/all keys; suggest useful 'out' scales when in chord mode (not quite as easy).
Melodeon object is still mainly in my head, as is attachment of sampled notes to its buttons (when are now effectively just blobs of cyber-paint on a 'canvas'). It won't play tunes, but should be up to arpeggios, and scale demos. As its note values are now midi .. who knows?
If anyone has time, do please look again a v1 http://squeezebox.chrisryall.net/ Steve's critique on how it did not do what he needed was very useful, need more of such at this early stage :|glug 6am already ... to work!
-
Melodeon object is still mainly in my head, as is attachment of sampled notes to its buttons (when are now effectively just blobs of cyber-paint on a 'canvas').
Hi Chris. I'm not sure how you're coding the back end of this, but have you considered introducing a "Row" object into your model as well? Your Melodeon object then has a collection of Row objects that then in turn have a collection of Button objects - in this way you may get flexibility in the future to model 1, 2 or 3 rows. You could then inherit from Row to create TrebleRow and BassRow objects as well? Again, I'm not sure how you're approaching this but I hope this is of interest.
Cheers
Nigel
(C# / VB developer by day)
-
Hello again :Ph
[technical stuff] Apologies to Nigel, I seem to have missed his suggestion ::) Decided against a row 'object' as both rows, and indeed "rows of rows" are intrinsically ordered sets of buttons, as such more efficiently modeled by JS arrays? And JS inheritance is a clunky IMHO, but other aspects .. rock 8) Both the graphics methods of HTML5 turned out awkward. <SVG> fails to update properly in several browsers (ie when you do an 'edit') and detecting a button click on <canvas> .. well, it ain't easy. So I've gone for good old-fashioned text :o though css3 makes that pretty sexy ;) [/technical stuff]
testbed: http://chrisryall.net/me2/testbed.htm (favourite browser 'update' recommended, please) )
Here's the result - in MOCK UP - although a fair bit of connect up code is in train. I've set it up "conceptually" as if iw were looking for voicings of the simple C major triad on a Club (as par this site). The editor has moved to melnet standard notation (:) The explore concept is to highlight all the notes concerned (here C,E,G), and show where they lie on the keyboards. Chords and scales are "the same" in this. I'm experimenting with also lighting up chord buttons "with 3rds out" as this helps find "crossed" chords that work against a given scale.
The text is [techy]macro generated[/techy], so if you click through to say a D7 chord it'll offer you a stack of scales that'll run against that dominant, and also related chords such as D triad, D dim, D Alt or even Ab7. Yes, a lot of that's in your face jazz. (Enharmonic notes adapt automatically to the last one typed in).
Known issues are 1. variable font size in the various browsers, fairly easily addressed, though strategy is to work to user's favoured text size. 2. Microsoft MSIE is (as ever?) not very standards compliant. I couldn't make it do in-button edits, and last time I tried to AJAX small bits of data (ie layouts) off my site MSIE blocked me. It also can only be made to play sampled notes by using MS favoured formats: yet more workarounds for a browser I feel is fairly useless.
Please have a look but don't expect edits, sound to work yet. I'm looking for a steer (or otherwise) on 'look and feel'. New ideas particularly welcome! Clive's request for transposing will be easy as the 'buttons' now work with midi numbers. I won't give text it's own pane, he can just click/paste into the editable scratch pane and take it from there.
Steve's wish for highlighting in reed-waxer-in layout? .. well that's no harder than splitting the chords, but I still find it hard to think of a utility wrt scales. eg exploring for G major on a D/G will light up 90% of buttons, push and pull, on both rows. For chords? Well, they are intrinsically push, or pull anyway ::) Concertinas .. still some way off, though a tweak to the now "background" rodec descriptors should make a loadable D/G Linota etc possible eventually
Please do comment and don't be too dainty about it. ME needs usability critique in particular. If it fails you, please let me know about your kit. eg I am developing on a 3 year old 2.8GHz Windows system, using Firefox. Am about to look at it on an iPad .. now :P [ed] text too cramped … but it worked! :D
-
I have always thought this was a wonderful concept when putting together layout ideas ... although I am a push-puller I think about layouts very much with an eye towards right hand chords and which direction they end up being in.
I remember trying it out when I first saw it mentioned here ... and I'm afraid I found it far too technical to get to grips with - and ended up reverting to pencil and paper and looking for chord shapes in my head. I'm not sure why I found it so hard - I am normally quite technically minded and can even code myself a little.
I've just tried it out in 3 separate browsers again - and after 15 minutes I cannot enter any layout text in the editor (following the rules) without it turning blue - saying the code is untested and not showing up in the layout. (I'm using the latest Safari, Chrome and Firefox on mac.) Even changing just one note (say an F# to a G) will show up as an error like this.
So I think I'll just have to consign myself to the fact that I'm not cut out to use it! Or maybe I've just missed something blindingly obvious.
However on the subject of displaying it on a single layout rather than one for push and one for pull. On my home-made steam-powered diagrams with a pencil and paper I do put both directions on a single keyboard diagram ... and I find that the judicious use of colours can end up displaying both directions in a far less confusing manner.
-
Ive got a problem with sticky blueness in edit mode too, am on to it and have thought of a solution.
I don't think "exploring" with buttons as D/E F#/G A/B D/C# (which I'd call "waxing in) format will be a problem at all. My own feeling is that 1. for chords half the symbols are simply noise … chords are intrinsically either push or pull
2. In finding scales I think it will be even more confusing, most notes in the base diatonic scales are both ways, all those would light up. In a way its related to finding useful note runs on halftone boxes. I'm having trouble thinking how to map that to any sort of screen representation. i'd be really interested in how people do it on paper?
So that's an extra pane please, to explore in "waxing in" format, should be easy enough and an interesting exploration about how folk imagine their melodeons. Please keep ideas coming, I've tried to keep the "clockwork" very flexible, so most things should be possible, and I'm frankly most interested in "concept" feedback at this stage. 10am already … time to attack that sticky blue bug :Ph
-
However on the subject of displaying it on a single layout rather than one for push and one for pull. On my home-made steam-powered diagrams with a pencil and paper I do put both directions on a single keyboard diagram ... and I find that the judicious use of colours can end up displaying both directions in a far less confusing manner.
Yes - I like this approach.
Chris - I think the main thing I 'dislike' (said in the nicest possible way ;) ) about your two separate layout diagrams for push and pull, is that I, for one, think of the instrument as a single entity and it is jarring for me to shift the focus of my vision and refer to a double layout like two separate instruments.
It's far more important to me (and my students) to be able to see instantly that (for example) the pull A is on the same button as the push G in the lower octave but on adjacent buttons in the higher octave. That's harder to do when the push diagram is separated from the pull diagram.
That's why I find Squeezy's single diagram layout with split buttons for push and pull the most logical for me. It's nothing to do with 'waxing in' but very much to do with visualisation, perception and focus.
-
As a relative beginner I too visualise my melodeons as buttons each with two notes; I certainly don't think of it as two halves, one for the pull and the other for the push therefore any visualisation of a layout should show each button halved with a note in each half.
I also prefer the method used in squeezy's charts halving the buttons horizontally - it seems to make it easier to differentiate push/pull than the alternative vertical halving
-
I must say I'm glad the sticky blue thing was a bug ... I was driving myself insane trying to work out why I couldn't make it work!
I think I might be with Chris on how to best represent the keyboards for the purpose of representing scales and chords - also a single chart with split buttons would not really work with the MIDI sound thing.
The most important thing I think this program can do is show you chord shapes and when it works - it does that very well. I personally find it a little distracting when it shows me incomplete chords containing only one or two notes when I am searching for 3 or 4 note chords. If a button could be added along the lines of "show me full chords only" to disregard incomplete chords then I think I would find the concept far more useful.
-
Just wanted to add that I wouldn't want to do away with the fact that you can see partial chords on layouts which is also very useful when you're using it as a tool looking for fingerings for a particular piece of music on an instrument - just a way of toggling between the two is what I'm after!
I'm still getting the edit box stuck on blue when I enter anything in it at the moment ... but I'm looking forward to trying to get my head round it once it's working again.
-
ME's chord seeking is macro driven - and that also sets up the associated text. So a clickable "C maj triad (#post_)" will trigger it seeking semitone intervals 1,4,7 from a C context. similarly Cmin will pattern on 1,3,7. Scales and chords are then exactly the same, and can link to each other, as in music really? One person wants to play C7 in a blues jam; another wants to play C blues against that chord? Incidentally the key notes in C7 are not C+G, but the tri-tone clash E+Bb. So the 'fake' in that is not intuitive!
Suppressing incomplete the chords is (.. I think) doable, but is that a good thing? We've probably all sat with eg a D/G and someone awkwardly playing those as minors? Tonic + fifth ain't great, but it keeps you in the music.
Actually (and here we may philosophically/didactically differ) I would want a player to become aware that Cm needs a tonic, minor-3rd and fifth, and hopefully help them discover when a 7th is nice, when not. Otherwise it's not a big advance on paper? .. once scatchpad is working it can generate that too
Googling: Mozilla saying that would fix the "sticky select" bug a few months back - but a new approach seems to bypass it :D I hope to upload later today. I may also add a "testbed and bugs progress" pane, temporarily. MSIE is way behind the others and cannot do 'on button' edit at all, moreover they've removed all the things that help you detect their browser is in use! I can't recommend it as I like to be "standards compliant". May take a day off coding tomorrow - I fancy a day in work. This peri-retirement existance is rather nice :|glug
[edit] Current prototype http://chrisryall.net/me2/testbed.htm now up. It 'should' allow in button edits, also flag invalid entries and 'tidy' loose spaces, double divides etc. I've nearly got it to generate from a rodec, obviously it needs to flow notes the other way to do anything! The descriptor 'rodec's incidentally are now in what I shall henceforth refer to as 'Sheffield' notation. Though I hope facility to load templates, and save edits to own disc will make that irrelevant to users
-
I agree that the function to show what notes in a chord you have got with a given melodeon layout is very useful if you are using your Melodeon Explorer for that purpose.
My suggestion is coming at it from a different angle (possibly not the one you had in mind for it) ... I think for me it could be an excellent tool in analysing keyboard layouts that haven't been built yet ... something which I currently do with pencil and paper - but your programme would speed up the process considerably! One of the things I often look for is complete chords and how friendly their fingerings are - and that is why I suggested it.
-
Sorry Chris ... there wasn't a bug - it was me being stupid. And I think that's what happened last time I tried it out too!
I completely missed the ? and ! buttons on the bottom right of the editing controls. These are of course vital for it's use ... and if anyone reads the instructions properly then they would know how to use it.
So my only suggestion there is ... for dummies like myself a big green box at the bottom that says BUILD or has a tick in it or some such thing rather than a small exclamation mark would have definitely solved my problem.
-
As it happens the present incarnation is moving to dark buttons on a pale wood background. It is both «à la mode» in lutherie, and also facilitates shadows, making "depressable" virtual buttons a bit more believable. Editing, or exploring one's creation are now on completely separate tabs/screens so test and build are less of a problem (I hope).
As it happens my own favourite colour for dark buttons is "dark green olive"; I hope that'll make you a happy bunny too. Sorry, little further progress. Been working the afternoon, and painting my front door.
I've now essentially solved the highlight one half of a buton in "Sheffield" layout, so people can explore chords with both push and pull notes in view :P Those that want to do that … good luck. My own box is either … pushing or pulling in real play mode, never both at once ::)
Anyone else got requirements or needs? Usability is all in these things. The rest is a "trivial" ;) matter of implementation.
-
Progress report. Having retired twice I seem to be back in, not hobby helpful but it pays for holidays.
ME can now "write itself" either from incoming /saved rodec or after edits, and can both edit and theoretically explore or play in duplex "Sheffield"'notation. The buttons ended up as pure text, with a style sheet wrapper so you'd not know the difference, even cast shadows!
Spent some time on concertinas as ME has fans in the Other Place. Bit of a challenge with layout at right angles to ours, bent rows and all those holes in the keyboard but I got there. Theyain't gonna get in button edit and must continue to tap in rodecs
Its a matter of "now where did I put that code to find and suggest scales", putting it back together, and the usual brief ;) chase of bugs.
Presently in Bay of Biscay en route for cultural and oenological re-creation in Basque Country. Back late next week :|glug