Help with number boxes
Hi, quite a simple question I think! I have two number boxes which have constantly changing variables. But number boxes output a bang when they change, which is the problem as I want to add these two numbers together ONLY when a seperate bang is sent!
So there are 3 inputs a bang which activates the addition, and two variables which are added together. Any ideas from anybody?
Cheers
Dan Duke
connect the number boxes to left inlets of int/float objects. outputs of these then go into the + object. when you need to calculate, send a bang to left inlets of int/float objects. mind the right to left order!
The problem is when the numbers change as they re variables, these will then also send a bang through to complete the calculation, which is what I don't want it to do!
Basically theres two boxes I can drag up and down with a number in, and at certain points I want to add them together, but only when I send a bang, not the int/float box sending one everytime it changes.
thats what i said:
the inlets/outlets are labeled are labeled.
Im not sure what you mean, sorry! Here is an image of what I have as an example! The patcher at the top alters the numbers which then come down! And the bang is sent by the user to add the numbers together!
Picture is here:
http://www.retrobadger.net/temp/maxhelp01.gif
this is the last time. save this text as a text file and open with max!
Dan Duke wrote:
> Im not sure what you mean, sorry! Here is an image of what I have as
> an example! The patcher at the top alters the numbers which then
> come down! And the bang is sent by the user to add the numbers
> together!
Here's a clip-patch which implements the first solution posted (with the
correction of using the right inlet of the [int] objects, which I think
the poster intended). I deleted the mail already so I'm neglecting the
credit, sorry. I think this is the simplest way.
I kinda get you know, but am new to the forums, and not sure how to open the text files into max! I have it on my desktop and opened it into max, but it's still just a string of text!
Cheers for your patience
I got it, cheers so much for your help, it is so much appreciated, sorry for being a bit too simple!
Dan
At 2:58 PM -0700 2/2/06, Dan Duke wrote:
>Hi, quite a simple question I think! I have two number boxes which have constantly changing variables. But number boxes output a bang when they change, which is the problem as I want to add these two numbers together ONLY when a seperate bang is sent!
>
>So there are 3 inputs a bang which activates the addition, and two variables which are added together. Any ideas from anybody?
use an int object between the left inlet of the + object and the number box. bang as needed.
Alternitively, you could add a "prepend set" object between the left input of the + object and the number box, then bang the left input of the + object when you want an addition.
-C
--
Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." - Brian Eno
> sorry for being a bit too simple!
As long as you follow the 'rules' below you should never have to
hesitate to ask a question.
A: search the documentation
B: search the forums ( https://cycling74.com/forums/index.php?
t=search )
C: explain your problem as concisely as you can
D: are polite about your troubles.
E: worship the lord Zicarelli when the moon is in the eighth house of
Aquarius.
matthew aidekman wrote:
> E: worship the lord Zicarelli when the moon is in the eighth house of
> Aquarius.
When is the next occasion? I need to ask some things to get my bills
payed with a Maxpatch....
Stefan
--
[][] [][][] [][] [][][] [][] [][][] [][] [][][]
[][][][][][][][][][][][][][][][][][][][][][][][][][][][]
Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation
/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///
-------------------------x---
--_____-----------|----------
--(_|_ ----|-----|-----()---
-- _|_)----|-----()----------
----------()------------x----
14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France
Phone at CCMIX +33-1-49 77 51 72