x for a set of pads is an array, you need to use:
if (x[0]) Fader.x = 0.1
if (x[1]) Fader.x = 0.2
etc...
Search found 8 matches
- 21 Feb 2012 14:02
- Forum: General Discussion
- Topic: various pads to control the value of a fader
- Replies: 3
- Views: 882
- 16 Jan 2012 17:27
- Forum: General Discussion
- Topic: show/hide objects when a menu option is selected
- Replies: 10
- Views: 5755
Re: show/hide objects when a menu option is selected
add a multiline script to your menu, with execution on expression = selection
if(selection == 0) {
show(ContainerA,1);
show(ContainerB,0);
} else if (selection == 1) {
show(ContainerA,0);
show(ContainerB,1);
}
if(selection == 0) {
show(ContainerA,1);
show(ContainerB,0);
} else if (selection == 1) {
show(ContainerA,0);
show(ContainerB,1);
}
- 16 Jan 2012 12:46
- Forum: General Discussion
- Topic: Display program name in a fader or monitor
- Replies: 38
- Views: 11997
Re: Display program name in a fader or monitor
Hey jojokrok, 2. A bank of switches with labels was my next option, but it crashes the editor im labelling 12*8 pads with multilabels no problem. can we see your code thats causing the crash? see below for a working example from a quick test it looks like the maximum array size for strings is about ...
- 16 Jan 2012 08:59
- Forum: General Discussion
- Topic: Waveform formulae for signalscope
- Replies: 3
- Views: 2890
Re: Waveform formulae for signalscope
Heres my more primitive triangle generator, where o is some multiple of time val = o % 4 > 2 ? (2 - o %2)/2 : (o % 2)/2; i initially went the trigonmetric route with the sine series (http://en.wikipedia.org/wiki/Triangle_wave), you need about 3-5 harmonics for a decent triangle wave but you still ...
- 16 Jan 2012 07:03
- Forum: General Discussion
- Topic: Display program name in a fader or monitor
- Replies: 38
- Views: 11997
Re: Display program name in a fader or monitor
Heres another way to do it, add a new multiline script to you fader with trigger expression = x val = floor(x*127); decl names = {'Piano', 'Guitar', '...', '...'} setattribute(getobject(), 'label', names[val]); In response to why other things dont work: == with floats is probably due to rounding ...
- 15 Jan 2012 11:06
- Forum: General Discussion
- Topic: sysex again, it´s geting complicated...
- Replies: 27
- Views: 16387
Re: sysex again, it´s geting complicated...
@ st8_livecontrol: aren´t you part of the dev team here? are there any plans to implement arrays with more filesize? please let us know. cheers, Martin im afraid i wasnt involved in the lemur development, however i am finally getting to grips with lemur. I'll pass on the feature request though :)
- 15 Jan 2012 10:56
- Forum: General Discussion
- Topic: Using Monitor to control CPU Usage
- Replies: 1
- Views: 847
Re: Using Monitor to control CPU Usage
I don think the live api provides info about the current ableton load. I guess you'd need an external program that could monitor the machine cpu load and then send osc messages to the lemur.
- 13 Jan 2012 09:14
- Forum: General Discussion
- Topic: sysex again, it´s geting complicated...
- Replies: 27
- Views: 16387
Re: sysex again, it´s geting complicated...
To be readable the array (data byte part)has to be converted to 8 bit first. It works this way. The first byte holds the 8 th bit value of the next 7 bytes. So if the first byte is 1110001 and the following 7 bytes are all 1111111 then these 7 bytes are actually 1 1111111 1 1111111 1 1111111 0 ...