Since I'm on a mailing spree: how can I make a pd version of slide~ (MSP), which, according to the msp reference, is a logarithmic lowpass filter for smoothing envelops. Anything similar will do. I'm using vline~ for now to smooth out midi faders but it doesn't feel quite the same.
And on a related subject: what is the best way to create an exponential signal ramp?
Many Thanks Peiman
*www.peimankhosravi.co.uk || RSS Feedhttp://peimankhosravi.co.uk/miscposts.rss || Concert News http://spectralkimia.wordpress.com/*
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi peimankhosravi@gmail.comwrote:
Since I'm on a mailing spree: how can I make a pd version of slide~ (MSP), which, according to the msp reference, is a logarithmic lowpass filter for smoothing envelops. Anything similar will do. I'm using vline~ for now to smooth out midi faders but it doesn't feel quite the same.
And on a related subject: what is the best way to create an exponential signal ramp?
[vline~] is not a lowpass filter, so I guess you use [vline~] to control a signal controlled lowpass filter. To make this exponentional you could connect [vline~] to the right inlet of [pow~] and make sure the output of [vline~] is [0-1] (and never exceeds 1). Then choose your range (e.g. [500-1000]). Connect [sig~ 2] to the left inlet of [pow~] and multiply the output by 500. To scale the range, just use [*~] or [/~] and never [+~] or [-~], for you're working on an exponential scale. This means that an output of 0 is impossible, so for a logarithmic amplitude control choose a very large range (e.g. 1-100000) and divide the output by the same value to get the range [1/100000-1].
Hope this helps.
Thanks very much. This is the answer for me!
Best, Peiman
*www.peimankhosravi.co.uk || RSS Feedhttp://peimankhosravi.co.uk/miscposts.rss || Concert News http://spectralkimia.wordpress.com/*
On 28 October 2013 10:27, Funs Seelen funsseelen@gmail.com wrote:
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi < peimankhosravi@gmail.com> wrote:
Since I'm on a mailing spree: how can I make a pd version of slide~ (MSP), which, according to the msp reference, is a logarithmic lowpass filter for smoothing envelops. Anything similar will do. I'm using vline~ for now to smooth out midi faders but it doesn't feel quite the same.
And on a related subject: what is the best way to create an exponential signal ramp?
[vline~] is not a lowpass filter, so I guess you use [vline~] to control a signal controlled lowpass filter. To make this exponentional you could connect [vline~] to the right inlet of [pow~] and make sure the output of [vline~] is [0-1] (and never exceeds 1). Then choose your range (e.g. [500-1000]). Connect [sig~ 2] to the left inlet of [pow~] and multiply the output by 500. To scale the range, just use [*~] or [/~] and never [+~] or [-~], for you're working on an exponential scale. This means that an output of 0 is impossible, so for a logarithmic amplitude control choose a very large range (e.g. 1-100000) and divide the output by the same value to get the range [1/100000-1].
Hope this helps.
the other day I implemented, just for fun, the [cyclone/slide~] object with [fexpr~], it's 100% compatible to vanilla. find it attached. cheers
2013-10-28 18:41 GMT-02:00 peiman khosravi peimankhosravi@gmail.com:
Thanks very much. This is the answer for me!
Best, Peiman
*www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS Feed http://peimankhosravi.co.uk/miscposts.rss || Concert News http://spectralkimia.wordpress.com/*
On 28 October 2013 10:27, Funs Seelen funsseelen@gmail.com wrote:
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi < peimankhosravi@gmail.com> wrote:
Since I'm on a mailing spree: how can I make a pd version of slide~ (MSP), which, according to the msp reference, is a logarithmic lowpass filter for smoothing envelops. Anything similar will do. I'm using vline~ for now to smooth out midi faders but it doesn't feel quite the same.
And on a related subject: what is the best way to create an exponential signal ramp?
[vline~] is not a lowpass filter, so I guess you use [vline~] to control a signal controlled lowpass filter. To make this exponentional you could connect [vline~] to the right inlet of [pow~] and make sure the output of [vline~] is [0-1] (and never exceeds 1). Then choose your range (e.g. [500-1000]). Connect [sig~ 2] to the left inlet of [pow~] and multiply the output by 500. To scale the range, just use [*~] or [/~] and never [+~] or [-~], for you're working on an exponential scale. This means that an output of 0 is impossible, so for a logarithmic amplitude control choose a very large range (e.g. 1-100000) and divide the output by the same value to get the range [1/100000-1].
Hope this helps.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
the other day I implemented, just for fun, the [cyclone/slide~] object with [fexpr~], it's 100% compatible to vanilla. find it attached. cheers
Great! Did you have a chance to compare cpu useage between the two?
no, but it's obviously more inefficient :)
it could be simpler if you were to use [change~], that was the tricky part for me
2015-06-07 12:20 GMT-03:00 Peter P. peterparker@fastmail.com:
- Alexandre Torres Porres porres@gmail.com [2015-06-06 17:17]:
the other day I implemented, just for fun, the [cyclone/slide~] object
with
[fexpr~], it's 100% compatible to vanilla. find it attached. cheers
Great! Did you have a chance to compare cpu useage between the two?
well, if you want efficiency, why not just use the [slide~] object for Pd in cyclone?
2015-06-07 13:45 GMT-03:00 Alexandre Torres Porres porres@gmail.com:
no, but it's obviously more inefficient :)
it could be simpler if you were to use [change~], that was the tricky part for me
2015-06-07 12:20 GMT-03:00 Peter P. peterparker@fastmail.com:
- Alexandre Torres Porres porres@gmail.com [2015-06-06 17:17]:
the other day I implemented, just for fun, the [cyclone/slide~] object
with
[fexpr~], it's 100% compatible to vanilla. find it attached. cheers
Great! Did you have a chance to compare cpu useage between the two?
well, if you want efficiency, why not just use the [slide~] object for Pd in cyclone?
I guess I was just curious. Thank you for your vanilla port of it Alexandre.
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi peimankhosravi@gmail.comwrote:
And on a related subject: what is the best way to create an exponential signal ramp?
A simpler way to get a similar result is to range the output to [0-1], just as described before, but then just take a power of it. The higher the power, the sharper the curve. Then multiply the whole to your preferred range. In this case a range starting with 0 is possible, for it is not an exponential range as in the previous example.
An example:
[1 20, 0 500 20( | [vline~] | [pow~] | [*~ your_maxval] |
On 28/10/2013 10:05, peiman khosravi wrote:
Since I'm on a mailing spree: how can I make a pd version of slide~ (MSP), which, according to the msp reference, is a logarithmic lowpass filter for smoothing envelops. Anything similar will do.
I guess you could re-emplement it with [fexpr~].
Often, though, for smoothing non-singnal control messages (e.g. attaching a vslider to a [*~]) a simple [lop~] is more than enough (and rather 'economic')...
Lorenzo.