Skip to content

Instantly share code, notes, and snippets.

View beryann's full-sized avatar

Beryann Parker beryann

View GitHub Profile
@beryann
beryann / Aléatoire#1.rb
Last active April 24, 2024 09:50
Aléatoire#1
Aléatoire #1 début
with_fx :level, amp: 0.4 do
use_random_source :white
live_loop :source do
@beryann
beryann / Gracieuse mélodie.rb
Created April 23, 2024 19:45
Gracieuse mélodie - Graceful melody (Sonic Pi)
live_loop :kick do
sample :bd_haus
sleep 1
end
puts scale(:c4,:major)
play chord_degree(:i, :c4, :major, 4)
progression = (ring, :i, :vi, :ii, :v)
@beryann
beryann / A 4 voices fugato.rb
Created April 24, 2024 09:41
A 4 voices fugato with decrescendo
use_bpm 100
set :kill,false #flag used to stop live_loops
fadeInitiate = rt(30) #use rt( ) function to set time independent of bpm
fadeTime = rt(30)
use_debug false #remove printout of synths playing
cells = [
[2],
[1,1],
[1,0.5,0.5],
[0.5,0.5,1],
@beryann
beryann / war with crows.rb
Created April 24, 2024 09:48
War with crows
in_thread do
with_fx :reverb do
loop do
sample :sn_zome , amp: rand_i, rate: rand, pan: rand
sleep 1
sample :misc_crow, amp: rand, pan: rand, rate: rand
sleep 1
sample :vinyl_hiss,amp: rand
@beryann
beryann / Cool Attitudde.rb
Created May 15, 2024 08:55
A Cool attitude in Sonic Pi (30 bpm)
use_bpm 30
a = 0.15
b = 0.2
live_loop :round do
with_fx :reverb, room: 0.8, mix: 0.8 do
with_fx :flanger, phase: 0.8, wave: 2, mix: 0.5 do
@beryann
beryann / Only in C.rb
Created June 15, 2024 08:54
Only in C in Sonic Pi
use_bpm 110
I define my chords
define :chord1 do
with_fx :wobble, phase: 1, phase_slide: 4 do |e|
use_synth :dsaw
play chord(:c3, :major, invert: 1), release: 4
control e, phase: 0.025
sleep 4
@beryann
beryann / Rejoy in C.rb
Created August 2, 2024 08:32
Rejoy in C
use_synth :piano
with_fx :eq, amp: 0.7 do
with_fx :reverb, mix: 0.8 do
live_loop :note do
play (ring, :c4, :d4, :e4, :f4, :g4).choose, amp: 0.8 if rand< 0.6
sleep 0.25
end
@beryann
beryann / Speed Blood.js
Created September 8, 2024 09:03
Hydra sketch in JavaScript
noise(10,10)
.kaleid()
.colorama(1,1,1)
.out()
@beryann
beryann / Illusion.js
Created September 8, 2024 09:07
A Hydra sketch
osc(10, 0.1, 10)
.colorama(0.1)
.repeat(3, 3)
.rotate(1,0.2)
.saturate(1)
.pixelate(50, 50)
.out(o0)
render(o0)
@beryann
beryann / Nice Windows.js
Created September 12, 2024 06:49
A Hydra four colorful windows sketch!
osc(10,0.2,1.236)
.kaleid()
.rotate(0.8)
.invert()
.out(o0)
osc(10,0.2,2.589)
.kaleid()