kyma•tweaky . How . UpsampleControllerValues

Question (or Task)

Is there a way to upsample controller values, such as input from the Wacom pen, to full DSP sample rate rather than the 1k MIDI rate? I found one solution with this trick with an AmplitudeFollower which is than scaled and offset into the -1 / 1 range, but are there also other ways?

I ran into a problem when trying to do some extreme normalising - multiplying a signal by its inversed amplitude. How can I do this "1/amplitudeFollower" operation at sample rate?

Thanks

-- MichaelStrohmann - 18 Apr 2006

Solution(s)

Here are two possibilities:

  1. Put the MIDI controller value into a Constant and place the Constant into the input of a filter (for example, the AveragingLowPassFilter with a cutoff frequency of 500 hz or lower. (The filter will reduce the aliasing.)
  2. Put the MIDI controller value into the left and right scale fields of a Level (with interpolation turned on) and place a Constant of value 1 into the input field. The interpolation will smoothly interpolate the old value of the controller to the new value over an interval of one millisecond.

For your extreme normalizing task, I would suggest pasting the AmplitudeFollower into the value field of a Constant to make the expression: (!MaxGain * [AmplitudeFollower] L) inverse. Filter the output of the Constant using a filter (as described above), then follow the filter with a Level module (with NoGain turned off) with scale parameters set to !MaxGain.

-- KurtHebel - 18 Apr 2006

WebForm
Question: How can I upsample a control rate signal to to full DSP sample rate?
Keywords: upsample, interpolation

----- Revision r1.2 - 18 Apr 2006 - 14:39 GMT - KurtHebel
Copyright © 1999-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding kyma•tweaky? Send feedback.