Author |
Message |
torsig1967
Joined: Mar 29, 2006 Posts: 162 Location: Sweden
Audio files: 2
G2 patch files: 1
|
Posted: Mon Sep 29, 2008 11:17 am Post subject:
Roof function for control signals? Subject description: Can I implement this in a cheap way |
 |
|
I'm looking for some way to make a roof functions for control signals.
Working something like this.
input: 0-32 --> output: 0-32 (1:1 ratio)
input: 32-64 --> output: 32 (always 32)
I've figured out a way to (almost) do it with NoteVelScal but it's to CPU expensive for my need and seems to me there's no cheaper way.
But I might be wrong....  |
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24451 Location: The Netherlands, Enschede
Audio files: 297
G2 patch files: 320
|
Posted: Mon Sep 29, 2008 11:57 am Post subject:
|
 |
|
Some ideas, non tested.
How about using a cross fader, one input left unconnected the other connected to a constant setting the limit. Then use the fade control input as the input and multiply it by a constant as needed.
For your example the amplification would be two and the limit as set with the constant module would be 32.
Or another way to go could be to use the clip module, set it to work asymetric (its default) and add (or subtract) a value as needed from your input signal that you then subtract (or add) again at the output.
Or maybe easiest ... use cross fader and a compare module, when the input is under the threshold pass trough the input signal and when it's over the threshold switch to a constant value. The constant could be used here as the input for a A>=B comparator and as the input for the cross fader at the same time I think, so just three cheap modules needed. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Wout Blommers

Joined: Sep 07, 2003 Posts: 4529 Location: The Hague - The Netherlands
Audio files: 123
G2 patch files: 12
|
Posted: Mon Sep 29, 2008 9:58 pm Post subject:
|
 |
|
Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?
Wout |
|
Back to top
|
|
 |
torsig1967
Joined: Mar 29, 2006 Posts: 162 Location: Sweden
Audio files: 2
G2 patch files: 1
|
Posted: Tue Sep 30, 2008 5:52 am Post subject:
|
 |
|
Wout Blommers wrote: | Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?
Wout |
Not sure if "roof function" is the correct term, but mathematically speaking:
f(x) = x , 0<x<32>32 |
|
Back to top
|
|
 |
torsig1967
Joined: Mar 29, 2006 Posts: 162 Location: Sweden
Audio files: 2
G2 patch files: 1
|
Posted: Tue Sep 30, 2008 5:53 am Post subject:
|
 |
|
[quote="torsig1967"] Wout Blommers wrote: | Well, don't slam the Nord into my face yet, but I just want to know what a 'roof function' is and what you want to do with it Maybe it's just a configuration in which all values from 0 up to 32 can be used and all values above 32 will stay 32? Kind of a blue limiter...?
Wout |
Not sure if "roof function" is the correct term, but mathematically speaking:
f(x) = x , x = [0, 32]
f(x) = 32 , x = [32, 64] |
|
Back to top
|
|
 |
torsig1967
Joined: Mar 29, 2006 Posts: 162 Location: Sweden
Audio files: 2
G2 patch files: 1
|
|
Back to top
|
|
 |
|