HISE Logo Forum
    • Categories
    • Register
    • Login

    Arp not responding to velocity script

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 203 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeffd
      last edited by

      My code works here in a seperate project,

      but when i try to use this in my onw project, the velocity doesnt respond to the script.

      The sliderpack in the arp does respond to the PreallocatedLength i suggest but not the velocity.

      HiseSnippet 1095.3oc0W0saaaCElx1rn1YoMIq.6xIzKFbPCLrS5e.oE0w+jMuzjXDkZz6JXjN1lvxjZRTY0nnOT6IXu.6gouAaGJoXKG6jp40BrpKrMO7b97G+z4PdXWeoMDDH8IFEOehGPL9Np0DgZXygLtfzoEw3dziYAJv2L1TiIdrf.vgXXj+m0FLJVfD87oW0f4xD1vLSDROI2FdMeLWMyZ25GwccOj4.myGmx6GWuisTzT5JCQ9jmVk3wrGwF.mvztkiRLtSaGtR5aoXJHfXTngzYh0P4uKh8uGOfegKnGTiXg.Ea9PoqilwZqjlC4tNcuZcGPPT5NSExGqBOfdL2gO09L0XinILmEQZ8vH27zK+bzqVZ5UME8VBkxkhREhozlTKaetmZ1LZ9rFsi.e4zmgxdZpD6KI2eYPaJQODpJiYifC8wASin7SqVcGS7is2uTIT5CTlWx7MOv2CFLfyvURMyWZFkOTY.nrb4NfeW7cxTNT9goc9gyiykfqzlqlLKNDsz9OOnkqoCewfpD.p2D.c8AlKNGJsNuFDCTCKu2t5H5K8MKyQnqtuI27El6sK98idz1kLwmOD8o9Y4.2i4FBk46X9rmr89lQN+w9gBaEWJLkhSjJ3TQ4sK8gREK8wRlWep98W5bZI2W55B9KcZcZu+sEXYQ33K.+cPYDo2TGwbg4Svn2bBV57e63LfTNJEcDb0odf3lpJHIoM3udSmVLECyJMRrg94A9JtlBFsfKwR73bzhzVPvHkzCKxWnlZcZp28IasjNaX9Ro7YtTp1sVJMacX78IpK5pJhQ2KojpQnRIEDti1TLKRLEo+o2OijALVmdFfoV+qgHNyLBh6SOIbrkB7RrcMPpWOKfrFUiPDWVMVrQD.Vi32.M9zqxhbfnH8UGASB9unH3hwC.miDxKtN.+zhpwFI.zTN9BYC46ifXKpE7ag.dB0TyYeAkhJqSO0VwtDNiIF.q1poH0ZXX+9tvpkgsFssfgo+mygaaITHFfsl6+WuyWDHO.kiw7ykBH0DWGs+zQW5a7GzZ697JeC8PxtJzagCFtREnF+HpAyq.8G03fJU58qspT4sxt+OdblUfsnwGml8rfuE0faaigMoXCdBA3ZAtfs9zoO+9BKEnefdZnxKT8EBtMoG2sMdBn+U.tvtEYbmu6qApsv4FfoZ8rroycn+B1G8R1vZwdUwtjkNgt5i0S25r99BISfs6L2485dREAXUXZU5KV+zYkhaR6xU1CWNGysDNpaU+q.Gm1wT698wLnYDr.8v2904JGjyjgJtXvwLkO+83de5FPvKhgGVFmzna2zHm97o3wU0i0JfEHbhF723Sxj0ziMRlr1USRFyr8kuyNNWSeOm6FYA4jH5JdEw6ZhiMqsXV1X7ZWuy1ddnVHvcW0.2aUC7wqZfOYUC7oqZfOaUC74e9.02J9fPkbbbYCgfa3DcqACi3VUhxVI+C.4dkGQ

      J 1 Reply Last reply Reply Quote 0
      • J
        jeffd @jeffd
        last edited by

        @jeffd
        not sure if uploaded the snippet correctly so here is the code.
        its short

        
        const var Arpeggiator1 = Synth.getSliderPackProcessor("Arpeggiator1");
        
        const var velocitySliderPack = Arpeggiator1.getSliderPack(1);
        
        velocitySliderPack.setUsePreallocatedLength(32);
        
        for (i = 0; i < 32; i++)
            {
                velocitySliderPack.setValue(i, 75); 
            }
        
        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @jeffd
          last edited by

          @jeffd Why not connect the sliderpack in the property editor instead?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          J 1 Reply Last reply Reply Quote 0
          • J
            jeffd @d.healey
            last edited by

            @d-healey

            well, haha...i was running out of room to have on it on the gui,
            but i think i just might do that instead now. The default velocity was too loud for the arp so i wanted it to remain constant at a softer velocity over the max of 32 steps.

            I guess i can try to squeeze it into the interface or just go and set them individually and save it.

            still dont understand why the code doesnt work though.

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @jeffd
              last edited by

              @jeffd You can always make it invisible

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              14

              Online

              1.7k

              Users

              11.8k

              Topics

              102.3k

              Posts