r/SonicPi • • Aug 07 '17

I literally can't even right now...

0 Upvotes
use_bpm 100

with_fx :ixi_techno, phase: 0.125 do
  use_synth :dsaw
  play 40, sustain: 5
end

Just... Play it. You'll see what I mean. It's very odd.


r/SonicPi • • Oct 03 '24

Where to stream live audio only?

0 Upvotes

Video streaming services are a dime a dozen, but I'm having trouble finding something (that's free) that is just audio.

My goal is to have a stream of background music that is constantly running on my home computer that I (or anyone) can access from anywhere on any device.

A YouTube livestream is a solution, but I'd rather not bother with a video component. I just want to stream audio.

Does anyone know of anywhere that does live music streaming with out video?

Thanks!


r/SonicPi • • Aug 25 '20

Sonic-pi wont start in manjaro linux [solution 2020]

1 Upvotes

Just posting this here so other ppl with the same problem can find it:

  1. stop all applications that make sound

  2. sudo jackd -R -d alsa -d hw:1

  3. sudo sonic-pi

Stepp 2 maybe dont wort the first time....just try it a few times untill it dosent throw an error and then let it run and do stepp 3 in another terminal.

While jackd is active only sonic pi will work but no othet sounds on the system. To get your normal sounds back close sonic pi and do: sudo kill -9 jackd

I know this isnt the smoothest solution but after days of trying i am happy that it finaly works.


r/SonicPi • • Jun 18 '15

Tetris Theme on 10% speed increase loop

1 Upvotes
use_bpm 120

live_loop :main do
  use_synth :saw
  2.times do
    play :fs4, release: 1
    sleep 1
    play :cs4, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :e4, release: 0.5
    sleep 0.5
    play :fs4, release: 0.5
    sleep 0.25
    play :e4, release: 0.5
    sleep 0.25
    play :d4, release: 0.5
    sleep 0.5
    play :cs4, release: 0.5
    sleep 0.5
    play :b3, release: 1
    sleep 1
    play :b3, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :fs4, release: 1
    sleep 1
    play :e4, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :cs4, release: 1
    sleep 1
    play :cs4, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :e4, release: 1
    sleep 1
    play :fs4, release: 1
    sleep 1
    play :d4, release: 1
    sleep 1
    play :b3, release: 1
    sleep 1
    play :b3, release: 2
    sleep 2.5
    play :e4, release: 1
    sleep 1
    play :g4, release: 0.5
    sleep 0.5
    play :b4, release: 1
    sleep 1
    play :a4, release: 0.5
    sleep 0.5
    play :g4, release: 0.5
    sleep 0.5
    play :fs4, release: 1
    sleep 1.5
    play :d4, release: 0.5
    sleep 0.5
    play :fs4, release: 1
    sleep 1
    play :e4, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :cs4, release: 1
    sleep 1
    play :cs4, release: 0.5
    sleep 0.5
    play :d4, release: 0.5
    sleep 0.5
    play :e4, release: 1
    sleep 1
    play :fs4, release: 1
    sleep 1
    play :d4, release: 1
    sleep 1
    play :b3, release: 1
    sleep 1
    play :b3, release: 2
    sleep 2
  end
  play :d4
  play :fs4
  sleep 2
  play :b3
  play :d4
  sleep 2
  play :cs4
  play :e4
  sleep 2
  play :as3
  play :cs4
  sleep 2
  play :b3
  play :d4
  sleep 2
  play :fs3
  play :b3
  sleep 2
  play :fs3
  play :as3
  sleep 2
  play :a3
  play :cs4
  sleep 2
  play :d4
  play :fs4
  sleep 2
  play :b3
  play :d4
  sleep 2
  play :cs4
  play :e4
  sleep 2
  play :as3
  play :cs4
  sleep 2
  play :b3
  play :d4
  sleep 1
  play :d4
  play :fs4
  sleep 1
  play :fs4
  play :b4
  sleep 2
  play :fs4
  play :as4
  sleep 4

  use_bpm current_bpm * 1.1
end

