Skip to content

Instantly share code, notes, and snippets.

View sven-wachsmuth's full-sized avatar

Sven Wachsmuth sven-wachsmuth

View GitHub Profile
@sven-wachsmuth
sven-wachsmuth / piano-beat-loop.rb
Last active January 1, 2021 23:27
Sonic Pi - Piano beat loop for use in 25 fps video
# piano-beat-loop.rb
# playing around with video and audio timing
# audio for video, timed to 25 fps / 16 fpb (frames per beat) --> 93.75 bpm
# Created by Sven Wachsmuth
# https://gist.github.com/sven-wachsmuth/dce6aa11e705ccda0e655a441567d13a
use_bpm 93.75;
# calc: 1 beat = 16 frames at 25 fps --> 1 beat = 16/25 = 0,64 s; 60 / 0.64 = 93.75 bpm
# reason: 1 frame is exactly 1/16 beat so every tap starts with a frame
@sven-wachsmuth
sven-wachsmuth / floating-moment.rb
Last active April 6, 2024 08:26
Sonic Pi - Soundscape for relaxing
# floating-moment.rb
# ambient soundscape for relaxing and meditation
# Created by Sven Wachsmuth
# https://gist.github.com/sven-wachsmuth/0cc06cc0d698d8932ceb142dcf5231ba
use_bpm 60
laenge_in_takten = 229 # length of the track in beats - 300 means relax 5 minutes :-)
# possible notes out of a sounds-well-scale