Scales Combobox
-
@d-healey Life Saver <3
-
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.
HiseSnippet 1635.3ocwW80SabDDeOBGo9ZPMQpuzWpVAsR1Bhwll.IkRqA+GJJgfElPqDBEs9t091ly6d5t0.VUHE0OXU489R+nzuAzY28NemMNoITUUKD16LyNyu42t6ry1NR3RiiEQHqBGOJjhrtmcmQboeceBii1ugRPrKIfJ8Y79ncGERhiodHKq6rmxBqByize9qeXWR.g6RyDgPmHXtzmyFvjYRaW6YrffVDO5wrA4r9Q012UvqKBDCAzbG6JnPh6qI8oufnLaNaj0BM8XRQTGIQRiAa1U3Mpiu3Btw9SXwrtAT0fpnNfiLhQ08YAdsSyzXDxZ91Y48cL48mae.yiMVdV9eesBb1LxyAVyMIjleBHU8cAoVh.OkCdGvyJG7l2.uGX2wMhEJyznv1mZuOWRi5Q.ZOOrL1hlqycsqK.K3xxCHul1JBFLdFE2nRkUwOtRkRasnyhNQz9XRPf3Bp2KDPxrkQDSY94jfXsQvJTrDeNIBq2TrepR713SWzACeNc8UwveU0+O42msJds0Nf7KhnLaFaPxONSYBiKhbNSEn0V6HgPh4.RvthAcEcEWlO7tC5pMXabZB1mJqKFDJ3vfhKkneIStw3ALNE2aH2UxDbrfmnWM4HQPQ2zYtJ38fgzRK57qK5THOe.gBBwN4jTTa5CgDXLIoBWgggdvtgmQGY1LGWTI8JC+YBa4XZZnqCwnKrQu3zXxf70VqihnMb.VSByLYzV8OjMrbqVSt7cZRlb1VvpPGZ.0UhGnVuvveCTqJYonZA7elZRSTP9IJeWrzGEO8NWT044RkdmDXddHkAOF15ii.znfFlv8LYetTRJTI.lDEQFgE8ROGn29cSBe5bM004yOMiqnp.ADKbDMdXfZ25omsUd4thgbYhDy+6AbcQFXYksvL72k4xxATdeoOH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Q.kiDCU0ENfHiXpBNvArNvgTWZx1l3zhPIiqnFqXlNTtmdf5DdhxppwVIJqlpDJk4FIdkq4lA0qH+DsD.Sb8CnK.E1fw3po2FXaWobEz.3zyqbcUTwCqhPydNqeKly2bKlyitEy4w2h4rwsXNadKlySduyQU3ZmgPQSywDPP6l5Z0VVM4DXWldGI5uAZUVuB
-
@d-healey Thank You David, Brilliant <3
-
Just One Last Question @d-healey
How Can I Bypass The Scalling, To Play As Normal? -
@Natanr Do you want it as a button or in the menus?
-
@Natanr I would make arrays with the tones for each scale and use the arrays in NoteOnCB to determine which notes to be ignored or not.
Oh, sorry I didn't see you had a lot of answers already :) -
@ulrik That's what I did :)
-
@d-healey sorry I didn't see you had already answered
-
@d-healey I Guess In The Menu Makes More Sense, On The Top Of C And I Can Grey Out The cmbScale Combo Box To Make It More Eye Catchy :)
-
I took the lazy option and added all notes as just another type of scale.
HiseSnippet 1645.3ocwW01SabDD9Lgqs9ZPMQpeoeaEnpZKLFa2DHoTZrwuPQIjfvDZkPnn02s1daNuq0cqArpPJp+wZ9d+R+oj+AzY18NemMuDJUQ8jUH6LyNyy7r6N6r6EHcYggx.qLYOX7PlUl6a2drP0udeJWXsSCTPnK0mo5yE8r1Z7PZXHyyJSl6sMZQlryao+9vy1h5SEtrDQVVGJ4trWvGvUIR2q5y499sndrC3CRY8iptiqTTW5KGAn4d1krFRceKsG6kTzr4rsx7YM83JYPaEUwBsxL+VRuws6KOUXr+PdHuiOCGT1pM3Hi3VReODwnTq5849d6Em0gVfW1KgCtmgC9Z6c4d7IxS3hGnUPRlQZ9Hyb2D7JmFdkt8vKSJ3MuAdOztsa.enJQChsuzdGghEzkBKAogkwVq49yO2ttDrPnJNf9VVq.XvjYjasRkJPdboR42XAmEbBX8HTee4oLuWJgjYCiHNZ9IT+PsQvpUnhbBMfn2frSrRxljiVvg.eGUt.4i+63BjUWsFFMLlQyrRAREs5Jw+L1sK82jAI1Lwfn+ywnIbgLv4XDhqt59RohHfbf3JGz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ZoUhDqMVwNSkX7e8diT8R8b9Yr0UYVDB2uv8T8W7GHkeTwREzBAtenOc7qbUzShNWC56B0+YFCdg7TXhfrnI7ybyPn7sQP8QgJ4fsCnC6ycCmdxMXcovkE0FNjQCvmz.pwS5Fsa4CW5Cdaef7jXDJt1S0eO4IkV+okVurwrCj854y1U5wl143CHfGTHDLeDOFguNjcHz6iLHEfRhHnskOU0VM1eVmsWy3kiKo.JSDnRhTkIJZJ7RAf0fVer5y385m7Fs2se0SQNOYi3eT05xuCAdMjzaDfroehD9tvHEPcsodKB11mHjqFm938mj2Mcag6Cs2iqb6e03ctq.uXIwOw3M5UnKX2raWXWQBXm2t0u9o+ImV6KGg0E1kpB3XAG3.Va3PpKKZaSXbQnnwkvwHyzlI7zCvS3QJKiiyDorbrRqAT2.4abMWMfuy8KzR.LIzO2OKTXCFSJGecfscohkrF.mddiqKREq.X+pmSk6vb996vbdzcXNO9NLm0tCyY86vbdxMNGrvUsQPQSywDPvdM00pyjooPeSHtiz5e..cEHIB
-
@d-healey David. Just A Small Problem. By Compiling The Code, It Jumps To B Major.
Edit: I Mean, I Disabled The Code, Then Pressed Rebuild Button, And It Goes To B Major.
Demo'ed This With Compile Button Aswell , And Same Result Happpens -
It's because saveInPreset was disabled for the rootNote. I'll update the snippet.
-
@d-healey I Enabled SaveInPreset, Same Result :(
-
@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+ghRHfvDZkPnn02s121bd2S2sFvJBon9IKu2W5Gk9AnRzY28NemMNTDRQ8DJjc96uY1clcVNLh6Rhi4QFlENdbHwv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Xv07xp.oPuZzvdjnho3ytvMxITlG4xC5C6+pThrFcMYQZAo7oViN.tEfz9bYSOQDz1ZKEa6qrQyhp98kv5+ITMCfR5dEH8EfoByvVNxz74j1tlo.ZZu5TAgYGld3DqO9vI4mcxUeGRNA4r8XTwAgD1GajEijKdfgWVHAUfnB0nKOJYzklx6t1geoAElQofURiWCEnyOSowcx.1VosRmiEd8dsvBrbRpDbAXMjDInxzfYKx4vHp54pJX0hD+VAOD71jaLgoNuSP+xIN880qONCAMpODC7rLWBVPEjgfW+NqVzXLjt8raZ2bE6V1sVwtscG6NqXuq8tqX2vtwJ16Hyj2ITjK9yfwGFjGF6jBiExfwRVpoorUCLMkydnHYNXsy5DvwBX7+iofGjN7qrxSpZNuBeYd8uhqmjy0IXaKnaRONNxyn2fzI8K7YdddWaj.qLpWe80eyzTqkPVIrfboHS3+7CZpps5EBLsTcYVFb2uR8D9K+CnpOohSYEQH2GFfGefq.edRcMvuOz+mnE3k7K.EAZIJ7KT8Rn8slPyQwB9vcivg9T23oUtEoOFtrnQXHAGIeODvVVoq4tS.LrBXsifjGW5gJa7b02ydlylO2YypZwNlOXP.YetGYZiKe8A7ZDFiDHwil3qiImPbgZ6b.Jyi.2NAXQWw3fYM1gsS2NtACnMQjHyS0lvnMyKG.1.FMyvmPG3m8.u2eT8Kj47rCh+Qcia9HF3oTbuQ.xl98UxGUlv.5qM0CYjCNwhohw4Ku+j7nq6Jber0gTgq+7w6ByAuxVhehwaxSXWxpc+9vohLvtnUme6S+6UMNhOR1WXerHhJa3.EXcghTWRxwl3zlPIqcjqkYltDlmZgrBOgYU4ZyDlUSYZLD6Fweiq9pA4ij+BEE.SL0eqfBPiMXMpZ50AVVNUbLFBUOuw0UlJVCv970o18Pmu+dnyStG57z6gNabOzYy6gNO6V0Q13pwHnootLAHbXaUuZSy1L0MgxSjF+KYq0KP.
-
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?