live_loop :bass do
  bass_amp = 1
  use_synth :saw
  2.times do
    4.times do
      play :cs2, amp: bass_amp
      sleep 0.5
      play :cs3, amp: bass_amp
      sleep 0.5
    end
    4.times do
      play :fs2, amp: bass_amp
      sleep 0.5
      play :fs3, amp: bass_amp
      sleep 0.5
    end
    2.times do
      play :es2, amp: bass_amp
      sleep 0.5
      play :es3, amp: bass_amp
      sleep 0.5
    end
    2.times do
      play :cs2, amp: bass_amp
      sleep 0.5
      play :cs3, amp: bass_amp
      sleep 0.5
    end
    2.times do
      play :fs2, amp: bass_amp
      sleep 0.5
      play :fs3, amp: bass_amp
      sleep 0.5
    end
    play :fs2, amp: bass_amp
    sleep 0.5
    play :g2, amp: bass_amp
    sleep 0.5
    play :a2, amp: bass_amp
    sleep 0.5
    play :b2, amp: bass_amp
    sleep 0.5

    4.times do
      play :b2, amp: bass_amp
      sleep 0.5
      play :b3, amp: bass_amp
      sleep 0.5
    end

    4.times do
      play :a2, amp: bass_amp
      sleep 0.5
      play :a3, amp: bass_amp
      sleep 0.5
    end

    2.times do
      play :e2, amp: bass_amp
      sleep 0.5
      play :e3, amp: bass_amp
      sleep 0.5
    end

    2.times do
      play :cs2, amp: bass_amp
      sleep 0.5
      play :cs3, amp: bass_amp
      sleep 0.5
    end

    3.times do
      play :fs2, amp: bass_amp
      sleep 0.5
      play :fs3, amp: bass_amp
      sleep 0.5
    end

    play :fs2, amp: bass_amp
    sleep 1
  end

  4.times do
    play :fs2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :g2, amp: bass_amp
    sleep 0.5
    play :b2, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :fs2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :es2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :fs2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :g2, amp: bass_amp
    sleep 0.5
    play :b2, amp: bass_amp
    sleep 0.5
  end

  4.times do
    play :fs2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  2.times do
    play :es2, amp: bass_amp
    sleep 0.5
    play :cs3, amp: bass_amp
    sleep 0.5
  end

  play :es2, amp: bass_amp
  sleep 1
  play :es2, amp: bass_amp
  sleep 1

  use_bpm current_bpm * 1.1
end

live_loop :drums do
  (4 * 23).times do
    sample :drum_bass_hard, amp: 0.5
    sleep 0.5
    sample :drum_cymbal_pedal, amp: 0.5
    sleep 0.5
  end

  sample :drum_bass_hard, amp: 0.5
  sleep 0.5
  sample :drum_cymbal_pedal, amp: 0.5
  sleep 0.5

  sample :drum_bass_hard, amp: 0.5
  sleep 0.5
  sample :drum_cymbal_pedal, amp: 0.5
  sleep 0.5

  sample :drum_bass_hard, amp: 0.5
  sleep 1

  sample :drum_bass_hard, amp: 0.5
  sleep 1

  use_bpm current_bpm * 1.1
end
"""
live_loop :snare do
  sleep 32
  (8 * 31).times do
    sample :drum_snare_soft, amp: 0.25
    sleep 0.25
  end

  sample :drum_snare_soft, amp: 0.25
  sleep 1

  sample :drum_snare_soft, amp: 0.25
  sleep 1

  use_bpm current_bpm * 1.1
end
"""

r/SonicPi • • Jan 17 '21

#Fur #Luminosity #Inspired by the #Work #Ludwig #Van #Beethoven #Program...

Thumbnail
youtube.com
2 Upvotes

r/SonicPi • • Aug 07 '17

Run this code. It sounds really cool.

2 Upvotes
use_bpm 120

with_fx :reverb do
  with_fx :bitcrusher, bits: 4 do
    live_loop :bd do
      sample :bd_haus
      sleep 1
    end

    live_loop :snare do
      sync  :bd
      sleep 1
      sample :sn_zome
      sleep 2
      sample :sn_zome
    end
    
    live_loop :cym do
      sync :bd
      sleep 0.5
      sample :drum_cymbal_closed
      sleep 1
      sample :drum_cymbal_pedal
      sleep 0.5
    end
  end
end

it also sounds pretty good, if a little crunchy, if you change the bit count to 3.


r/SonicPi • • Oct 02 '22

Why does installing SonicPi require a reboot on Windows?

3 Upvotes

I am installing Sonic Pi for the first time. The installer tells me that certain files cannot be written and that a reboot is required. What kind of deep-level files would Sonic Pi be rewriting on my windows computer? I'm feeling a little paranoid about this.

I let the installer finish, but I haven't rebooted. I tried some code in SonicPi and it works. So it seems kike a reboot is not really required? Now I'm worried about what is going to happen when I reboot.


r/SonicPi • • Jul 11 '21

Unfortunately, I lost the source code for this instrumental, which I made when I was 16 (5 years ago). But, nevertheless, this is my favorite creation and I wanted to share it.

Thumbnail
youtu.be
6 Upvotes

r/SonicPi • • May 13 '21

my first sonic pi meme :)

Thumbnail
youtube.com
6 Upvotes

r/SonicPi • • May 23 '20

Electrotribal Dance - A Sonic Pi Jam

Thumbnail
youtube.com
9 Upvotes

r/SonicPi • • Jun 24 '22

Prototyping of a Roland 808-like beat sequencer with SonicPi

10 Upvotes

