Change mono filter mode with button



  • Hi, i want assign Biquad Lp Rez & Biquad HP mono filter mode on button.
    I'm new with Hise/script, see my code :

    Content.makeFrontInterface(600, 600);
    
    const var list = Engine.getFilterModeList();
    
    const var BqLPR = list.BiquadLpRez;
    const var BqHP = list.BiquadHp;
    
    const var Button1 = Content.addButton("Button1", BqLPR, BqHP);
        if (Button1 == 0)    
    {
            Synth.getEffect(BqLPR);
       }
       else (Button1 == 1)  
    {
         Synth.getEffect(BqHP);
    }
    
    const var Filter1 = Synth.getEffect("Filter1");
    
    
    
    
    

    For now button switch with Biquad LP & Biquad HP (no Biquad LP Rez)



  • @Jerems134

    • There's no callback at all in your code
    • A snippet would be easier for us to help

    If not yet done, I suggest you watch all @d-healey's videos 😉



  • Yeah I know @d-healey's videos, great work !
    Here is snippet

    HiseSnippet 1147.3oc0WE0aaaCDlxILH1cIncXX.6Mg7jCPVfcaZ2.JJlmShWLZRpSbWPeqfQhNlHTjJRTs0oH.C6o8yX+TFv9CLf8GY+BZFORYKZG2TOCrgE8fg3c22ou63c7n6jHCnooxDjW4WNHlh79Lb2ABU+s6SXBT6c.AsXbEMQQSUnlChIoozPjm2B+.XgW4EQlm+56ZR3DQ.sPDBchjEP2mEwTER6z34LNuEIj9RVji0a0ncfTrsjKyzrYAbMTLI3bxYzCIfYkvHuk1MjojIcUDMYPdK1TFNnae4aEV6OgkxNkSgE0Qc0NxJtkjGBLFjh1tOiG1YXTmhzdoSQNXAaN3KvGvBYijWjKtuQgeAB27gWoaid0+zzq1znmmC8VzRuGf6FjvhUEZ.tcObagdapGQuE3RKqsnROpDdao1BgZyHx4zVI5EiPT8I0psgu9m0e5JUVohdiHU4+FRhOmoe4Y96JNiInadFUYKFNPFp2WSUUmz9lWremi0..ba1jcQFIb+3ioW9zwMZuNiaydwS5mLkRJpqsZHoIggVgUWKW4ZaX+baXbHvDe8Cqme0Qneles0AgqT48Vsvio.Ghkc60iFnpZbRN7qL+R4ozw7R80c8wMcf8ye03wfMUAwvj.VKW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mryxZaFRlkoSSA+q8IVoG
    


  • @Jerems134 Don't forget to remove any "processorId" attribution in the button properties as this will override the callback (it is one or the other)

    HiseSnippet 1595.3oc0Y0saaaCEVJIpn1qNncXX.6NhbwlSgapSV+YvcEywI1yA0NQMNKX2UPKQaSDZREIpl5Vza1MaOF6QY.6QXuH6InYGJJaoj53X6fDr3BTHdN7vyG+3gjmCisuvgDDH7MLybv.Ohg48rZMfK6sUOLkary1JA0nLIwWRBjFUF3gCBHtFllK9ypdXlYIine+6OUAyvbGRhHCiCETGRCZepLQpc4WQYrZXWxAz9o58SJuiifukfIBAzrnUQCOryQ3tjcwptsfkg4cp5RkB+VRL.FCykpHbGzpm3Dtt+GRCnsYDUi0MZACjVbMAyUgXkTis5QYt1Cm0AFvnXmvAKp4fuxpI0kNRdBWb+HEnDKRyGlKLI3sdZ3Ub5gmYJ3sjFdOvpkiO0SlnQgsuvZGNrL0ACKAogktuFK762yZKAzCtbs93iH07gFirH+yJVr.B9uUeQtrp+AKEARzaw9H8p+5nWhhBLVqKQVsSGhiL+JwpVQaThIUBkRAWYxPOhcc0ByuRrxUJfdJ3xMdN3RD5wOF8iOBcPOR.Ag8In2g9Vz.jmHfJoBNRzAI6QPsiLMnPtrnqvOvWUNtg89HAfziqaibE7uShZSXBdWTOhOQSAmcN0IZt1fBMeIpJuKkSTTglBZJbIJU4GReTNC5.pSH2QOA3wSaEg3KX4cD88DbfZJ.iNKjrZtreHW1LzNn751JjlLOiY50BHxMkReJvDj7CEp7dgT.bs8IAhFhShI1McjgXFa.hIvtAn51EPg.MOZ0C4RbX.o6hvsEuEFItPhVIZwdEMBHr.x7hk5zt8rgfQ.LeNVZXmK6GAJKlbTCYLAsEzq1v9+7mm4Fxv4xBCWy81tJZ2MaVsEJRxCCNgJc5gx2GfwpYy7grYbvvbMYUpTo83DaAi.7iBVkxlIC3U0Fq34PcByi3GTpjtYqv1JkkJ0h12iQhsNVZAz3jNzT82MrW8EfSZ6SvG8hKFOC4oqe.U+R.z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i4vlueNr4IygMOcNr4YygMOeNr4GlnMp+PAaFJE80wlf.6pQY.ZZVkqJ8JJL03+rykW1C
    


  • @Lindon @ustk Great, thanks ! I'll try this


Log in to reply
 

7
Online

956
Users

3.4k
Topics

28.9k
Posts