# Mathober2023_Cyclotomic

# Cyclomatic

For the 21st  Prompt Of Mathober: **Cyclotomic.** Cyclotomic polynomials will be coded via **Tixyland & SonicPi.** The name of the piece will be ***Cyclomatic***

## **Cyclo-Process**

The **TixyLand** equation will contain the following Cyclotomic Polynomials :

```javascript
cos(t*(x^4+1))/sin((x-1)* i *(x^4-x^2+1)). 
```

Aided with the addition of cos/sin functions and the i & t variables as well as overlaid TIxyLand sketches

## Poem

```ocaml
Motions are cycling
Wilding
Moving fast
Moving past
The motions that open
As if they are words that have to be spoken
```

## Video

<iframe width="560" height="315" src="https://www.youtube.com/embed/_pAyswBjd1s?si=gcz9zBktCrQ-96Px"></iframe>

## SonicPi Code

```ruby
=begin

Original Code Snippet

live_loop :Donetsk do 
 play choose( [ :G4, :Bs3,  :C1 ] ) ,attack: 3 ,delay: 3   ,amp: 0.5 
 sleep 0.5 
 end 


=end

#DroneDay Remix and then adding PaulStretch tool to make it more Droney


with_fx :hpf, mix: 0.67 do
  with_fx [:whammy,:ixi_techno,:ixi_techno].tick, mix: 0.24 do
    live_loop :Donetsk do
      play choose( [:G4,:Bs3,:C1]),attack: dice(3) ,sustain: dice(3),amp: dice(2)
      sleep [0.25,0.5].choose
    end
  end
end

with_fx :distortion, distort: [0.5, 0.4,0.3,0.2,0.1,0.2,0.3,0.4,0.5].tick do
  with_fx :hpf, mix: 0.67 do
    with_fx [:whammy,:flanger,:vowel].choose, mix: 0.24 do
      live_loop :Dontsk do
        play choose( [:G4,:Bs3,:C1]),decay: dice(3) ,sustain: dice(3),amp: dice(2)
        sleep [0.25,0.5].choose
      end
    end
  end
end


```
