Author Topic: How to use "may vary over time"?  (Read 830 times)

Javi Ruiz

  • Newbie
  • *
  • Posts: 1
    • View Profile
How to use "may vary over time"?
« on: August 16, 2024, 01:54:23 AM »
Hi,

I am currently exploring the nice wavesets suite of functions, and in particular I was testing 'distort interpolate' when I notice that the parameter
multiplier may vary over time

How is this achieved from the command line? (I am using Mac OS X 13.6.8, if that's relevant, but I suspect it's not.)

Thanks much for your help!

rwdobson

  • Sr. Member
  • ****
  • Posts: 81
    • View Profile
Re: How to use "may vary over time"?
« Reply #1 on: August 19, 2024, 09:52:24 AM »
Ah, this is an example of one of the many hearts of the CDP system. In a GUI-based effect or instrument, this would involve controlling a rotary knob or a slider. Here in the command line we use a "breakpoint file". The simplest of these is by far the most common. It is a text file containing one or more lines, each with two numeric entries (separated by a space). The first is the time in seconds, and the second value is the required parameter value. The only rules are that (naturally) the first time value must be zero, and subsequent times must always increase. The file is then saved to a name of your choice. By CDP convention, the file extension is "brk", but "txt" is fine too. On the command line, where you would otherwise type an umber for a given parameter, you use the file name instead. The programs handle this internally, kn owing to lookm for either a single number or a file name.

So, a simple example might be:

0.0 1
0.5 2
2.3 4.5
2.4 3.9
3.0 1.1

From which you can gather that the programs will interpolate linearly from the stated values to generate all required intermediate values. Thus, if you just need a plain linear ramp 1->10 from start to end, for a 5-second sound, all you would need is:

0.0 1
5.0 10




Robert Fraser

  • Hero Member
  • *****
  • Posts: 110
    • View Profile
Re: How to use "may vary over time"?
« Reply #2 on: August 24, 2024, 02:20:01 PM »
May I just add to that - if you want to hold a value for a while, put the same value at a later time, so that no interpolation occurs. Just make sure the later time is slightly less than the one which follows it. For example:

0.0 1
0.5 2
2.299 2
2.3 4.5
[etc]