Skip to content

Commit

Permalink
Adding some jams
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapericlp committed Jan 22, 2024
1 parent 74e08f2 commit 4f68482
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
28 changes: 28 additions & 0 deletions hydra/jam/02-01-2023.js
Original file line number Diff line number Diff line change
@@ -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)

33 changes: 33 additions & 0 deletions hydra/jam/21-01-2023.js
Original file line number Diff line number Diff line change
@@ -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/[email protected]/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()
35 changes: 35 additions & 0 deletions hydra/jam/31-12-2023.js
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 4f68482

Please sign in to comment.