Forum

    • Register
    • Login
    • Search
    • Categories

    Sampler PitchModulation parameters

    Scripting Forum
    2
    5
    452
    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.
    • dustbro
      dustbro last edited by dustbro

      What is the proper way to script the Voice Start - Constant - PitchModulation on a sampler?
      I'm trying to use:
      but getting error "API call with undefined parameter 0 {SW50ZXJmYWNlfHw1NzU0MHwxNDUyfDMy}"

      const var Knob1 = Content.getComponent("Knob1");
      const var Constant = Synth.getModulator("Constant");
      
      inline function onKnob1Control(component, value)
      {
      	Constant.setAttribute(Constant.Intensity, value);
      };
      
      Content.getComponent("Knob1").setControlCallback(onKnob1Control);

      Dan Korneff - Producer / Mixer / Audio Nerd

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        Just Constant.setIntensity(value); should work 🙂

        The intensity (and bypass state) are not parameters with a designated ID (which one might argue is a design flaw, but it's far too late for this to change), so there are dedicated methods for changing these.

        dustbro 1 Reply Last reply Reply Quote 1
        • dustbro
          dustbro @Christoph Hart last edited by

          @christoph-hart Excellent! That worked great!
          I may be noticing a bug when setting the Min / Max value of the knob.
          When I script the processor/parameter, it's component specific properties appear to match the PitchModulator value.
          When I set the Parameter Properties via the Interface Property Editor, the min / max don't match the PitchModulator value.
          It appears to be off by one decimal point?
          Scripted processor/parameter -4/+4 = -4/+4 on PitchModulator
          Parameter properties set via interface editor -0.4/+0.4 = -4/+4 on PitchModulator

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • Christoph Hart
            Christoph Hart last edited by

            Actually I think it's a little more than 0.1 because it maps the range from -1.0 ... 1.0 to -12.0 ... 12.0 st.

            dustbro 1 Reply Last reply Reply Quote 1
            • dustbro
              dustbro @Christoph Hart last edited by

              @christoph-hart yup. you are correct

              Dan Korneff - Producer / Mixer / Audio Nerd

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

              14
              Online

              801
              Users

              5.5k
              Topics

              51.7k
              Posts