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

Author Topic: I made KeyboardAccordion.com and I want to share it with you :)  (Read 2004 times)

0 Members and 1 Guest are viewing this topic.

Tania

  • Member
  • *
  • Offline Offline
  • Posts: 27

Hello, all. I recently purchased an FBE Hohner Corona II, and since it's loud and I live in an apartment, I wanted to be able to play at night, so I made an online web app for playing the accordion (which I'm now discovering is also called a melodeon). I've also started gathering scales, in simple notes and thirds, for all the relevant keys the diatonic accordion can play in.

Here's the site: https://www.keyboardaccordion.com/

I also wrote an article about how I made the app, in case any one is interested in that: https://www.taniarascia.com/musical-instrument-web-audio-api/

I believe this is the number one place on the internet where I can find anyone who would benefit from this or is interested in it, so I hope you like it. I also want to add additional tunings - GCF, EAD, and ADG, and add examples for playing chords and such.

I can even make a little assembly language and have it slowly play songs. This has really been helping me figure out the notes, and it's been fun to build and just play around with so I really hope someone here finds it useful as well!

I want to note that the site has no trackers, no ads, no donation button, no affiliates, I have no interest in making money off of it, it's just a little hobby project that I want to share.
Logged

Tania

  • Member
  • *
  • Offline Offline
  • Posts: 27
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #1 on: May 03, 2022, 10:41:08 PM »

I was really hoping this would be of some interest to some people on this forum. :( I'm not sure where else to show it to the people who could benefit from it. This could also be expanded for various two-row melodeons and other tuning as well, since all the setup is in place. I think it should be pretty helpful for beginners at least, trying to figure out the notes and scales.

I probably need to translate it to Spanish and find the Norteño/conjunto/Tex-Mex people who might be more interested in this particular accordon/program.
Logged

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #2 on: May 03, 2022, 11:10:50 PM »

I share your feelings, Tanya. I coded up an online accordion about 15 years back, My intention was to help people find chords, or scales on 2½ or 3-row instruments. Or for players planning a layout to see what worked and what didn’t. It is pretty old-fashioned coding, both javascript and css have moved on considerably since then

I wanted it to be “universal” so wrote a meta language so folk could … type in their own keyboard. There are all manner of idiosyncratic layouts about. Being a hobbyist then tried to do universalise to concertinas as well, It was a labour of love.

But … it didn’t get much use either. Playing Melodeon is a very physical thing and most of us stick to the main row keys of the instrument, and their modes. To be honest, the beginners just want to get their hands on the new toy and see how it works.

I’ve seen at least 2 other web keyboards offered here since then. Clive even set up an app. I have to say that your user interface is rather beautiful and works well on my iPad. If you want to see my old project it is at https://chrisryall.net/chords/  Feel free to pinch any ideas. Also my sampled notes which cover 5 octaves.

I set about recoding it last year but had to break off for big operation. I hope to get back into it … once I’m able to sit in a chair again! My present objective is to point out things like the sensitive note(s) in each mode, suggest functional harmonies for scales, and point out alternative scales against chords, ie help improvisers.

Best 🙂
« Last Edit: May 03, 2022, 11:22:46 PM by Chris Ryall »
Logged
  _       _    _      _ 

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #3 on: May 03, 2022, 11:19:39 PM »

Well I think it's really neat, Tania. And significantly improved over the version you posted a short while ago. I guess you are aware that similar apps have been developed for iPads and iPhones and have proved quite popular. Have you thought of porting your program to those platforms? You could earn a bit of pocket money there, at least.

But maybe you are aiming at a tool with more educational potential than those apps? The full screen and the full keyboard should allow you lots of room to expand the program's capabilities.

If you are still wanting bug (or quirk reports), I found playing right-hand chords a little erratic. Across the rows, triads worked well, but along the row they were a quite unpredictable: hitting three buttons at once sometimes worked, at other times not. Adding a fourth note sometimes worked, often not.

PS I was going to mention Chris Ryall's app but I see he has posted while I was writing this.   (:)

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #4 on: May 03, 2022, 11:36:03 PM »

My approach last year was to have a little text box, strategically placed over the bellows. In say C, it offered all 7 modal chords ± extends and you played the rt-hander by clicking the chord name that list. I managed to get the bellows to open and close smoothly on screen for longer lists like functional chord substitution. That is to say that it was more text based, although the buttons moved up and down, and played if clicked

For each chord <= and => Buttons then allow you to explore all its inversions, right up and down the keyboard. You could do the same with scales and they too stepped down onto the left keyboard if need be.

You need about four octaves of samples to simulate real reeds, on a real accordion. The 5th octave then allows either revoicing, or bandonéon style. We had a thread going with advice from other members here. Melnet is like that.  I’ll try and find it

  It’s here http://forum.melodeon.net/index.php?topic=27173.0
« Last Edit: May 03, 2022, 11:40:20 PM by Chris Ryall »
Logged
  _       _    _      _ 

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #5 on: May 04, 2022, 12:04:57 AM »

My simulation … https://chrisryall.net/explorer/ seems to launch with a bug - press OK and it passes to edit mode. Though that is not completely coded either.

I would like to offer the following baseline notation to describe layouts, (well discussed here). JSON works fine, and is used internally, but is intimidating to most melodeonistas. This simpler meta language maps into JSON and is “easy edit”. The voicing numbers refer to simply to the octaves of a piano.

Code: [Select]
name: 'Anahata 2-row 4th start'      // used for saving layout as local data
C_maps_to: 'G'                        // All layouts described with “start” button C4, here transposed to D/G
left:  G4/D4   G2/D2   C4/G4  C2/G2   // octave 2 = lowest samples and by convention used for bass buttons
       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

The interpreter simply looks for a push C4 note on any right end row. “start” = button 4 is a preferred layout here for D/G kit. See  http://forum.melodeon.net/index.php?topic=7727.msg96025#msg96025

(G/C’s start their main scale on button 3. But that ends up with very squeaky upper octave notes on a D/G)
« Last Edit: May 04, 2022, 12:18:37 AM 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
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #6 on: May 04, 2022, 10:58:28 AM »

It's very nice!
You may or may not be interested to know that it doesn't work in Firefox (v 91.8.0esr on Linux)
That's the problem with Javascript: everyone speaks a slightly different dialect.
On Chromium it plays but some chords don't work. (as per Stiamh's post: "erratic")

