Skip to content

Instantly share code, notes, and snippets.

@triss
triss / gist:16df998b1230209d6d2a
Created February 3, 2015 17:02
CLJX namespace can't be found from ClojureScript
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
registering src/cljx [:create :modify]
registering src/cljx/rum-xox [:create :modify]
registering src/cljs [:create :modify]
registering src/cljs/rum_xox [:create :modify]
registering src/cljs/rum_xox/ui [:create :modify]
registering src/clj [:create :modify]
registering src/clj/rum_xox [:create :modify]
sending change event
watch service closed
@triss
triss / gist:d87c39163559552b0274
Created February 3, 2015 16:55
CLJX namespace can't be found from Clojure...
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
registering src/cljx [:create :modify]
registering src/cljx/rum-xox [:create :modify]
registering src/cljs [:create :modify]
registering src/cljs/rum_xox [:create :modify]
registering src/cljs/rum_xox/ui [:create :modify]
registering src/clj [:create :modify]
registering src/clj/rum_xox [:create :modify]
sending change event
watch service closed
@triss
triss / build.boot
Created February 3, 2015 15:31
CLJX output not found by Clojue or CLJS.
(set-env!
:source-paths #{"src/cljx" "src/cljs" "src/clj"}
:resource-paths #{"resources"}
:dependencies '[; build dependencies
[adzerk/boot-cljs "0.0-2727-0" :scope "test"]
[adzerk/boot-cljs-repl "0.1.8" :scope "test"]
[adzerk/boot-reload "0.2.4" :scope "test"]
[pandeiro/boot-http "0.6.1" :scope "test"]
[boot-garden "1.2.5-1"]
[deraen/boot-cljx "0.2.1"]
@triss
triss / gist:53f80df061b111a256c5
Created December 16, 2014 14:15
can't find namespace
ljs.user=> Figwheel: Starting server at http://localhost:3449
Figwheel: Serving files from '(dev-resources|resources)/public'
Compiling "resources/public/js/app.js" from ("src/cljs" "env/dev/cljs")...
WARNING: No such namespace: hm.core at line 1 src/cljs/little_drummer_boy/core.cljs
WARNING: Use of undeclared Var cljs.core.async/do-alts at line 62 file:/home/tris/.m2/repository/org/clojure/core.async/0.1.278.0-76b25b-alpha/core.async-0.1.278.0-76b25b-alpha.jar!/cljs/core/async/impl/ioc_helpers.cljs
WARNING: Bad method signature in protocol implementation, impl/Handler does not declare method called lock-id at line 214 file:/home/tris/.m2/repository/org/clojure/core.async/0.1.278.0-76b25b-alpha/core.async-0.1.278.0-76b25b-alpha.jar!/cljs/core/async.cljs
WARNING: Use of undeclared Var cljs.core.async.impl.protocols/lock-id at line 217 file:/home/tris/.m2/repository/org/clojure/core.async/0.1.278.0-76b25b-alpha/core.async-0.1.278.0-76b25b-alpha.jar!/cljs/core/async.cljs
WARNING: Bad method signature in protocol
CPU0 CPU1
0: 1152406 1085120 IO-APIC-edge timer
1: 7 5 IO-APIC-edge i8042
8: 0 1 IO-APIC-edge rtc0
9: 1241 1265 IO-APIC-fasteoi acpi
12: 59 67 IO-APIC-edge i8042
16: 31068 27982 IO-APIC-fasteoi uhci_hcd:usb6, yenta
17: 5 5 IO-APIC-fasteoi uhci_hcd:usb7, firewire_ohci
18: 0 0 IO-APIC-fasteoi uhci_hcd:usb8, mmc0, r592, r852
19: 13562 14497 IO-APIC-fasteoi ehci_hcd:usb2
~synths = Array.fill(13, { Synth(\mainSynth) });
~sequence = Array.fill(13, { Array.fill(16, 0) })
// step through sequence
Tdef(\sequencePlayer, {
loop {
16.do {
arg i;
// here's the iterator for the different sequences
@triss
triss / filterkernals
Created November 5, 2014 17:12
damon
(
var bandwidth = 0.1;
var lowKernel;
var highKernel;
var bandKernel;
var maxValue = 0;
var ratio;
var normalize = 1;
@triss
triss / simplestepper
Created November 5, 2014 14:26
Very simple step sequencer
s.boot;
// set up the Synth
(
SynthDef(\mainSynth, {
arg attack=0.5,decay=0.5,sustain=0.5,release=0.5,gate=1,modulation_rate=1,depth=50,rate=100;
var envelope,modulator,frequencyModCarrier,amplitudeModCarrier,ringModCarrier,signal,
// -------- I've had to add a modulatorType argument to the synth - the way things were it'd be impossible to change
modulatorType ;
@triss
triss / synth.scd
Last active August 29, 2015 14:08
Louis
// run this code first to set up synthDef
(
SynthDef(\mainSynth, {
arg attack=0.5,decay=0.5,sustain=0.5,release=0.5,gate=1,modulation_rate=1,depth=50,rate=100;
var envelope,modulator,frequencyModCarrier,amplitudeModCarrier,ringModCarrier,signal;
envelope = EnvGen.ar(Env.adsr(attack, decay, sustain, release), gate);
modulator=BufRd.ar(1,modulatorBuffer,Phasor.ar(0,BufRateScale.kr(modulatorBuffer)*modulation_rate*buffTime,0,BufFrames.kr(modulatorBuffer)),1)*depth;
ringModCarrier = BufRd.ar(1, carrierBuffer, Phasor.ar(0, BufRateScale.kr(carrierBuffer) *
--[[============================================================================
main.lua
============================================================================]]--
--------------------------------------------------------------------------------
-- tool registration
--------------------------------------------------------------------------------
--renoise.tool():add_menu_entry {
-- name = "Instrument Box:Random Renoise Kit...",