Page 50 of 67 FirstFirst ... 4046474849505152535460 ... LastLast
Results 491 to 500 of 670

Thread: The LaserBoy Thread

  1. #491
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    812

    Default

    Quote Originally Posted by Greg View Post
    Using the following code to generate the shape shown:


    math normalize_frames_with_origin no
    math normalize_frames_individually no
    math include_unit_reference no


    math to_frame 0.50


    # one oscillator
    math LBO1 phase 90.0
    math LBO1 amplitude 1.0
    math LBO2 amplitude 1.0
    math lissajou


    # another oscillator
    math LBO1 reset
    math LBO2 reset


    math LBO1 phase 90.0
    math LBO1 amplitude 0.5
    math LBO1 frequency -3.0


    math LBO2 amplitude 0.5
    math LBO2 frequency -3.0
    math lissajou


    # sum oscillators
    math add


    # output
    math render


    Now, instead of adding the two frame sets, how do I multiply both axes of one frame set with say, 20 percent of one axis in the other frame set?

    Good example, some of it makes sense, some not as much. Mainly because I've not had time to review your LB basics.
    how does the result change with +3 vs -3 freq difference? I mean it is still a |1:3| ratio. Maybe it has to do with the default freq value when not stated or declared.
    ________________________________
    Everything depends on everything else

  2. #492
    Join Date
    Mar 2010
    Posts
    592

    Default

    lasermaster1977: The -3 is to spin one of the circles in the opposite direction, or 180 degrees out of phase.

    James: The graphic shows the same shape but this time with only the Y axis amplitude modulated.
    Attached Thumbnails Attached Thumbnails test_002.png  

    test_003.png  


  3. #493
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Code:
    math  to_frame          0.5
    
    math  iterations        2000
    
    math  LBO1 phase        90.0
    math  lissajou
    
    # put this in the list
    math  store  one_circle
    
    math  duration          8.0
    # from 0 to 8 * two_pi (8 loops around)
    
    math  lissajou
    # put this in the list
    math  store  eight_circles
    
    math  factor       0.0  0.3  0.0
    # factor is used by scale
    math  scale
    # put this in the list
    math  store  y_mod
    
    math  recall eight_circles
    math  factor       0.3  0.0  0.0
    math  scale
    # put this in the list
    math  store  x_mod
    
    math  recall eight_circles
    math  factor       0.3  0.3  0.0
    math  scale
    # put this in the list
    math  store  xy_mod
    
    math  recall  one_circle
    math  recall  x_mod
    math  add
    math  render
    
    math  recall  one_circle
    math  recall  y_mod
    math  add
    math  render
    
    math  recall  one_circle
    math  recall  xy_mod
    math  add
    math  render

    Click image for larger version. 

Name:	greg_000000.gif 
Views:	28 
Size:	1.6 KB 
ID:	57878Click image for larger version. 

Name:	greg_000001.gif 
Views:	27 
Size:	2.3 KB 
ID:	57879Click image for larger version. 

Name:	greg_000002.gif 
Views:	29 
Size:	2.5 KB 
ID:	57880
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  4. #494
    Join Date
    Mar 2010
    Posts
    592

    Default

    Thanks James! That is very helpful. One more and I should be off and running. This one is an oscillator with amplitude modulation and phase modulation, with the modulating signal being 3 times the fundamental.
    Attached Thumbnails Attached Thumbnails test_004.png  


  5. #495
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    Ha!

    I thought you had me there for a minute.

    But then I remembered a trick to pull out of the bag.

    The "warp" operator!

    Basically it uses the x y z coordinate values of the second frame_set image to rotate the vertices in the first.

    So in this example, I had to use the oscillator_xyz generator to put a sin into the z axis (x and y of the first frame are rotated around the z axis). Note that the amplitude of LBO1 and LBO2 is 0.0.

    Thanks for that! This is the first example of the warp operator I have written. I wrote the code purely out of theory.

    And it works!

    The warp operator multiplies the rotational values by pi, so a regular sin wave oscillates from -1 to +1. This translates to -pi to +pi rotation in radians (one whole rotation).

    Code:
    math  LBO1  frequency   3.0
    math  LBO1  phase       180.0
    math  LBO1  offset      1.5
    math  polar
    
    
    math  LBO1  reset
    math  LBO1  amplitude   0.0
    math  LBO2  amplitude   0.0
    math  LBO3  amplitude   0.25
    math  LBO3  frequency   3.0
    
    #    x = LBO1(t)
    #    y = LBO2(t)
    #    z = LBO3(t)
    math  oscillator_xyz
    
    math  warp
    math  render

    Click image for larger version. 

