Skip to content

Instantly share code, notes, and snippets.

@hopbit
hopbit / sonicpi-crash-course.txt
Created March 26, 2016 20:31 — forked from hzulla/sonicpi-crash-course.txt
Crash into Sonic Pi: Learn to code music in less than 30 minutes
# -------------------------------------------
# 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
@hopbit
hopbit / ambient1
Created April 13, 2016 10:07 — forked from darinwilson/ambient1
Ambient experiment using Sonic Pi
# 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
@hopbit
hopbit / README.md
Created April 20, 2016 13:17 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
@hopbit
hopbit / count-on-me.rb
Last active January 10, 2023 21:44 — forked from pjagielski/count-on-me.rb
Count on me supersaw
# :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]
@hopbit
hopbit / mr_president_-_coco_jumbo__fdm_spi_short_mix.rb
Last active January 10, 2023 22:12
mr. president - coco jumbo (fdm spi short mix)
# 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]
@hopbit
hopbit / README.md
Created June 13, 2016 20:59 — forked from dergachev/README.md
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@hopbit
hopbit / left_to_right_live_loop.rb
Created July 2, 2016 15:40
Simple live loop presenting panning option in Sonic Pi
live_loop :left_right do
curr_pan = tick % 2 == 1 ? 1 : -1
sample :loop_amen, pan: curr_pan
sleep sample_duration(:loop_amen)
end
@hopbit
hopbit / README.md
Created July 11, 2016 19:51 — forked from xavriley/README.md
Original NES Mario Theme for Sonic Pi

Making Chiptune Music using Sonic Pi v2.0

Warning: this might not work on a RaspberryPi yet

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!

Getting the sounds of the NES chip

@hopbit
hopbit / output.md
Created March 14, 2017 21:44 — forked from wojtekerbetowski/output.md
Load most common PyWaw speakers

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