Skip to main content

Command Palette

Search for a command to run...

MinaCoding2025_Sound

Visualizing Sound

Updated
2 min read
MinaCoding2025_Sound

AquaMaroon

For MinaCoding2025 Prompt 28: Visualizing Sound, AquaMaroon coded in LiveCodelab & SonicPi represents the theme of Visualizing Sounds, through the visuals that only used Aqua & Maroon as colors and the Audio that uses the numbers located in the colors of Aqua & Maroon and composes the sound through that.

Poem

Aqua Prancing to the Room
Through the Hues of Maroon
Maroon outskirted the gloom
Adding to the presence
Of Aqua and its Groove
That it shall dispense

Video

Code

LiveCodeLab

if time % 30 < 10 
    simpleGradient maroon,aqua,maroon
else if time % 30 > 20
    simpleGradient aqua,aqua,maroon
else
    simpleGradient aqua,maroon

ambientLight 

50 times
    move sin(time)/1000,cos(time) / 100
    if time % 20 > 10
        fill maroon
        stroke aqua
        peg
    else
        fill aqua
        stroke maroon
        ball

50 times
    rotate move sin(time)/1000,cos(time) / 100
    move sin(time)/1000,cos(time) / 100, tan(time)/10000
    if time % 20 > 10
        fill aqua
        stroke maroon
        peg
    else
        fill maroon
        stroke aqua
        ball

SonicPi


#Numbers found in maroon control this function :https://www.colorhexa.com/800000
#As well as those found in Aqua: https://www.colorhexa.com/00ffff

live_loop :maroonAqua do

  use_random_seed Time.now.to_i
  with_fx :echo, mix: [0.64, 0.33].tick do
    use_bpm [25.534, 83.938, 18.108,91.114, 50.119, 196.386].choose
    sample [:ambi_piano,:guit_e_slide,:perc_snap,:elec_blip,:drum_bass_soft].choose ,sustain: [25.534, 48.044, 38.056].choose,rate: [0.64,0.33,4.59].choose
    sleep [8.903, 4.59, 0.417].choose
  end
end


live_loop :AquaMaroon do
  use_random_seed Time.now.to_i / 2
  with_fx :echo, mix: [0.64, 0.33].tick do
    use_bpm [180,100, 50,25.534, 61.29, 38.383].choose
    sample [:ambi_piano,:guit_e_slide,:perc_till,:elec_blip,:drum_bass_soft].choose ,pitch: [8.903, 4.59, 0.417].choose, sustain: [25.534, 48.044, 38.056].choose
    sleep [0.225,0.329,8.903, 4.59, 0.417].choose
  end

end


live_loop :Aqua2Maroon do
  use_random_seed Time.now.to_i / 3
  with_fx :echo, mix: [0.64, 0.33].tick do
    use_bpm [180,100, 50,25.534, 61.29, 38.383].choose
    sample [:glitch_perc4,:perc_snap,:perc_swash,:elec_blip,:drum_bass_hard].choose ,pitch: [8.903, 4.59, 0.417].choose, sustain: [25.534, 48.044, 38.056].choose,rate: [91.114, -70.476, -15.217].choose
    sleep [0.225,0.329,8.903, 4.59, 0.417].choose
  end

end

MinaCoding2025

Part 12 of 40

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

Up next

MinaCoding2025_TwoColors

Two Colors is More than Enough