Name:	greg.gif 
Views:	31 
Size:	1.8 KB 
ID:	57882
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  6. #496
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    812

    Default

    James, I want to publicly thank you for the time you spent on the phone with me today. It cleared up a great deal for me on the LaserBoy interface and allowed me to actually create some basic frames that I can relate to from my past harmonic ratios experience. I quickly did these 1:3, 2:3 and 3:5 summation ratios in a matter of minutes.

    Click image for larger version. 

Name:	4Pedal.jpg 
Views:	0 
Size:	62.3 KB 
ID:	57883 Click image for larger version. 

Name:	4Point-1.jpg 
Views:	0 
Size:	49.9 KB 
ID:	57884

    Click image for larger version. 

Name:	5Pedal.jpg 
Views:	0 
Size:	70.3 KB 
ID:	57885 Click image for larger version. 

Name:	5Point-1.jpg 
Views:	0 
Size:	64.3 KB 
ID:	57886

    Click image for larger version. 

Name:	8Pedal.jpg 
Views:	0 
Size:	93.9 KB 
ID:	57887 Click image for larger version. 

Name:	8Point-1.jpg 
Views:	0 
Size:	94.2 KB 
ID:	57888

    I look forward to getting more involved with using LB.
    ________________________________
    Everything depends on everything else

  7. #497
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    812

    Default

    Quote Originally Posted by james View Post
    Ha!

    I thought you had me there for a minute.

    But then I remembered a trick to pull out of the bag.

    The "warp" operator!

    Basically it uses the x y z coordinate values of the second frame_set image to rotate the vertices in the first.

    So in this example, I had to use the oscillator_xyz generator to put a sin into the z axis (x and y of the first frame are rotated around the z axis). Note that the amplitude of LBO1 and LBO2 is 0.0.

    Thanks for that! This is the first example of the warp operator I have written. I wrote the code purely out of theory.

    And it works!

    The warp operator multiplies the rotational values by pi, so a regular sin wave oscillates from -1 to +1. This translates to -pi to +pi rotation in radians (one whole rotation).

    Code:
    math  LBO1  frequency   3.0
    math  LBO1  phase       180.0
    math  LBO1  offset      1.5
    math  polar
    
    
    math  LBO1  reset
    math  LBO1  amplitude   0.0
    math  LBO2  amplitude   0.0
    math  LBO3  amplitude   0.25
    math  LBO3  frequency   3.0
    
    #    x = LBO1(t)
    #    y = LBO2(t)
    #    z = LBO3(t)
    math  oscillator_xyz
    
    math  warp
    math  render

    Click image for larger version. 

Name:	greg.gif 
Views:	31 
Size:	1.8 KB 
ID:	57882
    That can turn into a Category 3 vortex very easily.
    Click image for larger version. 

Name:	3FanBlade-3.jpg 
Views:	0 
Size:	99.5 KB 
ID:	57889
    ________________________________
    Everything depends on everything else

  8. #498
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I've got a big smile on my face right now!

    Hey, Greg!

    Something else that might be of interest to you is that Liquid Math can import your data tables and load them into the registers for math just like if they were generated from the script. It can also save text tables from the script.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

  9. #499
    Join Date
    Sep 2014
    Location
    Colorado USA
    Posts
    812

    Default

    Quote Originally Posted by james View Post
    I've got a big smile on my face right now!

    Hey, Greg!

    Something else that might be of interest to you is that Liquid Math can import your data tables and load them into the registers for math just like if they were generated from the script. It can also save text tables from the script.
    That is something I'd also like to know how to do it, load data tables and save text tables.
    ________________________________
    Everything depends on everything else

  10. #500
    Join Date
    Mar 2012
    Location
    Akron, Ohio USA
    Posts
    2,197

    Default

    I think it is described in directives.txt.

    The "size" operator would also be useful so you can be sure your imports are the size you want them to be.
    Creator of LaserBoy!
    LaserBoy is free and runs in Windows, MacOS and Linux (including Raspberry Pi!).
    Download LaserBoy!
    YouTube Tutorials
    Ask me about my LaserBoy Correction Amp Kit for sale!
    All software has a learning curve usually proportional to its capabilities and unique features. Pointing with a mouse is in no way easier than tapping a key.

Posting Permissions

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