I've move instructions to this blog post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| format = "there are %d samples" % all_sample_names.size | |
| puts format | |
| for voicenumber in 0..all_sample_names.size-1 do | |
| puts voicenumber | |
| voice = all_sample_names[voicenumber] | |
| sample voice | |
| sleep sample_duration voice | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################### | |
| ## 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # soundcloud preview: | |
| # https://soundcloud.com/hopbit/playing-with-super-saw-synth | |
| live_loop :hello do | |
| use_synth :supersaw | |
| use_synth_defaults release: 2, amp: 1 | |
| use_bpm 98 | |
| with_fx :wobble do | |
| with_fx :echo do | |
| play chord(:F, :major) | |
| sleep 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define CHARGE_PIN 13 | |
| #define DISCHARGING_PIN 12 | |
| #define VOLTAGE_PIN A0 | |
| #define R 10000.0F | |
| void setup() { | |
| pinMode(CHARGE_PIN, OUTPUT); | |
| digitalWrite(CHARGE_PIN, LOW); | |
| Serial.begin(9600); | |
| Serial.print("hello world \n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Soundcloud preview: | |
| # https://soundcloud.com/hopbit/simple-kick-pattern-with-random-amp-129-bpm | |
| use_bpm 129 | |
| live_loop :kick do | |
| sample :elec_mid_snare, amp: rand(1.25) | |
| sleep 0.25 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Soundcloud: https://soundcloud.com/hopbit/live-coding-session-2015-08-05 | |
| live_loop :melody do | |
| #sync :cyk | |
| #stop | |
| use_synth :piano | |
| #play :D5 | |
| sleep 0.2 | |
| #play :C5 | |
| sleep 0.2 | |
| play :E5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://soundcloud.com/hopbit/live-coding-session-2015-08-04 | |
| live_loop :jj do | |
| #sample :loop_breakbeat, rate: 1.25, amp: 4 | |
| sleep 1.5 | |
| use_synth :dsaw | |
| play 1, amp: 0.5 | |
| end | |
| live_loop :ll do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Beginnings with Sonic Pi live loop & sample. | |
| # Listen on [Soundcloud](https://soundcloud.com/quantumenergy/quantum-energy-live-session-001) | |
| live_loop :foo do | |
| sample :ambi_piano, amp: 0.35 | |
| sample :drum_bass_hard, amp: 1 | |
| sleep 0.40625 | |
| sample :elec_snare, amp: 0.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run script 3 times because of the deeply nested variables | |
| # PROXY_USERNAME is the username used to connect to proxy. | |
| # May be different than the existing USERNAME. | |
| # USERNAME is the account you logged into VM with, | |
| # like 'Administrator', which may not have access through proxy | |
| # Primary variables (CHANGE THESE FIRST!) | |
| setx PROXY_HOSTNAME my_domain.com | |
| setx PROXY_USERNAME my_user | |
| setx PROXY_PASSWORD my_password |