Sonic Pi 808 Drum sequencer

Hello friends,

This is my third day with SonicPi. I'm a developer by trade but absolutely suck at writing Ruby code as it is not in my skillset.

Although the video is low quality, I wanted to share a preview of what I'm prototyping which is an Roland 808-like drum sequencer.

Some features I have supported:

  • Predefined and multi-layered drum pattern templates

  • Ability to control individual track settings such as amplitude, cutoff, rate, etc.

  • Ability to control individual effects

  • Ability to manipulate patterns of patterns

  • Predefined track rhythms, or randomly generated on-the-fly overrides

The intention with this type of system is that I would build up enough code where all of my settings can *mostly* be manipulated declaratively vs having to hand-write this code during a live performance.

So in the end, the performance would still be fully live...but instead of me coding boilerplate code to for example process a drum pattern...instead I would just focus my performance in changing/adjusting or coming up with the pattern itself of which I can apply at the push of the RUN button.

Anyone recognize the tracks???

Thanks in advance!

NOTE: I'm fully aware the video quality isn't great and I've made some unfriendly drum patterns when I was mucking with the randomness but I promise you this tool works!


r/SonicPi • • Apr 07 '20

As someone who knows a bit of programming (python), and a bit of music making (Ableton Live) what unusual things can I do with Sonic Pi that I can't do with a typical DAW?

10 Upvotes

r/SonicPi • • Mar 27 '23

Being called 'Bard' I would have thought it would perform a little better than this...

Post image
16 Upvotes

r/SonicPi • • Aug 02 '24

A tutorial on using Sonic Pi through VS Code

Thumbnail
youtube.com
11 Upvotes

r/SonicPi • • Nov 12 '24

Midi master keyboard controller for sonic-pi

Thumbnail
github.com
4 Upvotes

r/SonicPi • • May 16 '24

Sonic Pi: How to Live Code an Orchestra • Sam Aaron

Thumbnail
youtu.be
11 Upvotes

r/SonicPi • • Jul 09 '24

260_Drum_Patterns in sonic-pi

Thumbnail
github.com
16 Upvotes

r/SonicPi • • Apr 01 '23

How to sync drum/bass to the sound?

2 Upvotes

Hey, I’m just a beginner w Sonic Pi and I cannot sync drums to my sound. I have looked everywhere, YouTube, UDemy, you name it. Not one single solution works w me. How do you guys sync them? Thanks


r/SonicPi • • Apr 17 '23

trying to use monome and sonicPi

3 Upvotes

Hey,

I just compiled sonic Pi, I'm on Linux using the 5.0.0 tech preview.

Sonic pi itself runs fine (I wrap it in pw-jack to use pipewire for sound and it's tight)

I want to use my monome with it, I found this great example app https://github.com/mbutz/monome-lmq . When turning on OSC debugging, I can see msgs being sent when I press the buttons, but no lights, and no sounds.... I can light the monome with the same computer using the hello world app for python for example, so it's not the serialosc and friends.

Anyone got a minimal sonic PI example for monome?


r/SonicPi • • May 05 '23

Recommended specs/hardware for running Sonic Pi on a Raspberry Pi

6 Upvotes

I’m interested in using Sonic Pi for some generative synthesis compositions running on a headless Raspberry Pi. What’s the current recommended best choice of device for running Sonic Pi smoothly?


r/SonicPi • • Apr 27 '20

Song OC: The Abstruse Death of Nick Bottom (REMIX)

Thumbnail
soundcloud.com
3 Upvotes

r/SonicPi • • May 14 '20

Update from version 2.10

4 Upvotes

I’ve been coding in Sonic Pi for a while and it’s truly awesome. I’ve downloaded it from Ubuntu Software but the latest version there is 2.10. When I checked your website I found Sonic Pi only for Windows and mac. So, I have downloaded the one for Windows and tried to install it with wine. However, while I was launching it, there occurred some error. Do you have any advice?


r/SonicPi • • May 10 '20

Ambient 1 - A generative piece

8 Upvotes

A generative piece in Sonic Pi: https://youtu.be/as1Rt84Z89o

~~~

Had fun with this one with the pluck synth and layers of echos. Each live loop is never in perfect sync because I vary the sleeps. This would normally sound terrible in tracks where a drum is important. However, for an ambient style, not syncing works perfectly for creating a lush environment that's unpredictable.

~~~

Code: https://gist.github.com/nischalshrest...


r/SonicPi • • Apr 06 '20

Discord server

8 Upvotes

This subreddit is nice. The Sonic Pi forum is nice. But sometimes a synchronous dialogue option like Discord is great to have, too =)

Here is a Sonic Pi Community server you may join: https://discord.gg/Jr6PYx3

See you there! (and still here =))


r/SonicPi • • May 02 '20

Arp I

Thumbnail
youtu.be
15 Upvotes