Page 41 of 64 FirstFirst ... 3137383940414243444551 ... LastLast
Results 401 to 410 of 636

Thread: The LSX tutorials thread!

  1. #401
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,777

    Default

    Do you want a key (a single button) so that when pressed, the animations rotate and when released it stops rotating?

    You can't use the "key" expression for that, you need to use midi() which only works with CC commands, but you can remap a key to a CC command in the MIDI setup. Then you can do

    Code:
    if(midi(1), assign(a, a+0.01), 0);
    result = a
    (in case you remapped the midi key to CC command 1).

    You don't need to reset the value a since the rotation is periodic (meaning a z-rotation value of 1 is equal to a z-rotation value of 0). I also don't get how you would use linear interpolation?

  2. #402
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Quote Originally Posted by colouredmirrorball View Post
    Do you want a key (a single button) so that when pressed, the animations rotate and when released it stops rotating?

    You can't use the "key" expression for that, you need to use midi() which only works with CC commands, but you can remap a key to a CC command in the MIDI setup. Then you can do

    Code:
    if(midi(1), assign(a, a+0.01), 0);
    result = a
    (in case you remapped the midi key to CC command 1).

    You don't need to reset the value a since the rotation is periodic (meaning a z-rotation value of 1 is equal to a z-rotation value of 0). I also don't get how you would use linear interpolation?
    Thanks CMB, almost perfect only how control the speed of z rotation ? Linear interpolation is just etime, etime*midi(1).

  3. #403
    Join Date
    Jul 2008
    Location
    My momentum is too precisely determined :S
    Posts
    1,777

    Default

    Change the 0.01 in assign(a, a+0.01). The velocity of the key is mapped to the midi(1) expression so you could also do assign(a, a+midi(1)) to change the rotation speed according to the key velocity.

  4. #404
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Quote Originally Posted by colouredmirrorball View Post
    Change the 0.01 in assign(a, a+0.01). The velocity of the key is mapped to the midi(1) expression so you could also do assign(a, a+midi(1)) to change the rotation speed according to the key velocity.
    Still no soft start, only mad speed. Will try tommorow. Thanks

  5. #405
    Join Date
    Aug 2013
    Location
    Vilnius, Lithuania
    Posts
    67

    Default

    Quote Originally Posted by colouredmirrorball View Post
    Change the 0.01 in assign(a, a+0.01). The velocity of the key is mapped to the midi(1) expression so you could also do assign(a, a+midi(1)) to change the rotation speed according to the key velocity.
    key won't help in that case, only slider.
    assign(a, a+0.01) is dependent on system speed, that means the faster your PC, the faster it will move. Wanting control it, some sticking to time is needed. I'm not sure if thats possible to 'wait' in LSX effect for some ms (would be great add-on, btw). One of the ways to do it (not very neat, but works):

    if(midi(1), if(below(mod(Time,10),0.1), assign(a, a+0.01), 0), 0);
    result = a

    Then the speed might be controlled by changing divisor in mod ('10' at the example)
    That's if I understood what maton needs correctly

  6. #406
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Thanks for all suggestions ! " if(midi(1), assign(a, a+midi(1)*0.005), 0);result = a ", works fine but no set time speed control. Anyway success !

  7. #407
    Join Date
    Jun 2010
    Location
    Cary, NC
    Posts
    190

    Default

    Quote Originally Posted by dkumpula View Post
    At SELEM 2014, Swamidog, Lulighttec and I gave an informal talk about some of the lesser known features of LSX. Unfortunately the use of a single camcorder didn't allow us to capture close-ups of the screen, speakers and laser output so it is a bit difficult to see. The audio is cleaned up as best I could, but still isn't great by any means. This said, I hope those LSX users will still be able to get the gist of it.

    Thanks to everyone at SELEM who took the time out to share some of their knowledge!

    -David

    Regarding your title cards at the end of the video.... As long as they pay the airfare and put me up, I'll go! :-D

    -Newlin

  8. #408
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    Hey guys. I need some advice in expression.
    In pre move x event set up type of animation as random, then discrete steps on 25, now how to do that in expression ? Need that effect in midi on/off control. Thanks for all suggestions.

  9. #409
    Join Date
    Dec 2012
    Location
    Poland
    Posts
    26

    Default

    It is normal in Rnd expression that cone doesn't move smooth ?

    https://drive.google.com/file/d/0B9H...ew?usp=sharing

    Thanks for answer !

  10. #410
    Join Date
    Feb 2007
    Location
    Fort Mill, SC USA
    Posts
    1,513

    Default

    Quote Originally Posted by maton View Post
    It is normal in Rnd expression that cone doesn't move smooth ?

    Thanks for answer !
    Hi Maton,

    I'll let CMB answer your prior question, but for this one there are a couple potential issues. It was hard to see what you did because the resolution of the video was low, but I think I saw that what you meant.

    First, does LSX think your DAC is on and connected when it actually isn't? If so, the preview window will not refresh smoothly as it doesn't actually know if the DAC is "getting the message". If you want to turn off your DAC and work with just the preview window, go back into Edit DAC Assignments after you turn off your DAC and LSX will see that the DAC is no longer connected and not stutter in the preview window. (Be sure to go back to Edit DAC assignments after you turn back on your DAC for LSX to see it again.)

    The other possibility is that you have zoomed in very much in your event's window (or that the window is very small). Everytime the TimeCursor gets to the end of a section and needs to jump forward to continue viewing what you are seeing, it stutters on RND expressions giving them an new value. Its a known and reported problem.

    Finally, unless you want consistency of your random function, you may wish to use the expression Rand(x)/x instead. Rand resets all its values everytime its played, where-as Rnd stays the same until you hit that dice button in the upper right.

    Hope this helps.

    -David
    "Help, help, I'm being repressed!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •