Re: [PD] slide~ (msp) in pd

2013-10-28 Thread Funs Seelen
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi
peimankhosr...@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-10) and divide the output by the same value to get
the range [1/10-1].

Hope this helps.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] slide~ (msp) in pd

2013-10-28 Thread Funs Seelen
On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi
peimankhosr...@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]
|
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] slide~ (msp) in pd

2013-10-28 Thread Lorenzo Sutton

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.

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] slide~ (msp) in pd

2013-10-28 Thread peiman khosravi
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 funssee...@gmail.com wrote:

 On Mon, Oct 28, 2013 at 10:05 AM, peiman khosravi 
 peimankhosr...@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-10) and divide the output by the same value to get
 the range [1/10-1].

 Hope this helps.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list