jildertviet / ofxJVisuals

Personal project for generating realtime visuals.
Other
4 stars 0 forks source link

JShaderS Multichannel Expansion #65

Open jildertviet opened 1 month ago

jildertviet commented 1 month ago

Will this work? Coming form #61

jildertviet commented 1 month ago

This works.

n = 30;
x = {JShaderS.kr((0..(n-1)), rgba: [255, 255, 255,1], numBusses: 21, busses: 
[8, 
  // LFTri.kr(0.4).range(0.1, 0.2),
  TRand.kr(0.0, 1.0, 1!n),
  0.5 + LFDNoise3.kr(1/4!n), 0.5, 0.5,
  0.0, 0.0, 0.0,
  1.0, 1.0, 1.0
], mode: 0
); 1; }.play(~of);
)
b = Buffer.alloc(~of, 100);
b.setn(0, "/home/jildert/of_v0.12.0-rc1_linux64gcc6_release/addons/ofxJVisuals/test/gradientRect".ascii);

// Multichannel
y = {JBufferSender.kr(b, 1, x.nodeID, (0..(n-1))); EnvGate.new(1, Impulse.kr(0), 1)}.play(~of) // Load the shader...