Ah thanks for pointing that out! Makes sense, I guess it didn't register with me that I was getting a float out of it.
That said, exponentiation involving only ints ought to yield ints, so there's still a little bug here (whew).
Search found 21 matches
bug
Make a monitor with a variable named var, set it to 3.
Set the monitor's value and watch what it displays:
Set the monitor's value and watch what it displays:
Code: Select all
128 & var = 0
2^7 & var = 3
2^7 = 128
- 21 Jun 2012 02:19
- Forum: General Discussion
- Topic: Creating a more efficient Lemur template.
- Replies: 4
- Views: 1393
Re: Creating a more efficient Lemur template.
Well, you have got the idea right. There is relatively significant overhead in an OSC message because of the text address strings that eat up a relatively large amount of bandwidth and then additionally require a relatively large amount of work to parse. So, sending an array of values instead of a b...
- 20 Jun 2012 06:14
- Forum: General Discussion
- Topic: assigning a .x value to a list.
- Replies: 8
- Views: 1891
Re: assigning a .x value to a list.
You need to add a script somewhere. Select it and change the execution to "On Osc". Set a custom address if you want. Then in the script you want to do this:
switch1.x = OSC_ARGS[0];
switch2.x = OSC_ARGS[1];
switch3.x = OSC_ARGS[2];
and so on.
switch1.x = OSC_ARGS[0];
switch2.x = OSC_ARGS[1];
switch3.x = OSC_ARGS[2];
and so on.
- 17 Jun 2012 01:54
- Forum: Wishlist
- Topic: More 'z' variables please . . .
- Replies: 24
- Views: 9665
Re: More 'z' variables please . . .
Just wanted to get this one back to the top of the forum because Knob.z would be tremendously useful for a project that I'm working on right now.
- 04 Feb 2012 19:55
- Forum: General Discussion
- Topic: Lemur editor HUGE memory bug
- Replies: 16
- Views: 6672
Re: Lemur editor HUGE memory bug
When you lose all your work without warning, it qualifies as "huge."
- 31 Jan 2012 04:42
- Forum: Wishlist
- Topic: last touched object as variable
- Replies: 4
- Views: 1308
Re: last touched object as variable
This would be great.
- 06 Jan 2012 05:07
- Forum: General Discussion
- Topic: switching scripts on and off
- Replies: 7
- Views: 2341
Re: switching scripts on and off
The file you posted works. I think you may get more what you are expecting if you change the execution type to "On Frame." "On expression" is only executed when the value of the expression changes, so your script only captures the value of the accelerometer at the moment the switch is activated. "On...
- 06 Jan 2012 04:31
- Forum: General Discussion
- Topic: switching scripts on and off
- Replies: 7
- Views: 2341
Re: switching scripts on and off
The whitespace is not important, except for readability. What you wrote works if you change "};" to ";}" and remove the extra ) on the first line. But I'd recommend formatting it in an easier to read way, so that it is easier to make changes: if (Switches.x == 1) { Multiball.x = (accelerometer[1] + ...
- 06 Jan 2012 03:20
- Forum: General Discussion
- Topic: Multifader advice - Ableton
- Replies: 4
- Views: 1428
Re: Multifader advice - Ableton
Yall are welcome. :D You can set as many things as you like. Just put them all inside the braces using a similar format. For example, this will set x values for a Fader and a Range also: if (x) { MultiSlider.x = range(sizeof(MultiSlider.x), 1, 1); Fader.x = 0.5; Range.x = {0, 1}; } Since the Fader a...