Re: [chuck-users] Matrix of Impulse Generators
Yep, having that resource allocation and connection to the dac inside your infinite loop is the culprit. In fact, almost everything in that function is static initialization, so chould be moved outside the while(1) context. This fixes it for real: fun void iGen(int i1, int j1) { Euclid(i1,j1,a1,b1) + Euclid(i1,j1,a2,b2) => float dist; <<< dist >>>; SinOsc s => ADSR e => dac; e.set(35::ms, 8::ms, .1, 200::ms); Math.pow(0.65,(dist)) => s.gain; i1*x + j1*y => s.freq; while(true) { e.keyOn(); (440)::ms => now; e.keyOff(); (440*Math.pow(1.2,dist))::ms => now; } } ----- Original Message ----- Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..." Today's Topics: 1. Matrix of Impulse Generators (Philipp Blume) 2. Re: Matrix of Impulse Generators (Stefan Blixt)
participants (1)
-
Perry R Cook