That said, it didn't take me long to get the hang of playing tunes on it!
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: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #7 on: May 04, 2022, 12:35:08 PM »

Same here (iPad pro, iOS 15.4.1). Sound sequences generated by the KBA’s centre chord controls are fine, but touching a button just produces a click. But then … is it meant for tablets?

I had similar problems on Firefox during my experiments last year. Basically the UI has to attach an event listener either to the SVG graphic for each button, or let events bubble and sort it out from a screen listener, which was Tania’s choice. Neither seemed to work as per spec. It wasn’t handling tablet gesture, even touch,  events properly either. The base JavaScript engine in Firefox is fairly old and have been some fairly major developments recently. Nevertheless they say that “on Mozilla Firefox 45,ECMAScript 5 is fully supported.” so things “should” work 🥴

I was considering browser sniffing and “suggest another browser” 12 months back. But you can’t win. eg I play a contract bridge online, and Safari made some changes to the buffering of touch events last year. They were hidden deep in Settings, Advanced, Website Data for play.realbridge.online I had to turn 3 of these off to stop the whole UI from freezing up.
« Last Edit: May 04, 2022, 12:50:47 PM by Chris Ryall »
Logged
  _       _    _      _ 

Tania

  • Member
  • *
  • Offline Offline
  • Posts: 27
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #8 on: May 04, 2022, 03:33:29 PM »

I share your feelings, Tanya. I coded up an online accordion about 15 years back, My intention was to help people find chords, or scales on 2½ or 3-row instruments. Or for players planning a layout to see what worked and what didn’t. It is pretty old-fashioned coding, both javascript and css have moved on considerably since then

I wanted it to be “universal” so wrote a meta language so folk could … type in their own keyboard. There are all manner of idiosyncratic layouts about. Being a hobbyist then tried to do universalise to concertinas as well, It was a labour of love.

But … it didn’t get much use either. Playing Melodeon is a very physical thing and most of us stick to the main row keys of the instrument, and their modes. To be honest, the beginners just want to get their hands on the new toy and see how it works.

I’ve seen at least 2 other web keyboards offered here since then. Clive even set up an app. I have to say that your user interface is rather beautiful and works well on my iPad. If you want to see my old project it is at https://chrisryall.net/chords/  Feel free to pinch any ideas. Also my sampled notes which cover 5 octaves.

I set about recoding it last year but had to break off for big operation. I hope to get back into it … once I’m able to sit in a chair again! My present objective is to point out things like the sensitive note(s) in each mode, suggest functional harmonies for scales, and point out alternative scales against chords, ie help improvisers.

Best 🙂

Wow! This project is really extensive. I always love seeing different implementations of similar projects. Thanks for sharing! This is very helpful. There are soo many layouts. I wasn't planning on doing much more than showing the major and minor scales and chords relevant to the specific keys of the accordion. I have to admit I didn't even look at it on an iPad since I don't have one, but I knew mobile would be too small so I just disabled it on there. I probably should have ensured that it works on Firefox/Safari before sharing it here, since I only built/tested it on Chrome so far.

