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
| use_synth :growl | |
| 64.times do | |
| play rrand(30,90), | |
| attack: rrand(4,16), sustain: rrand(2,4), | |
| release: rrand(4,24), slide_shape: 3, | |
| cutoff: rrand(62,112), | |
| cutoff_slide: [2,4,8,12].choose, | |
| res: rrand(0,0.99), | |
| res_slide: [2,4,6].choose, | |
| pan: rrand(-0.4,0.4), |
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
| # SonicPi <-> Unity OSC test | |
| # https://www.youtube.com/watch?v=7hYmcYg4WEY | |
| notes = (ring :E4, :Fs4, :B4, :Cs5, :D5, :Fs4, :E4, :Cs5, :B4, :Fs4, :D5, :Cs5 ) | |
| live_loop :slow do | |
| #stop | |
| #sync :moon_bass | |
| use_synth :beep | |
| with_fx :reverb, room: 1 do | |
| play notes.tick, release: 0.125 |
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
| # The Bach robot plays BWV murder | |
| # Suite No.1 in G Major BWV 1007 MIDI notes (on only) | |
| notes = (ring | |
| 43, 50, 59, 57, 59, 50, 59, 50, 43, 50, 59, 57, 59, 50, 59, 50, | |
| 43, 52, 60, 59, 60, 52, 60, 52, 43, 52, 60, 59, 60, 52, 60, 52, | |
| 43, 54, 60, 59, 60, 54, 60, 54, 43, 54, 60, 59, 60, 54, 60, 54, | |
| 43, 55, 59, 57, 59, 55, 59, 55, 43, 55, 59, 57, 59, 55, 59, 54, | |
| 43, 52, 59, 57, 59, 55, 54, 55, 52, 55, 54, 55, 47, 50, 49, 47, |
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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Runtime.CompilerServices; | |
| public class Tester : MonoBehaviour | |
| { | |
| const int kRuns = 10000000; | |
| const string |
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
| Results: | |
| ======================================================== | |
| iPod Touch 4th gen | |
| ======================================================== | |
| ===== seconds avg / frame batches ( * 100 actual frames ) | |
| ======================================================== | |
| Unity 4.6.9 |
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
| # adopted from https://github.com/repl-electric/live-coding-space | |
| require 'osc-ruby' | |
| def reaktion(endpoint, *args) | |
| args = [endpoint] + args | |
| endpoint = :reaktion | |
| endpoint = "/#{endpoint}" | |
| @client ||= OSC::Client.new('localhost', 9000) | |
| begin | |
| args = args.map{|a| a.is_a?(Symbol) ? a.to_s : a} |
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
| # MIDI notes ~~ | |
| anote = play :C4, sustain: 60 | |
| anote.pause | |
| sleep 1 | |
| anote.run | |
| sleep 1 |
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
| #set_mixer_control! lpf: 100, lpf_slide: 32 | |
| #set_mixer_control! amp: 0, amp_slide: 32 | |
| #set_mixer_control! amp: 2, amp_slide: 32 | |
| # Trance of an old clockwork | |
| use_bpm 60 | |
| # --------------------------------------------------------------------------------------- | |
| # Beats |
NewerOlder