Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
|
|
[If between 11 and 20]
|
|
|
[X]
I thought this would be easier to come up with a solution than it has been
thanks in advance.
Use a series of [moses] objects to set your low and high point with a trigger banging the hot inlet of a [f] object with your desired value.
On Mon, Nov 22, 2010 at 8:37 PM, Ben Carney bfcarney@gmail.com wrote:
Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
| | [If between 11 and 20] | | | [X]I thought this would be easier to come up with a solution than it has been
thanks in advance.
-- benfcarney www.benfcarney.com Chicago, IL
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
this seems like the right track, but I am getting a bit confused when you mentioned the "desired value."
In this case, I don't have a desired value, I have a desired range of values. I just need a desired range of values to return true.
Am I misunderstanding you?
On Mon, Nov 22, 2010 at 8:00 PM, brandon zeeb zeeb.brandon@gmail.comwrote:
Use a series of [moses] objects to set your low and high point with a trigger banging the hot inlet of a [f] object with your desired value.
On Mon, Nov 22, 2010 at 8:37 PM, Ben Carney bfcarney@gmail.com wrote:
Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
| | [If between 11 and 20] | | | [X]I thought this would be easier to come up with a solution than it has been
thanks in advance.
-- benfcarney www.benfcarney.com Chicago, IL
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Brandon Zeeb
just in case I wasn't as clear as I should have been I feel like i need to rephrase my query:
lets say I have an int box that is going from 0-100. i want to only return a true value in one of ten triggers if the number is between 0-10/ 11-20/ 21-30 and so on.
On Mon, Nov 22, 2010 at 7:37 PM, Ben Carney bfcarney@gmail.com wrote:
Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
| | [If between 11 and 20] | | | [X]I thought this would be easier to come up with a solution than it has been
thanks in advance.
-- benfcarney www.benfcarney.com Chicago, IL
time out. I was having a momentary lapse of normal thought patterns. I had the right Idea but was doing it backwards. i couldn't wrap my t-rex sized brain around why my <= & >= operation wasn't working. now I did it correcty and It is working.
sorry to fill the list with noise.
On Mon, Nov 22, 2010 at 7:37 PM, Ben Carney bfcarney@gmail.com wrote:
Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
| | [If between 11 and 20] | | | [X]I thought this would be easier to come up with a solution than it has been
thanks in advance.
-- benfcarney www.benfcarney.com Chicago, IL
You could use [expr]
[expr $f1>=11 && $f1<=20]
Ingo
Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von Ben Carney Gesendet: Dienstag, 23. November 2010 02:37 An: pd-list@iem.at Betreff: [PD] if within a range of numbers then true
Hello all,
I have become rusty in pure data. It seems as if I used to know the answer to this.
I would like to beable to output a "1" if a number is within a certain range
example:
[number box
|
|
[If between 11 and 20]
|
|
|
[X]
I thought this would be easier to come up with a solution than it has been
thanks in advance.