Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
# ------------------------------------------- | |
# CRASH INTO SONIC PI! | |
# Learn to code music in less than 30 minutes | |
# ------------------------------------------- | |
# - download Sonic Pi from sonic-pi.net | |
# - copy and paste these code snippets | |
# - change and experiment with the snippets | |
# - go! | |
# ------------------------------------------- | |
# These snippets were made for a workshop to |
# Ambient experiment for Sonic Pi (http://sonic-pi.net/) | |
# | |
# The piece consists of three long loops, each of which plays one of | |
# two randomly selected pitches. Each note has different attack, | |
# release and sleep values, so that they move in and out of phase | |
# with each other. This can play for quite awhile without | |
# repeating itself :) | |
live_loop :note1 do | |
use_synth :hollow |
use_debug false | |
use_bpm 130 | |
# Our mixer! | |
master = (ramp *range(0, 1, 0.01)) | |
kick_volume = 1 | |
bass_volume = 1 | |
revbass_volume = 1 | |
snare_volume = 0.5 | |
hats_volume = 0.5 |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
# :saws live loop written by @pjagielski, | |
# but I couldn't hold back to play with it! | |
# soundcloud: https://soundcloud.com/hopbit/live-coding-session-2016-05-14-count-on-me | |
use_bpm 130 | |
set_volume! 1 | |
ch1 = [62,65,69] | |
ch2 = [63,67,70] | |
ch3 = [65,69,72] | |
ch4 = [67,70,74] |
# mr presidend - coco jumbo (8 beats) | |
# http://latwenuty.blogspot.com/2012/07/mr-president-coco-jambo.html | |
# you can listen below track on soundcloud: | |
# https://soundcloud.com/hopbit/mr-president-coco-jumbo-fdm-spi-short-rmx | |
use_bpm 129 | |
notes = [:gs4,:cs5,:gs5,:g4,:cs5] # 1 tact | |
notes += [nil,:gs5,:e5,:ds5,:cs5] | |
notes += [:a4,:cs5,:e5,:b4,:ds5] # 2 tact | |
notes += [nil,:fs5,:e5,:ds5,:cs5] | |
#otes += [:d5, :ds5, nil, nil, nil, nil, nil, nil] |
This tutorial guides you through creating your first Vagrant project.
We start with a generic Ubuntu VM, and use the Chef provisioning tool to:
Afterwards, we'll see how easy it is to package our newly provisioned VM
live_loop :left_right do | |
curr_pan = tick % 2 == 1 ? 1 : -1 | |
sample :loop_amen, pan: curr_pan | |
sleep sample_duration(:loop_amen) | |
end |
I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.
I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!
Output on 14.03.2017
$ python pywaw.py
Collecting beautifulsoup4
Using cached beautifulsoup4-4.5.3-py3-none-any.whl
Collecting requests
Using cached requests-2.13.0-py2.py3-none-any.whl
Installing collected packages: beautifulsoup4, requests
Successfully installed beautifulsoup4-4.5.3 requests-2.13.0