Skip to main content

Command Palette

Search for a command to run...

MinaCoding2026_Place

New Realm?

Updated
2 min read
MinaCoding2026_Place

UniqueCastling

For MinaCoding2026 Day 6: Mochi Mochi, UniqueCastling coded in Enu & SonicPi is a reimagined castle built in another realm.

Poetry

Another Place
Building Fortress
Connection for the progress
To interact in this space

Video

https://youtu.be/Rx16xny91Jw

Code

Enu Twisted Towers

var
  length = 20..22
  height = 59
  sides = 3..5


height.times:
  color = cycle(black,red,red,white,white,black,white,black,blue,blue,blue,white)
  left length / 2
  back length / 2
  sides.times:
    forward length
    turn right
  forward length / 2
  right length / 2
  turn 4..12
  up 1
  
###Colorway two

var
  length = 20..22
  height = 59
  sides = 3..5

height.times:
  color = cycle(green,blue,blue,white,white,black,green)
  left length / 2
  back length / 2
  sides.times:
    forward length
    turn right
  forward length / 2
  right length / 2
  turn 4..12
  up 1

Enu Standard Towers

36.times:
  color = cycle(black,red,red,white,white,black,white,black,blue,blue,blue,white)
  4.times:
    forward 10
    turn right
  up 1

24.times:
  color = cycle(black,red,red,white,white,black,white,black,blue,blue,blue,white)
  4.times:
    forward 20
    turn right
  up 1

Enu Floating Structures

36.times:
  color = cycle(green,blue,blue,white,white,black,green)
  4.times:
    forward 20
    turn right
  up 1
  forward 15
  turn right
  
  4.times:
    forward 20
    turn right
  up 1
  forward 15

SonicPi

live_loop :BassAttack do
  use_random_seed Time.now.to_i / 4
  use_bpm [40,120,240,480].choose
  
  with_fx [:echo,:ixi_techno].choose, mix: rrand(0,0.75) do
    sample :perc_snap, sustain: 4, beat_stretch: 4 if spread(2,3).reverse
    sample :bd_klub if spread(5,6).tick
  end
  
  sample :elec_blup if spread(4,7).tick
  sample :elec_blip , beat_stretch: 4 if spread(1,2).tick
  sleep [2,4,8].tick
end

#shorter rest time
live_loop :BassAttackFast do
  
  use_random_seed Time.now.to_i / 5
  use_bpm [40,120,240,480].choose
  
  with_fx [:whammy,:echo].tick do
    sample :perc_snap if spread(2,3).reverse
    sample :bd_klub, beat_stretch: 4 if spread(5,6).tick
    with_fx :bitcrusher, bits: rrand(0,16) do
      sample :elec_blup, beat_stretch: 3 if spread(4,7).tick
      with_fx :slicer, phase: rrand(0,16) do
        sample :elec_blip if spread(1,2).tick
        sleep [1,2,4,8].tick
      end
    end
  end
  sleep [1,2,4,8].tick
end

#give that piano feeling
live_loop :piano do
  use_random_seed Time.now.to_i / 3
  use_bpm [40,120,240,480].choose
  
  with_fx :ping_pong, mix: rrand(0.25,0.76) do
    with_fx :echo do
      use_synth :pretty_bell
      bellTime = (scale :f3, :major).reverse
      play bellTime if (spread 10,24).tick
      sleep [1,2,4,8].tick
    end
  end
  sleep 0.5
end

Minacoding2026

Part 11 of 11

Submissions for MinaCoding 2025: https://minacoding.online/theme

Start from the beginning

MinaCoding2026_Circle

Starting this Journey Again

More from this blog

C

Code is Poetry & Data is Poetry

711 posts

Creative Coder/Multimedia Artist/Performative Programmer : Engineering Thru Creative Means and Providing Experiences