hello
is there a function/abs whatever that increases one val while reciprocally reduces another?
What i mean is say i have a Wet Value 1 to 100 is there something simple that as i raise that value it will reduce say Dry from 100 to 1 in unison?
I know i am just forgetting what it is
thanks in advance for any help
Patrick
Patrick Pagano B.S, M.F.A
Assistant Professor in Residence
Digital Media & Design
Web & Interactive Technologies
University of Connecticut, Stamford
(352)-226-2016
original number into
[expr abs($f1 - 100)]
should do what you want
best
oliver
Pagano, Patrick wrote:
hello
is there a function/abs whatever that increases one val while reciprocally reduces another?
What i mean is say i have a Wet Value 1 to 100 is there something simple that as i raise that value it will reduce say Dry from 100 to 1 in unison?
I know i am just forgetting what it is
thanks in advance for any help
Patrick
Patrick Pagano B.S, M.F.A
/Assistant Professor in Residence/
/Digital Media & Design /
/Web & Interactive Technologies/
/University of Connecticut, Stamford/
///(352)-226-2016/
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Hi,I usually do this by multiplying the value by -1 and offset it by the range of the first value (see attached patch). Hope that helps! Cheers!
Hrvoje Radnic http://soundcloud.com/sumovi-protiv-valova 00385(0)915225162
From: "Pagano, Patrick" <patrick.pagano@uconn.edu>
To: pd list pd-list@iem.at Sent: Tuesday, August 29, 2017 12:25 AM Subject: [PD] a simple question about increasing/decreasing values
<!--#yiv8424257227 P {margin-top:0;margin-bottom:0;}-->
hello is there a function/abs whatever that increases one val while reciprocally reduces another? What i mean is say i have a Wet Value 1 to 100 is there something simple that as i raise that value it will reduce say Dry from 100 to 1 in unison? I know i am just forgetting what it is thanks in advance for any help Patrick Patrick Pagano B.S, M.F.AAssistant Professor in ResidenceDigital Media & Design Web & Interactive TechnologiesUniversity of Connecticut, Stamford(352)-226-2016_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
IOhannes m zmölnig wrote:
On 08/29/2017 01:28 AM, Hrvoje Radnic via Pd-list wrote:
Hi,I usually do this by multiplying the value by -1 and offset it by the range of the first value
which is about 100% faster than the expr equivalent.
hi, IOhannes !
thanks for that info !
i often read on this list that [expr] is slower/computational more expensive etc. than using simple vanilla objects. why is that so ?
in theory, it would make patching more easy as it reduces the number of objects and cords. what are situations where [expr] makes more sense to use ?
thanks
oliver
On Tue, Aug 29, 2017 at 10:04 AM, oliver oliver@klingt.org wrote:
IOhannes m zmölnig wrote:
On 08/29/2017 01:28 AM, Hrvoje Radnic via Pd-list wrote:
Hi,I usually do this by multiplying the value by -1 and offset it by the range of the first value
which is about 100% faster than the expr equivalent.
hi, IOhannes !
thanks for that info !
i often read on this list that [expr] is slower/computational more expensive etc. than using simple vanilla objects. why is that so ?
in theory, it would make patching more easy as it reduces the number of objects and cords. what are situations where [expr] makes more sense to use ?
expr is slower since the expressions are interpreted, but in practice it probably doesn't matter unless expr is called extremely often. Another alternative is k_cext which compiles the expressions to C, probably making it the fastest alternative: https://github.com/kmatheussen/k_cext
That is PERFECT thank you!
I was having a brain freeze but i get it now
cheers!
pp
Patrick Pagano B.S, M.F.A
Assistant Professor in Residence
Digital Media & Design
Web & Interactive Technologies
University of Connecticut, Stamford
(352)-226-2016
From: Hrvoje Radnic hrvojeradnic@yahoo.com Sent: Monday, August 28, 2017 7:28:37 PM To: Pagano, Patrick; pd list Subject: Re: [PD] a simple question about increasing/decreasing values
Hi, I usually do this by multiplying the value by -1 and offset it by the range of the first value (see attached patch). Hope that helps! Cheers!
Hrvoje Radnic http://soundcloud.com/sumovi-protiv-valova 00385(0)915225162
From: "Pagano, Patrick" patrick.pagano@uconn.edu To: pd list pd-list@iem.at Sent: Tuesday, August 29, 2017 12:25 AM Subject: [PD] a simple question about increasing/decreasing values
hello
is there a function/abs whatever that increases one val while reciprocally reduces another?
What i mean is say i have a Wet Value 1 to 100 is there something simple that as i raise that value it will reduce say Dry from 100 to 1 in unison?
I know i am just forgetting what it is
thanks in advance for any help
Patrick
Patrick Pagano B.S, M.F.A Assistant Professor in Residence Digital Media & Design Web & Interactive Technologies University of Connecticut, Stamford (352)-226-2016 _______________________________________________ Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list