#19 add support for five row chromatic accordions

open
2
2014-08-15
2009-05-09
No

The name of this sourceforge project implies that it is only for piano keyboards. But anyway, it would be great if vmpk had support for a
five row CA ( chromatic accordion ) too.

Melody side of the accordion:
http://www.accordionpage.com/diskant.html

Bass side of the accordion:
http://www.accordionpage.com/basar.html

Wikipedia information:
http://en.wikipedia.org/wiki/Chromatic_button_accordion
http://en.wikipedia.org/wiki/Stradella_bass_system

cheers,
Erik Sjölund

Discussion

  • Pedro Lopez-Cabanillas

    • labels: --> Interface Improvements
     
  • Erik Sjölund

    Erik Sjölund - 2009-05-10

    Hi Pedro,

    Maybe one way to go is to separate out as much as possible of the music instrument layout from the cpp files and put it into xml data files. For instance, these files

    pianoscene.cpp
    pianokey.cpp

    have some GUI information in them ( how the piano keys look like ). Maybe it is possible to put this GUI information in some xml files?

    A consequence would be that changing the number of octaves would be the same as loading in another instrument, e.g. a gui data definition for a piano with 3 octaves.

    Just a sketch

    <keydef>
    <key id="blackkey">
    <painter pen="black">
    <rect x="15" y="15" x-offset="0" y-offset="0"/>
    </painter>
    </key>
    <key id="whitekey">
    <painter pen="white">
    <rect x="15" y="15" x-offset="0" y-offset="0" />
    <rect x="15" y="15" x-offset="20" y-offset="0"/>
    </painter>
    </key>
    </keydef>
    <keyboard>
    <key note="c2" key-idref="whitekey" x="15" y="20"/>
    <key note="c#2" key-idref="blackkey" x="20" y="20"/>
    <key note="d2" key-idref="whitekey" x="25" y="20"/>
    </keyboard>

    Don't look at the coordinates.I just put some numbers there. And this sketch doesn't handle pressed vs. unpressed keys.

    I don't know if SVG could be used somehow. There is a QSvgWidget. But at a first look it seems more suited for a background image of the music instrument.

    cheers,
    Erik

     
  • Pedro Lopez-Cabanillas

    • assigned_to: nobody --> plcl
     
  • Pedro Lopez-Cabanillas

    • priority: 5 --> 2
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks