Scales Combobox



  • @Natanr Did you change the rootNote combobox value after enabling saveInPreset?



  • Oh I see a problem. It's because I was lazy 🙂 I'll fix it.



  • @d-healey Have No Idea David, Both SaveInPreset Are Enabled.
    For Example I Select A And Major , Then Click On Rebuild, All Works Fine.
    But On Disabled It Won't Stay On Disabled



  • Oh I see a problem. It's because I was lazy 🙂 I'll fix it.
    

    @d-healey Much Appreciated 👏



  • @Natanr See if this version is any better.

    HiseSnippet 1651.3ocwX80SabDD+NBWa80fZhTeousBTUsEFyY2DHoTZsw+ghRHfvDZkPnn02s121bd2S2sFvJBon9IKu2W5Gk9AnRzY28NemMNTDRQ8DJjc96uY1clcVNLh6Rhi4QFlENdbHwv7gVcGyD9M8wTlwdsjDhcwADgOkMvXmwg33Xhmgo4C1UJgYgEMTe+8OuCN.ybIYjLLNgScIujNjJxndX8WPCB5f8HGSGlS5mTeOWNqIOfOBPyCrbLBwtuEOf7JrTrErLL+r1dTAOpq.KHwFlKtC2abWe9ELs7mPio8BHxEUM5BFRStCOvShXIUil9z.uCSi5XCvJGlkCdfNG70V6S8nSnmkKdjhAJSi74CyEtM3UMO7bt6vyLG7VTCuGa00MhFJx3Hw1WZsGSPh5igsf7vRKqwB+yma0jCRvDUFheKoSDrXhFE2vwoL5oNNk1ZI6kriHCP3f.9EDuWwgfYKMIpT7ywAwJgfcqXA5bbDRc.YuTlnsQmtjMB9NsZYz+8OmUFs95MjdS5yDMqUFUSwtV5OZ41G+67nLYlHPx+4LoHTFOx9LIDWe8i3bAhAw.xkOrGuG+x7.2cXOk.aiRSMCHhl7ggbFrn3xI7WVmUnr.Jif5Oh4JnbFhyR3KUNhGTzMUyxf0CFQJsj86zXEDrqLIUw0GyFP7JJs3U5zn1FUhIo1oIjF5Am8KNqCzvX80UlRGPnaFQZt2RHoD31hIk.2dPUXTnGbLexltJfJj+LCf.vyMxQoXZnBzOQZphkVC1zlbpRYBsceAYrtSP7zYJcR7ikpxi64Gd2.0S1gn8QyAens2FUsjVBkT4NjO8o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.u2eT8Kj47rCh+Qcia9HF3oTbuQ.xl98UxGUlv.5qM0CYjCNwhohw4Ku+j7nq6Jber0gTgq+7w6ByAuxVhehwaxSXWxpc+9vohLvtnUme6S+6UMNhOR1WXerHhJa3.EXcghTWRxwl3zlPIqcjqkYltDlmZgrBOgYU4ZyDlUSYZLD6Fweiq9pA4ij+BEE.SL0eqfBPiMXMpZ50AVVNUbLFBUOuw0UlJVCv970o18Pmu+dnyStG57z6gNabOzYy6gNO6V0Q13pwHnootLAHbXaUuZSy1L0MgxSjF+KYq0KP.
    


  • @d-healey

    Thank You 👏 Yeah Works Like A Charm ✌



  • @d-healey said in Scales Combobox:

    Here you go. Should be pretty self explanatory but let me know if you need any info about what it's doing. You can add more scales just by adding more interval sub-arrays to the scaleIntervals array and adding a corresponding combo box item.

    Update: Just fixed a little bug. btw I'm using the natural minor here, if you want the harmonic or melodic you'll need to update the minor intervals array or add additional arrays.

    David, I Searched The Google, And Seems There Is NOt Much Information About Interval Or Any Charts.
    Can You Help With More Scales?





  • The intervals are 2 for a whole step and 1 for a half step.

    https://hellomusictheory.com/learn/music-scales-beginners-guide/



  • With A Custom Piano Keyboard, How We Can Show The Scales?

    inline function updateKeyColours()
    {
        for (i = 0; i < 127; i++)
        {        
            if (allowedNotes.contains(i % 12))
                Engine.setKeyColour(i, Colours.withAlpha(Colours.red, 0.2));
            else
                Engine.setKeyColour(i, Colours.withAlpha(Colours.yellow, 0.2));
        }
    }
    

    Edit: Found A Better Solution 🙂


Log in to reply
 

8
Online

1.5k
Users

4.5k
Topics

40.9k
Posts