Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View madskjeldgaard's full-sized avatar

Mads Kjeldgaard madskjeldgaard

View GitHub Profile
@madskjeldgaard
madskjeldgaard / sc_ide_conf.yaml
Created October 16, 2018 08:04
SuperCollider IDE color scheme (add this to your sc_ide_conf.yaml file under themes)
NordMads:
built-in: !textFormat
color: "#e5c179"
italic: false
char: !textFormat
color: "#76b3c6"
italic: false
class: !textFormat
color: "#76b3c6"
italic: false
@madskjeldgaard
madskjeldgaard / scvim_startup_script.sh
Created November 3, 2018 21:23
startup script for scvim
#!/bin/bash
# SCVIM STARTUP SCRIPT
# By Mads Kjeldgaard
# --------------------
#
# Usage: bash <path/to/this/script> <optional/path/to/supercollider/file>
#
# Example: bash scvim_startup_script.sh cool_project.scd
#
@madskjeldgaard
madskjeldgaard / raspi_sc_install.sh
Created November 3, 2018 22:40
Raspberry pi 3 SuperCollider installation and setup script
#!/bin/bash
#
# Steps to install and set up a headless raspberry pi (3) for SuperCollider use
# This is primarily copied from https://supercollider.github.io/development/building-raspberrypi
#
#
# Get updated
sudo apt-get update
@madskjeldgaard
madskjeldgaard / gist:5f0c21e5e1ca2117cef547dcfa024676
Last active November 5, 2018 19:47
change vim keys for scvim
" Put these in your .vimrc to change <F5>, <F6> and <F12> to something else, reload VIM or resource your .vimrc (by running :source $MYVIMRC in VIM) and then it should work
au Filetype supercollider nnoremap <buffer> <leader>a :call SClang_block()<CR>
au Filetype supercollider inoremap <buffer> <leader>a :call SClang_block()<CR>a
au Filetype supercollider vnoremap <buffer> <leader>a :call SClang_line()<CR>
au Filetype supercollider vnoremap <buffer> <leader>b :call SClang_line()<CR>
au Filetype supercollider nnoremap <buffer> <leader>b :call SClang_line()<CR>
au Filetype supercollider inoremap <buffer> <leader>b :call SClang_line()<CR>a
@madskjeldgaard
madskjeldgaard / Quarks-and-dynamic-patterns.scd
Created January 14, 2019 19:03
SuperCollider Meetup Notam02.no

/*

Niklas example of dynamic patterns

*/

// See the packages installed and the ones on the "public list" (there are other packages out there, in the wild (aka. Github.com )) Quarks.gui

@madskjeldgaard
madskjeldgaard / lfo-into-pbind.scd
Created January 14, 2019 19:14
Mads' way of pluggin lfo's into patterns

/*

EXAMPLE: LFO TO PBIND

Three ways of controlling Pbind parameters with LFO's

Be careful when using this on the \dur parameter though. If it crosses or equals zero, things go apeshit so make sure it doesn't do that.

*/

@madskjeldgaard
madskjeldgaard / Collatz.sc
Created March 19, 2019 09:51
Code from SuperCollider meetup Oslo march 2019
Collatz{
*new {
^super.new.init;
}
init{
"Im in init".postln;
}
*calculate{arg number;
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
call plug#begin()
" SuperCollider
Plug 'davidgranstrom/scnvim'
" Csound
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Source Code Variable
# bold_font auto