Sonic Pi files

This shows how you can make a visual soundscape using Sonic Pi for live experiences and for hypnotic mixtapes. It's a follow-on from Enhancing Hypnosis with Sound.

Sonic Pi is a really cool way to make music, but in this case we're more interested in the ability to play samples. Here, we're going to use several samples from Ella Enchanting's Direct Suggestion and Mantras and Baseline Induction, taken with permission.

Here's the code tying them together.

samples = "K:/public/binauralhistolog/sonic_pi/samples" patter = samples + "/patter" background = samples + "/background" use_bpm 60 live_loop :heartbeat do sample background, :heartbeat sleep 1 end in_thread do loop do clip = rand_i 10 s = sample patter, clip, amp: 2 sleep 6 end end

What Sonic Pi looks like when you're running it is pretty simple. You edit the code in the left hand side, and on the right you see the clips and the result.

The samples are referenced by pointing to a directory using a sample pack, which lets us refer to samples by name, i.e. in sample background, :heartbeat, amp: 0.5 , the background directory is used and then the :heartbeat refers to the heartbeat.wav file. It will cache the sample directory, so if you add any files to it after it's already running then you have to reboot in order to get it to read the directory again.

Here's an example of what it sounds like. This contains suggestions to relax, so no listening while driving or operating heavy machinery.

This barely scratches the surface of what you can do with sonic pi. You can make a whole bunch of statements, and play them in order, or play them as subliminals. You can pan on the fly. You can do live coding and add extra samples and background music on the fly.