It's very nice!
You may or may not be interested to know that it doesn't work in Firefox (v 91.8.0esr on Linux)
That's the problem with Javascript: everyone speaks a slightly different dialect.
On Chromium it plays but some chords don't work. (as per Stiamh's post: "erratic")

That said, it didn't take me long to get the hang of playing tunes on it!


Thanks, I forgot to even check Firefox. Usually Chrome and Firefox are pretty in-sync so I just expected it to work on both and Safari to be the problem browser, but it seems like Firefox is the one that doesn't want to play nice here. I'll have to look into what's causing it. The only issue I can see is that you can't play more than 6 notes at once, which wasn't an issue when it was only treble side since most people don't have 7 fingers, but now that the bass is in there I'll have to check. Thanks for taking a look.

Well I think it's really neat, Tania. And significantly improved over the version you posted a short while ago. I guess you are aware that similar apps have been developed for iPads and iPhones and have proved quite popular. Have you thought of porting your program to those platforms? You could earn a bit of pocket money there, at least.

But maybe you are aiming at a tool with more educational potential than those apps? The full screen and the full keyboard should allow you lots of room to expand the program's capabilities.

If you are still wanting bug (or quirk reports), I found playing right-hand chords a little erratic. Across the rows, triads worked well, but along the row they were a quite unpredictable: hitting three buttons at once sometimes worked, at other times not. Adding a fourth note sometimes worked, often not.

PS I was going to mention Chris Ryall's app but I see he has posted while I was writing this.   (:)

Yeah, I did see the Hohner app for playing, so I figured there's no reason for me to make a mobile/iPad app when it already covers that. I was definitely looking to make something more educational, somewhere I can go to see all the scales and chords that are relevant on my specific keyboard, and also for me to be able to play and learn tunes at night since I live in an apartment. Thanks for taking a look, I appreciate it! I'll look into the chord issue.

Definitely still a bit of work to do with this. I'll work on fixing the bugs and adding more chords/scales and see if it proves more interesting/useful as time goes on.  (:)
Logged

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #9 on: May 09, 2022, 12:04:15 PM »

Got to say, I love it :-) First request, different tunings please :-)

Tania

  • Member
  • *
  • Offline Offline
  • Posts: 27
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #10 on: May 14, 2022, 11:06:23 PM »

Plan to get GCF in there as my next update.
Logged

Luke Hillman

  • MAD hatter
  • Good talker
  • **
  • Offline Offline
  • Posts: 77
  • Berkeley, CA
    • Anglo Piano
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #11 on: May 20, 2022, 06:22:39 PM »

Nice! Very appropriate use of oscillatorNode.

I took a slightly different approach with my own app--I found myself trying to sound out chords on a piano to get them in my head, then trying to translate them to concertina. So here's what I came up with. The focus is anglo concertina, but it can sort of be made to work with melodeons as well; you just have to mentally rotate your keyboard 90 degrees (and, well, figure out the bass side for yourself). It's REALLY slow compared to yours, though; I'm not an engineer and used a design tool instead of coding by hand. Edit: I learned to code and rebuilt it from scratch.
« Last Edit: August 17, 2023, 01:08:34 AM by Luke Hillman »
Logged

Tania

  • Member
  • *
  • Offline Offline
  • Posts: 27
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #12 on: May 21, 2022, 07:11:38 AM »

Ooh, interesting. That's a nice app, I'm surprised you can create that with a design tool and not coding by hand, I have no idea how that works. Yeah, I mostly have to play with a keyboard next to me because otherwise I don't know what note I'm playing. It makes me feel like I should just cut out the middle man and play the piano accordion sometimes but I keep soldiering on haha.
Logged

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #13 on: May 21, 2022, 02:02:00 PM »

.
It’s a hard step, but ultimately a useful one to learn the note played on each button. But by the nature of diatonic rows, probably “more useful” that your fingers learn the intervals involved. A classic example (sticking with F/Bb/Eb layout) might be

   G A Bb C D E F G = Gm dorian - E is the “sensitive” #6 in this scale

But reach across onto the middle row for an Eb and you have Gm aolian. Mix the two and you are playing a Gm bebop scale. Basically I think of that reach across as a way of flattening the note when playing on the pull.
Logged
  _       _    _      _ 

Luke Hillman

  • MAD hatter
  • Good talker
  • **
  • Offline Offline
  • Posts: 77
  • Berkeley, CA
    • Anglo Piano
Re: I made KeyboardAccordion.com and I want to share it with you :)
« Reply #14 on: May 21, 2022, 06:32:00 PM »

I'm surprised you can create that with a design tool and not coding by hand, I have no idea how that works [...]

I won't lie, it's a bit like those folks who make 3D rendering engines using MS Excel—by the time you're done, you realize you probably could've learned Python and coded the whole thing in less time than it ultimately took. But then, you use the tools you've got!
Logged
Pages: [1]   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