Hi,
So a friend of mine helps me quite alot to get started with lightjams and we are programming a project for my midi controller (Apc40 Mk2).
We were trying to create a source with 5 different attributes with switch. Here's the line:
gmem(2, switch(midi.note.latest(1, 1, 33), 1, 0, 9, triangle(select(midi.control(1, 49), 32, 16, 8, 4, 2, 1, 0.5, 0.25, 0.125)), 17, sawtooth(select(midi.control(1, 49), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), 25, randorganic(select(midi.control(1, 49), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), 33, latch(pulse(select(midi.control(1, 49), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), rand()), last))
And we typed this into the X-bar as moving attribute:
gmem(1, switch(midi.note.latest(1,2,34), 2, 50, 10, triangle(select(midi.control(1, 50), 32, 16, 8, 4, 2, 1, 0.5, 0.25, 0.125)), 18, sawtooth(select(midi.control(1,50), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), 26, randorganic(select(midi.control(1,50), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), 34, latch(pulse(select(midi.control(1,50), 16, 8, 4, 2, 1, 0.5, 0.25, 0.125, 0.125)), rand()), last))
If I press a midibutton that will affect the power bar the X bar stops working and vice versa.
Can I write something similar to that do we need to retype the entire thing?
/s