Skip to main content

Mathober2026_CrossedPrismGraph

Crossing Via Audio

Updated 1 min readMarkdown
Mathober2026_CrossedPrismGraph

AudioTransversal

For the 21st Sketch of Mathober2026, AudioTransversal coded in SonicPi does a Sonification of the Hamiltionian Path in a Crossed Prism Graph (Day 25 of Mathober 2026).

Audio

IllestPreacha · AudioTransversal

Code

#Coordinates

# 1 = :guit_e_slide
# 4 = :loop_mika
# 6 = :elec_filt_snare
# 9 = :drum_snare_soft





# Hamilton Path replaced with the samples representing the coordinates
x = [:guit_e_slide,:loop_mika,:loop_mika,:guit_e_slide,:drum_snare_soft,:elec_filt_snare,:elec_filt_snare,:drum_snare_soft]
y = [:guit_e_slide,:elec_filt_snare,:loop_mika,:drum_snare_soft,:drum_snare_soft,:loop_mika,:elec_filt_snare,:guit_e_slide]



counter = 0
live_loop :transversal do
  
  use_random_seed Time.now.to_i/ 5
  
  with_fx :distortion do #effect for the x coordinates
    sample x[counter % 8], rate: [0.5,0.25,0.1,2].choose
  end
  
  with_fx :ixi_techno do #effect for the y coordiantes
    sample y[counter % 8], rate: [0.5,0.25,0.1,2].choose
  end
  
  counter = counter + 1
  
  puts counter
  sleep [0.5,1,2].choose
  
end

Audio Transversal of the following Graph

No comments yet. Be the first to comment.