WCCC_Winter

WInterSnowMenGlitch

For this week's Creative Code challenge by @sableRaph: " Winter ”, WinterSnowMenGlitch is coded with Locomotion (For the Snowmen), Python (The blue background to represent the ice element of winter) and SonicPi (For an Audio representation of a windy wintery day).

Poetry

Snowmen are waiting for winter
But even with this wait
They get prepared with their shivers
WIth care, their movements
With that brisk air
About to be frigid
Frigid is their preferred climate
As the air is aware
For it’s process is rigid
As the snowmen await
For what is their fit
As their movements and climate
As they Begin their Intersection

Video

Code

Python


#re use the battleship cold to give a wintery/cold feeling

import numpy as np
import seaborn as sns
import matplotlib.pylab as plt

def battle():
    #using the 0 & 1 to represent a ship versus the ocean and having a weighted value of 0.8 for ocean, 0.18 for boats and 0.02 for mines
    boats = [0,1,2,3,4,5,6,7,8,9,10,11]
    prob = [0.025,0.025,0.05,0.05,0.05,0.05,0.1,0.1,0.1,0.1,0.2,0.15]

    #by adding the (10,10) instead of 5, able to make an array with the weighted values
    shipyard2 = np.random.choice(boats, (16,16), p=prob)
    return shipyard2



def plotting(x,color):
    letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P'] #set for the columns
    uniform_data = x
    ax = sns.heatmap(uniform_data, linewidth=0.5,cmap=color) #changing it to blue for ocean representation
    ax.set_xticklabels(letters) #setting the ticks of the x axis to letters
    plt.show()
    return x


plotting(battle(),"Blues")

SonicPi

live_loop :time do
  use_random_seed Time.now.to_i / 5
  with_fx :reverb, room: [0,0.25,0.5,1].tick do

    with_fx [:whammy,:echo].tick do
      with_fx :bitcrusher, bits: rrand(0,16) do
        with_fx :slicer, phase: rrand(0,16) do
          notes = (scale :e5, :minor_pentatonic, num_octaves: 3)
          with_synth :gnoise do
            play notes.choose, attack: 2, release: 2, cutoff: dice(90), amp: 3,pan: 0.5
            sleep [1,2,4,5].choose
          end
        end
      end
    end
  end

  live_loop :noise2 do
    use_random_seed Time.now.to_i / 2
    with_fx [:ixi_techno,:flanger].choose, mix: 0.95, phase: 2 do
      with_fx :distortion, distort: rrand(0.2,0.7) do
        with_synth :cnoise do
          notes = (scale :e7, :aeolian, num_octaves: 3)
          play notes.choose, release: dice(6), cutoff: 90, amp: 2, pitch: dice(2), pan: rrand(-0.5,0.5)
          sleep [0.5,0.25,1].choose
        end
      end
    end
  end
end

Locomotion





dancer{url = "https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff/290bf61eeab0cb212e04e4fd82f33de799505612/3Dmodel/snowman.glb",x = range 5 -5 (osc 1), rx = range 5 -5 (osc 0.5)};  -- 15 words
dancer{url ="https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff/290bf61eeab0cb212e04e4fd82f33de799505612/3Dmodel/snowman.glb",y = range 5 -5 (osc 0.25), animation = [2 ,1, 3,1], rz = 17}; -- 16 words
dancer{url = "https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff/290bf61eeab0cb212e04e4fd82f33de799505612/3Dmodel/snowman.glb",z = range 5 -5 (osc 0.15), rx = range 5 -5 (osc 1)};  -- 15 words

b n = dancer {url = "https://raw.githubusercontent.com//IllestPreacha/CreativeDataStuff/290bf61eeab0cb212e04e4fd82f33de799505612/3Dmodel/snowman.glb",dur = 3.5, rx = range n n*45,lz = n * 5, ry = n +  range 10  260 (osc n * 0.215 / 10), y = -3 + n, x = n - (3) * 3 + 9, lx = n * 20 , lz = n * 40 + range 40 190  (osc n * 1.44), animation = [n,0.25, n + (-2),0.5,n*3,07.5,n*2.1], size = 3.9 + n /72 };
for [0..6] b;
0
Subscribe to my newsletter

Read articles from Kofi / Illestpreacha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Kofi / Illestpreacha
Kofi / Illestpreacha