cwervo

Blown away that this can become this

Someday I’ll investigate this more seriously but for now here’s ChatGPT-4’s explanation of the code:

// licensed with CC BY-NC-SA 4.0 https://creativecommons.org/licenses/by-nc-sa/4.0/
// by Felix Roos
samples({ p: 'https://cdn.freesound.org/previews/648/648433_11943129-lq.mp3' })

s("p")
  .loopAt(32)
  .chop(128)
  .jux(rev)
  .shape(.4)
  .decay(.1)
  .sustain(.6)

Here's a breakdown of the code:

By chaining these effects and manipulations together, the code creates a unique, transformed version of the original sound sample.


Taking some learning from that, here’s a haunting variation:

samples({ p: 'https://cdn.freesound.org/previews/648/648433_11943129-lq.mp3' })

s("p")
  // .loopAt(32)
  .loopAt(48)
  // .chop(128)
  .chop(4)
  .jux(rev)
  .shape(.2)
  .decay(.1)
  .sustain(.8)
  
  

</code>