From 4f68482b1093b60eb078621a5eae14a1ed531e77 Mon Sep 17 00:00:00 2001 From: Luca Peric Date: Mon, 22 Jan 2024 08:48:54 +0000 Subject: [PATCH] Adding some jams --- hydra/jam/02-01-2023.js | 28 ++++++++++++++++++++++++++++ hydra/jam/21-01-2023.js | 33 +++++++++++++++++++++++++++++++++ hydra/jam/31-12-2023.js | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 hydra/jam/02-01-2023.js create mode 100644 hydra/jam/21-01-2023.js create mode 100644 hydra/jam/31-12-2023.js diff --git a/hydra/jam/02-01-2023.js b/hydra/jam/02-01-2023.js new file mode 100644 index 0000000..bce8cb5 --- /dev/null +++ b/hydra/jam/02-01-2023.js @@ -0,0 +1,28 @@ +bpm = 133 + +// first +src(s0) + //.modulateScrollX(osc(1, 1)) + //.modulateRotate(noise(5, 0.01)) + //.rotate([1, 2, 3, 4]) + //.posterize(3, 3) + //.pixelate(800, () => Math.sin(time)*300) + .diff( + src(o0)).modulateScale(osc(5, 0.1)) + .out() + + +// second +bpm = 135 + +osc(5, 0.9, 0.001) + .rotate([1, 2, 3]) + .kaleid([3,4,5,7,8,9,10].smooth(0.1)) + .color(0.5, 0.3) + .colorama(0.4) + .rotate([0.009, 0.018, 0.036],()=>Math.sin(time)* -0.001) + .modulateRotate(o0,()=>Math.sin(time) * 0.003) + .modulate(o0, 0.9) + .scale(0.9) + .out(o0) + diff --git a/hydra/jam/21-01-2023.js b/hydra/jam/21-01-2023.js new file mode 100644 index 0000000..be93e95 --- /dev/null +++ b/hydra/jam/21-01-2023.js @@ -0,0 +1,33 @@ +bpm = 129 + +osc(6, 0.1, 1).hue(1.5) + .modulateScale(noise(15)) + .modulateRotate(osc(6, 0.2)) + .modulatePixelate(osc(6, 0.02)) + .diff( + shape(8, 0.75) + .repeat(3, 3) + .rotate([0.5, 1, 1.5].smooth(0.5)) + .scrollX(1.5) + .modulateScrollY(osc(2, 0.3)) + ) + .out() + +// iteration on above + +await loadScript("https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js") +fade_shape = _.range(0, 1.1, 0.05).concat(_.fill(Array(10), 1)); + +bpm = 139 + +osc(6, 0.1, 1).hue(1.5) + .modulateScale(voronoi(10)) + .modulateRotate(osc(6, 0.2)) + .modulatePixelate(osc(6, 0.02)) + .diff( + shape(8, 0.75) + .repeat([10, 20, 30, 20, 10], [5, 7, 11]) + //.rotate([1, 2, 3, 4, 3, 2].smooth(0.5)) + ) +//.mult(shape(4).color(0,0,0), fade_shape) + .out() diff --git a/hydra/jam/31-12-2023.js b/hydra/jam/31-12-2023.js new file mode 100644 index 0000000..4956c60 --- /dev/null +++ b/hydra/jam/31-12-2023.js @@ -0,0 +1,35 @@ +bpm = 140 + +s0.initCam() + +src(s0) + .saturate(2) + .contrast(1.3) + .layer( + src(o0) + .mask( + shape(6,2.5) + .scale(0.4,0.7) + .rotate([0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4])) + .scrollX(0.001)) + // more energy + //.modulate(o0,0.004) + .out(o0) + + +// second, not rhythm friendly +shape(99,.15,.5).color(0,1,2) + +.diff( shape(240,.5,0).scrollX(.05).rotate( ()=>time/10 ).color(1,0,.75) ) +.diff( shape(99,.4,.002).scrollX(.10).rotate( ()=>time/20 ).color(1,0,.75) ) +.diff( shape(99,.3,.002).scrollX(.15).rotate( ()=>time/30 ).color(1,0,.75) ) +.diff( shape(99,.2,.002).scrollX(.20).rotate( ()=>time/40 ).color(1,0,.75) ) +.diff( shape(99,.1,.002).scrollX(.25).rotate( ()=>time/50 ).color(1,0,.75) ) + +.modulateScale( + shape(240,.5,0).scrollX(.05).rotate( ()=>time/10 ) + , ()=>(Math.sin(time/3)*.2)+.2 ) + +.scale(1.6,.6,1) +.out() +