$ ssh root@bela.local
# wait for the bela prompt to open
$ echo "noremap <leader>r :!make -C ~/Bela PROJECT=<C-r>=shellescape(fnamemodify('.', ':p:h:t'), 1)<CR> run CL="-p16"<CR>" >> ~/.vimrc
This file contains 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
# ❤️ Brighton Ruby | |
# This code uses some features from the pre-release of Sonic Pi, | |
# due out later this month (touch wood!). | |
# If you just can't wait for the release but want to try it yourself | |
# you can either build the Sonic Pi master branch from source (pros: free, cons: hard) | |
# or share some love and contribute to the Patreon page to support Sonic Pi's development | |
# https://www.patreon.com/samaaron | |
# That will give to access to the latest pre-release versions |
This file contains 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
# Try changing the numbers and clicking Run | |
@polyrhythm = [2,3] | |
live_loop :foo do | |
density(@polyrhythm.sort.first) { play :g; sleep 1 } | |
end | |
live_loop :bar, autocue: false do | |
sync :foo | |
density(@polyrhythm.sort.last) { play :c; sleep 1 } |
This file contains 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
" Vim config | |
" 2020 | |
" see ~/.config/nvim/init.vim for nvim stuff | |
set shell=/bin/bash | |
" set shell=$SHELL | |
"" PLUGIN MANAGEMENT | |
packadd minpac | |
call minpac#init() |
This file contains 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
# place in ~/.sonic-pi/init.rb to autoload | |
def live_sample(name=nil, *args) | |
raise ArgumentError, "live_sample needs to have a unique name. For example: live_sample :foo" unless name | |
raise ArgumentError, "live_sample's name needs to be a string or symbol, got: #{name.inspect}. Example usage: live_sample :foo" unless (name.is_a?(Symbol) || name.is_a?(String)) | |
ls_name = "live_sample_#{name}".to_sym | |
args_h = resolve_synth_opts_hash_or_array(args) | |
click = args_h[:click] || 4 | |
dur = args_h[:dur] |
This file contains 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
This is Google's cache of http://www.mcld.co.uk/cymbalsynthesis/. It is a snapshot of the page as it appeared on 4 May 2020 03:03:17 GMT. The current page could have changed in the meantime. Learn more. | |
Full versionText-only versionView source | |
Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar. | |
Cymbal synthesis tutorial | |
Dan Stowell | |
This tutorial describes an approach to synthesising decent-sounding cymbals, in a way that is efficient enough for a real-time synthesis system. |
This file contains 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 | |
## changed by Xavier Riley | |
## | |
use_bpm 95 | |
in_thread(name: :drum_machine) do |
This file contains 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 :bo do |idx| | |
"Users/xriley/Dropbox/Public/sounds/barack/b#{idx}.wav" | |
end | |
use_bpm 125 | |
live_loop :heartbeat do | |
sample :bd_tek, amp: 0, cutoff: (range 60, 90).mirror.tick | |
sleep 1 | |
end |
This file contains 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
# THX Deep Note | |
# Second draft | |
# see http://www.earslap.com/article/recreating-the-thx-deep-note.html | |
time = 10 | |
wait_time = (time / 3) | |
synths = [] | |
rand_note = -> { rrand(note(:A2), note(:A4)) } | |
with_fx :normaliser, amp: 0.5 do | |
use_synth :dsaw |
Demo here: https://www.dropbox.com/s/qiktze3ml7bz5iq/autotune_the_shipping_forecast.wav?dl=0 Original voice input here: https://soundcloud.com/jb_uk/neil-nunes-bbc-radio-4-and
This is a demo of a simple effects synth using the Vocoder.ar
UGen from SuperCollider. This is a fairly primitive vocoder implementation made of a bunch of bandpass filters which are "tuned" to various frequencies.
The results are mixed, but it's difficult to get a decent reproduction of the words from this.
To get T-Pain/Imogen Heap style auto-tune it would be necessary to write a different algorithm probably using a technique called PSOLA which is described at the following links: