Skip to content

Instantly share code, notes, and snippets.

View dirkbosman's full-sized avatar

dirkbosman dirkbosman

View GitHub Profile
@dirkbosman
dirkbosman / README.md
Last active August 2, 2019 15:48 — forked from arikfr/README.md
Redash Query Export Tool

Setup

$ pip install click requests

Usage

$ python query_export.py --redash-url "https://app.redash.io/" --api-key ""
@dirkbosman
dirkbosman / basic-quantized-drum-beat.rb
Created March 22, 2017 23:35 — forked from zackintosh/basic-quantized-drum-beat.rb
Sonic Pi: Basic Quantized Drum Beat
# 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)
@dirkbosman
dirkbosman / SonicPiDrumMachine
Created March 22, 2017 23:35 — forked from darinwilson/SonicPiDrumMachine
Sonic Pi Drum Machine
#########################################
## 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)
@dirkbosman
dirkbosman / hello.rb
Created March 20, 2017 21:57 — forked from uncompiled/hello.rb
Hello by Adele written for Sonic Pi
# Hello... World
use_bpm 75
use_synth :fm
in_thread do
loop do
cue :tick
sleep 1
end
end
@dirkbosman
dirkbosman / augino_mociute.rb
Created March 20, 2017 20:03 — forked from acirtautas/augino_mociute.rb
Sonic PI melodies
# 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
@dirkbosman
dirkbosman / sonic-pi-tutorial.md
Created March 15, 2017 21:16 — forked from jwinder/sonic-pi-tutorial.md
Sonic Pi in-app tutorials concatenated, currently from version 2.11

1 Welcome to Sonic Pi

Welcome friend :-)

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

@dirkbosman
dirkbosman / hack15.rb
Created March 15, 2017 21:13 — forked from jewlofthelotus/hack15.rb
Sonic Pi Hackathon Track
######################################################
# Drums
######################################################
define :boom do
with_fx :reverb, room: 1 do
sample :bd_boom, amp: 8
end
sample :ambi_choir, rate: 0.1
@dirkbosman
dirkbosman / auto_dubstep.rb
Created March 15, 2017 21:10 — forked from xavriley/auto_dubstep.rb
Auto generating dubstep with Sonic Pi
# 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
@dirkbosman
dirkbosman / clickable-element.html
Created April 17, 2016 23:26 — forked from scottmagdalein/clickable-element.html
Make the Mailchimp Subscriber popup appear on click
<!-- This is the HTML element that, when clicked, will cause the popup to appear. -->
<button id="open-popup">Subscribe to our mailing list</button>