Skip to main content

Command Palette

Search for a command to run...

Genuary2023_ArtDeco

DeconstructedDeco

Updated
1 min read
Genuary2023_ArtDeco

The prompt for Genuary 2023 Day 20 is

Art Deco

Today's prompt will be coding in Hydra alongside SonicPi and will consist of squares, rectangles and rhombus to fit in the geometric nature of Art Deco.

The Squares merges
While the rhombus submerges
And the rectangles find their place
As in this space
Is controlled by the parallelograms pace

Hydra Code

shape(4, 0.5, 2)
    .color(()=> (time % 30 + 1)/30, 0.57, 2)
    .brightness([0.1, 0.2, 0.23, 0.2, 0.1].smooth())
    .luma([0.85, 0.73, 0.682, 0.7, 0.8, 0.81].smooth())
    .repeat(() => (time % 45 + 1) / 5)
    .kaleid([4, 4.1].smooth())
    .blend(shape(4, 0.5, 2)
        .luma([0.82, 0.73, 0.65, 0.79, 0.82].smooth())
        .scale(0.5)
         .repeat(() => (time % 45 + 1) / 5))
    .kaleid([4,4.6, 4].smooth())
    .blend(shape(4, 0.5, 2)
        .color(0.5,0.3,0.1)
        .luma([0.82, 0.73, 0.65, 0.79, 0.82].smooth())
        .scale([0.25, 0.5, 0.75].smooth()))
    .kaleid([4, 4.1, 4.2, 4.6, 4.2, 4.1, 4].smooth())
    .out();
speed = 0.5;

SonicPi Code

#slowed down in recording by 25%

def sounds(looping,bpming,synths,scaling)
  live_loop looping do
    with_fx :ping_pong,mix: 0.4 do
      with_fx :vowel, mix: 0.3 do
        use_bpm bpming
        use_synth synths.choose
        play_pattern_timed scale(scaling.choose, :major, num_octaves: 4), (dice(6) + 1)/20, release: 0.1
        sleep [0.5,1,2,4].choose
      end
    end
  end
end


sounds(:bells,120,[:hollow,:piano,:piano,:chipbass],[:d3,:b3,:f3,:b4])
sounds(:bells2,60,[:hoover,:chipbass,:chipbass,:piano,:piano],[:d3,:a4,:g2])
sounds(:bells3,120,[:hoover,:chipbass,:chipbass,:piano,:piano],[:d3,:a4,:g2])
sounds(:bells4,60,[:hollow,:piano,:piano,:chipbass],[:d3,:b3,:f3,:b4])

Genuary2023

Part 13 of 31

Creative Coding Outputs during Genuary 2023 (In January of 2023)

Up next

Genuary2023_BlackWhite

DualityPuddling