getModulatorByIndex

Home Forums General Programming getModulatorByIndex

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14412
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi
      I have two methods (one for osc1 and one for osc2) and tried to reduce one of them
      a script work like that :
      two mods( pitch and detune) * 4 (*24 when finished !) and a group name attached to one script
      those scritps are recalled in another method where a modulator “trigsel” switch sounds and “refresh” the group name NO PROBLEMO

      I have tried getModulatorByIndex for the osc1 method and that’s working only when i switch the sound using “trigsel”, when i move a detune or pitch nothing happens
      EDIT not working at all in fact
      Is there a panel demo where i can get it ?

      Just tried getModulatorByVstIndex but get error…

      • This topic was modified 10 years, 6 months ago by zeoka.
      Attachments:
      You must be logged in to view attached files.
      #14419
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        The index passed to getModulatorByIndex is an internal one, it is not the vstIndex or the customIndex, you can safely use it only in a for() loop when iterating all modulators OR keep that indexing constant acroos the panel lifetime.

        #14423
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          Thank you so byIndex is wrong that’ sure

          i need vstIndex but this is not working
          attemp to call method getModulatorByVstIndex

          do i can : panel:getModulatorByVstIndex(“variable”):getModulatorValue() ?

          or just panel:getModulatorByVstIndex(“variable”):setModulatorValue(x,false,false,false) ?

          • This reply was modified 10 years, 6 months ago by zeoka.
          #14427
          atom
          Keymaster
            • Topics: 159
            • Replies: 2945
            • Total: 3104
            • ★★★★★

            There never was a method like that or i removed it, you can use getModulatorWithProperty() and using the property “vstIndex”.

            #14430
            zeoka
            Participant
              • Topics: 73
              • Replies: 466
              • Total: 539
              • ★★★

              Thank you Atom ! i get it

              i saw getModulatorByVstIndex in the changelog

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 62 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr