# Creations & Ideas

**URL:** https://in-thread.sonic-pi.net/c/creations-and-ideas/8.md?page=4

[Latest](https://in-thread.sonic-pi.net/latest.md) · [Categories](https://in-thread.sonic-pi.net/categories.md) · [Tags](https://in-thread.sonic-pi.net/tags.md)

**Page:** 5

---

## [Drum patterns coded with sonic-pi](https://in-thread.sonic-pi.net/t/drum-patterns-coded-with-sonic-pi/9029)

<div class="topic-metadata">

**Author:** [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Replies:** 2\
**Last updated:** [July 14, 2024, 11:30am UTC](https://in-thread.sonic-pi.net/t/drum-patterns-coded-with-sonic-pi/9029 "2024-07-14T11:30:46Z")

</div>

Hello friends, With reference to the below links: https://archive.org/download/260DrumMachinePatterns/Drum%20Machine%20-%20260%20Patterns\_text.pdf Patterns\_260.json I have coded some drum patterns in spi. 260\_Drum\_P…

---

## [Drum pattern code generator for sonic pi with python](https://in-thread.sonic-pi.net/t/drum-pattern-code-generator-for-sonic-pi-with-python/9036)

<div class="topic-metadata">

**Author:** [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Replies:** 0\
**Last updated:** [July 12, 2024, 3:04pm UTC](https://in-thread.sonic-pi.net/t/drum-pattern-code-generator-for-sonic-pi-with-python/9036 "2024-07-12T15:04:39Z")

</div>

Hi friends, I have written a small python script to generate drum patterns in sonic pi: import numpy as np import random M = 4 # four instruments at a time N = 16 #2 measures of 4/4 for k in range(100): with o…

---

## [Seems to be a nice drum pattern](https://in-thread.sonic-pi.net/t/seems-to-be-a-nice-drum-pattern/9027)

<div class="topic-metadata">

**Author:** [@vinodv](https://in-thread.sonic-pi.net/u/vinodv)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 6:34pm UTC](https://in-thread.sonic-pi.net/t/seems-to-be-a-nice-drum-pattern/9027 "2024-07-08T18:34:27Z")

</div>

use\_bpm 180 ClosedHiHat = \[ 0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0 \] HighTom = \[ 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0 \] MediumTom = \[ 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0 \] SnareDrum = \[ 0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0 \] LowTom = \[…

---

## [Masse d'ondes (Waves Mass)](https://in-thread.sonic-pi.net/t/masse-dondes-waves-mass/9016)

<div class="topic-metadata">

**Author:** [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 10:31pm UTC](https://in-thread.sonic-pi.net/t/masse-dondes-waves-mass/9016 "2024-07-05T22:31:11Z")

</div>

Inspired by Olivier Messiaen: a “waves mass abstraction”…If you see something to improve, it will be with pleasure. I hope you’ll have fun… :smiley: soundcloud waves mass a = rrand(0.1, 1) b = rrand(0.25,1) use\_synth…

---

## [Something funky for my birthday](https://in-thread.sonic-pi.net/t/something-funky-for-my-birthday/7718)

<div class="topic-metadata">

**Author:** [@ts-swx](https://in-thread.sonic-pi.net/u/ts-swx)\
**Replies:** 4\
**Last updated:** [July 2, 2024, 7:01am UTC](https://in-thread.sonic-pi.net/t/something-funky-for-my-birthday/7718 "2024-07-02T07:01:38Z")

</div>

hope it gives you a good idea, or ya have some fun with it cheers, all with\_fx :level, amp: 0.9 do with\_fx :rlpf do |c| live\_loop :sn do tick control c, cutoff: line(129, 50, steps: 16).mirror.look …

---

## [:organ\_tonewheel noodling - Organ Ode #3](https://in-thread.sonic-pi.net/t/organ-tonewheel-noodling-organ-ode-3/8991)

<div class="topic-metadata">

**Author:** [@binarysweets](https://in-thread.sonic-pi.net/u/binarysweets)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 11:54pm UTC](https://in-thread.sonic-pi.net/t/organ-tonewheel-noodling-organ-ode-3/8991 "2024-07-01T23:54:40Z")

</div>

Hello Sonic Pi’ers, It’s nice to hear all the new music! Here is my contribution. :organ\_tonewheel noodling and playing around with a lazy groove… I changed the drums samples in the code below to a native loop. # T…

---

## [Tips on simplifying/optimizing code?](https://in-thread.sonic-pi.net/t/tips-on-simplifying-optimizing-code/8913)

<div class="topic-metadata">

**Author:** [@zir0](https://in-thread.sonic-pi.net/u/zir0)\
**Replies:** 14\
**Last updated:** [July 1, 2024, 11:34pm UTC](https://in-thread.sonic-pi.net/t/tips-on-simplifying-optimizing-code/8913 "2024-07-01T23:34:49Z")

</div>

Hey folks, I’ve been working on creating generative music compositions in Sonic Pi with the hopes of creating a generative “album” of “tracks” that play indefinitely. I’ve been using Sonic Pi to generate MIDI data, that …

---

## [I want to progress to be able to perform live coding from scratch in front of a crowd that what to dance and move vs composing mode at home](https://in-thread.sonic-pi.net/t/i-want-to-progress-to-be-able-to-perform-live-coding-from-scratch-in-front-of-a-crowd-that-what-to-dance-and-move-vs-composing-mode-at-home/8996)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 4:56pm UTC](https://in-thread.sonic-pi.net/t/i-want-to-progress-to-be-able-to-perform-live-coding-from-scratch-in-front-of-a-crowd-that-what-to-dance-and-move-vs-composing-mode-at-home/8996 "2024-07-01T16:56:32Z")

</div>

Hi all Thoughts about changing the process to get another outcome. This is not done Current workflow I tend to be in just messing around in exploring mode when I do live coding in Sonic pi at home. It takes from 10-…

---

## [Playing with Sample onset values UPDATED](https://in-thread.sonic-pi.net/t/playing-with-sample-onset-values-updated/1090)

<div class="topic-metadata">

**Author:** [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Replies:** 5\
**Last updated:** [June 30, 2024, 1:31pm UTC](https://in-thread.sonic-pi.net/t/playing-with-sample-onset-values-updated/1090 "2024-06-30T13:31:02Z")

</div>

I have deleted the original content of this post, which had errors, and was inefficient. Instead, below is a function which enables you to extract data on all the onsets of a given sample. It is based on the last examp…

---

## [Show your buffers in Sonic Pi](https://in-thread.sonic-pi.net/t/show-your-buffers-in-sonic-pi/8986)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 9:36pm UTC](https://in-thread.sonic-pi.net/t/show-your-buffers-in-sonic-pi/8986 "2024-06-25T21:36:50Z")

</div>

Summer cleaning of buffers in Sonic Pi Buffer 0 # 240625 Buffer 0 set\_volume! 2 with\_fx :reverb, room: 0.9 do live\_loop :a1 do tick sample :bd\_fat, amp: 3 if bools(1,0,0,0, 0,0,0,0).look …

---

## [A new piece just for fun "Only in C"](https://in-thread.sonic-pi.net/t/a-new-piece-just-for-fun-only-in-c/8936)

<div class="topic-metadata">

**Author:** [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 10:24am UTC](https://in-thread.sonic-pi.net/t/a-new-piece-just-for-fun-only-in-c/8936 "2024-06-13T10:24:17Z")

</div>

If you see something to improve in my patch (I could have used more variables for the chords definitions for instance :slightly\_smiling\_face:). Thanks for hearing! Cheers soundcloud Only in C ##| Only inC use\_bpm 11…

---

## [Hypnotic slow polyrhythms](https://in-thread.sonic-pi.net/t/hypnotic-slow-polyrhythms/8896)

<div class="topic-metadata">

**Author:** [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Replies:** 12\
**Last updated:** [June 13, 2024, 1:45am UTC](https://in-thread.sonic-pi.net/t/hypnotic-slow-polyrhythms/8896 "2024-06-13T01:45:54Z")

</div>

Here’s an experiment in very slow polyrhythms. Very hypnotic. Let me know what you think! use\_debug false set(:notes, \[:g6, :e6, :d5, :c6, :a5, :g5, :e5, :d5, :c5, :b4, :a4, :g4, :f4, :e4, :d4, :c4\]) ##| set(:notes, \[:…

---

## [A bit of a mess with prophet cutoff and big reverb](https://in-thread.sonic-pi.net/t/a-bit-of-a-mess-with-prophet-cutoff-and-big-reverb/8919)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 16\
**Last updated:** [June 9, 2024, 5:36pm UTC](https://in-thread.sonic-pi.net/t/a-bit-of-a-mess-with-prophet-cutoff-and-big-reverb/8919 "2024-06-09T17:36:06Z")

</div>

\# 240605 2234 A bit of a mess with prophet # 240605 2234 Saved # https://in-thread.sonic-pi.net/t/a-bit-of-a-mess-with-prophet/8919 set\_volume! 2 with\_fx :reverb, room: 0.9 do with\_fx :krush do |krush| live…

---

## [My first creation -- a funky groove](https://in-thread.sonic-pi.net/t/my-first-creation-a-funky-groove/8887)

<div class="topic-metadata">

**Author:** [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Replies:** 5\
**Last updated:** [June 5, 2024, 2:39am UTC](https://in-thread.sonic-pi.net/t/my-first-creation-a-funky-groove/8887 "2024-06-05T02:39:35Z")

</div>

Here’s my very first sonic pi creation. It’s a funky groove, using just built-in samples. I’m pretty happy with it. Let me know what you think. # Funky groove.rb by Harry LeBlanc # My first sonic pi composition! use\_…

---

## [Something random in 23 EDO](https://in-thread.sonic-pi.net/t/something-random-in-23-edo/8217)

<div class="topic-metadata">

**Author:** [@cubicinfinity](https://in-thread.sonic-pi.net/u/cubicinfinity)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 2:19am UTC](https://in-thread.sonic-pi.net/t/something-random-in-23-edo/8217 "2024-06-05T02:19:25Z")

</div>

I made this, but I’m not sure where to take it from here. define :edx do | mode = \[2,2,1,2,2,2\], tet = 12, equave = 2, root = 60 | notes = \[midi\_to\_hz(root)\] for i in 0..(mode.length-1) do notes = …

---

## [Live coding performance video. My first!](https://in-thread.sonic-pi.net/t/live-coding-performance-video-my-first/8704)

<div class="topic-metadata">

**Author:** [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Replies:** 13\
**Last updated:** [June 4, 2024, 6:22am UTC](https://in-thread.sonic-pi.net/t/live-coding-performance-video-my-first/8704 "2024-06-04T06:22:59Z")

</div>

Good afternoon good people, I have recently uploaded a video of my first ‘proper’ live coding performance. This is in preparation for a concert performance next month, with a 12yo student who has been learning Sonic Pi …

---

## [Massive attack Dissolved girl cover in Sonic Pi inspired by ixi](https://in-thread.sonic-pi.net/t/massive-attack-dissolved-girl-cover-in-sonic-pi-inspired-by-ixi/8908)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 3\
**Last updated:** [June 2, 2024, 3:16pm UTC](https://in-thread.sonic-pi.net/t/massive-attack-dissolved-girl-cover-in-sonic-pi-inspired-by-ixi/8908 "2024-06-02T15:16:11Z")

</div>

Tip: Scroll down to line 148 to / on off melody voice here / # 240602 0041 Massive attack Dissolved girl cover in Sonic Pi inspired by ixi # Saved 240602 0041 # Created by https://linktr.ee/relaxnow # My pe…

---

## [Krush and bitcrusher on saw with big reverb](https://in-thread.sonic-pi.net/t/krush-and-bitcrusher-on-saw-with-big-reverb/8907)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 9\
**Last updated:** [June 2, 2024, 8:56am UTC](https://in-thread.sonic-pi.net/t/krush-and-bitcrusher-on-saw-with-big-reverb/8907 "2024-06-02T08:56:41Z")

</div>

\# 240531 2209 krush and bitcrusher on saw with big reverb # Saved 240531 2209 # https://in-thread.sonic-pi.net/t/krush-and-bitcrusher-on-saw-with-big-reverb/8907 set\_volume! 4 with\_fx :reverb, room: 0.9 do c = 90 …

---

## [Trance gate for synths, but how to do it for samples?](https://in-thread.sonic-pi.net/t/trance-gate-for-synths-but-how-to-do-it-for-samples/8897)

<div class="topic-metadata">

**Author:** [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 8:23pm UTC](https://in-thread.sonic-pi.net/t/trance-gate-for-synths-but-how-to-do-it-for-samples/8897 "2024-05-27T20:23:23Z")

</div>

I wasn’t able to find a trancegate effect in sonic pi, so I decided to roll my own. This works with synth notes, but I’d like to come up with a similar tool for samples. Is there any way to control the volume of a sampl…

---

## [Simple function for transposing samples on beat](https://in-thread.sonic-pi.net/t/simple-function-for-transposing-samples-on-beat/8895)

<div class="topic-metadata">

**Author:** [@HarryLeBlanc](https://in-thread.sonic-pi.net/u/HarryLeBlanc)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 3:16pm UTC](https://in-thread.sonic-pi.net/t/simple-function-for-transposing-samples-on-beat/8895 "2024-05-27T15:16:32Z")

</div>

Okay, I’ve been trying to wrap my brain around the sample command – in particular, how to get samples to stay in sync while transposing pitch. It took a while for me to figure out how pitch\_stretch and rpitch interacted …

---

## [A cool attitude (30 bpm)](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851)

<div class="topic-metadata">

**Author:** [@beryann](https://in-thread.sonic-pi.net/u/beryann)\
**Replies:** 11\
**Last updated:** [May 26, 2024, 1:18pm UTC](https://in-thread.sonic-pi.net/t/a-cool-attitude-30-bpm/8851 "2024-05-26T13:18:15Z")

</div>

“A cool attitude” Thanks for hearing! If you see someting to improve in my code, tell it to me…I hope you’ll like it… :blush: soundcloud “cool attitude” use\_bpm 30 a = 0.15 b = 0.2 live\_loop :round do with\_fx :re…

---

## [Scale degrees and modes](https://in-thread.sonic-pi.net/t/scale-degrees-and-modes/8856)

<div class="topic-metadata">

**Author:** [@jonny](https://in-thread.sonic-pi.net/u/jonny)\
**Replies:** 3\
**Last updated:** [May 19, 2024, 5:12pm UTC](https://in-thread.sonic-pi.net/t/scale-degrees-and-modes/8856 "2024-05-19T17:12:37Z")

</div>

Hi, I was looking at some videos on degrees, and building chords in scales. There’s a video that talks about the modes, and applying this to different scales, which got me thinking how this could be done in SP. The 7 S…

---

## [Meandering chord progressions and melody through Sonic Pi scales](https://in-thread.sonic-pi.net/t/meandering-chord-progressions-and-melody-through-sonic-pi-scales/7888)

<div class="topic-metadata">

**Author:** [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Replies:** 2\
**Last updated:** [May 18, 2024, 10:59am UTC](https://in-thread.sonic-pi.net/t/meandering-chord-progressions-and-melody-through-sonic-pi-scales/7888 "2024-05-18T10:59:01Z")

</div>

I was looking at some of @mrbombmusic tutorials on youtube which are a good start to start playing with ideas, and developed one of them to produce the piece below. It can easily be altered or developed further. #chord …

---

## [V5 Tech Preview 1 - Introducing Hydra Support](https://in-thread.sonic-pi.net/t/v5-tech-preview-1-introducing-hydra-support/7528)

<div class="topic-metadata">

**Author:** [@samaaron](https://in-thread.sonic-pi.net/u/samaaron)\
**Replies:** 8\
**Last updated:** [May 17, 2024, 1:07pm UTC](https://in-thread.sonic-pi.net/t/v5-tech-preview-1-introducing-hydra-support/7528 "2024-05-17T13:07:31Z")

</div>

As a token of my heartfelt gratitude to everyone supporting me on Patreon, I thought it was be nice to give you a sneak preview of the fun stuff I’ve been working on recently. It’s still very early in its development, bu…

---

## [Control FX; \*very\* nice glitchy triplets](https://in-thread.sonic-pi.net/t/control-fx-very-nice-glitchy-triplets/8849)

<div class="topic-metadata">

**Author:** [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 9:14am UTC](https://in-thread.sonic-pi.net/t/control-fx-very-nice-glitchy-triplets/8849 "2024-05-13T09:14:29Z")

</div>

Hi Spending too much time with Sonic Pi recently (is that even possible?!), and I stumbled across this really pleasing triplet-feel glitch effect, using a very short delay time and the control method (to randomly turn F…

---

## [Constrained 'random' melody generator](https://in-thread.sonic-pi.net/t/constrained-random-melody-generator/8763)

<div class="topic-metadata">

**Author:** [@brendanmac](https://in-thread.sonic-pi.net/u/brendanmac)\
**Replies:** 8\
**Last updated:** [May 10, 2024, 8:02pm UTC](https://in-thread.sonic-pi.net/t/constrained-random-melody-generator/8763 "2024-05-10T20:02:09Z")

</div>

Hi everyone, I am still very much in my infancy as a Sonic Pi musician, and present below a super simple constrained random melody generator. I have seen Markov chains in use here and elsewhere to this end, but the math…

---

## [Jumping off point: Resynthesis by Max Cooper](https://in-thread.sonic-pi.net/t/jumping-off-point-resynthesis-by-max-cooper/7863)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 6\
**Last updated:** [May 6, 2024, 12:04pm UTC](https://in-thread.sonic-pi.net/t/jumping-off-point-resynthesis-by-max-cooper/7863 "2024-05-06T12:04:46Z")

</div>

Jumping off point: Resynthesis by Max Cooper # 230602 2030 Sonic Pi cover of Resynthesis by Max Cooper # Saved 230602 2030 # Created by linktr.ee/relaxnow # Original: "Max Cooper - Resynthesis (official video by Kevin …

---

## [Blue Danube waltz for Sonic Pi](https://in-thread.sonic-pi.net/t/blue-danube-waltz-for-sonic-pi/8485)

<div class="topic-metadata">

**Author:** [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Replies:** 4\
**Last updated:** [May 1, 2024, 7:40pm UTC](https://in-thread.sonic-pi.net/t/blue-danube-waltz-for-sonic-pi/8485 "2024-05-01T19:40:16Z")

</div>

Listened to the Vienna New Year’s Concert Neujahrskonzert der Wiener Philharmoniker from the MusikVerein and thought it was about time I did the Blue Danube waltz on Sonic PI, so here it is code is here

---

## [Utility for MIDI-CC](https://in-thread.sonic-pi.net/t/utility-for-midi-cc/8821)

<div class="topic-metadata">

**Author:** [@Davids-Music-Lab](https://in-thread.sonic-pi.net/u/Davids-Music-Lab)\
**Replies:** 0\
**Last updated:** [May 1, 2024, 3:46pm UTC](https://in-thread.sonic-pi.net/t/utility-for-midi-cc/8821 "2024-05-01T15:46:11Z")

</div>

I’ve been playing with MIDI Synths for a while and found it inconvenient to look up addresses for CC messages every time, so here’s a bit of code to use parameter names: #Map of Parameter Name / CC Address map = {cutoff…

---

## [Exploring define with spread #sonicpi](https://in-thread.sonic-pi.net/t/exploring-define-with-spread-sonicpi/8387)

<div class="topic-metadata">

**Author:** [@Relaxnow](https://in-thread.sonic-pi.net/u/Relaxnow)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 3:40pm UTC](https://in-thread.sonic-pi.net/t/exploring-define-with-spread-sonicpi/8387 "2024-05-01T15:40:27Z")

</div>

\# 231123 0027 exploring define with spread # Saved 231123 0027 # https://youtu.be/USOvqXtbcnA # https://in-thread.sonic-pi.net/t/exploring-define-with-spread-sonicpi/8387 set\_volume! 2 use\_bpm 180 define…

[Previous page](https://in-thread.sonic-pi.net/c/creations-and-ideas/8.md?page=3)

[Next page](https://in-thread.sonic-pi.net/c/creations-and-ideas/8.md?page=5)
