$ pip install click requests
$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
# Sonic Pi (http://sonic-pi.net/) | |
# Basic Quantized Drum Beat | |
# Globals | |
$bpm = 128 | |
$bps = $bpm / 60 | |
$qunatize = 1.0 / 32.0 | |
# Helper step sequencing method | |
def sync_steps(steps, quantize = 1.0 / 4.0) |
######################################### | |
## Sonic Pi Drum Machine | |
## coded by Darin Wilson | |
## | |
use_bpm 95 | |
in_thread(name: :drum_machine) do | |
# choose your kit here (can be :acoustic, :acoustic_soft, :electro, :toy) |
# Hello... World | |
use_bpm 75 | |
use_synth :fm | |
in_thread do | |
loop do | |
cue :tick | |
sleep 1 | |
end | |
end |
# Augino mociute | |
use_bpm 34 | |
use_synth :pretty_bell | |
astuntine = 0.125 #Eight note | |
ketvirtine = 0.25 #Quarter note | |
pusine = 0.5 #Half note | |
pilna = 1 #Whole note |
1 Welcome to Sonic Pi
Welcome to Sonic Pi. Hopefully you're as excited to get started making crazy sounds as I am to show you. It's going to be a really fun ride where you'll learn all about music, synthesis, programming, composition, performance and more.
But wait, how rude of me! Let me introduce myself - I'm
###################################################### | |
# Drums | |
###################################################### | |
define :boom do | |
with_fx :reverb, room: 1 do | |
sample :bd_boom, amp: 8 | |
end | |
sample :ambi_choir, rate: 0.1 |
# DUBSTEP | |
# Combines ideas from my other gists | |
current_bpm = 140.0 | |
use_bpm current_bpm | |
# WOBBLE BASS | |
define :wob do | |
use_synth :dsaw | |
lowcut = note(:E1) # ~ 40Hz | |
highcut = note(:G8) # ~ 3000Hz |
<!-- This is the HTML element that, when clicked, will cause the popup to appear. --> | |
<button id="open-popup">Subscribe to our mailing list</button> |