Hi Matt, This has been entered as a needed feature on chuck.sf.net. We need a flexible way of advancing ugens: 1) .tick fire off a separate shred with a time loop to tick one or more ugens 2) ~blackhole have a ugen that sucks samples at audio rate (like dac). 3) ~ticker multirate blackhole What else? Best, Ge! On Aug 2, 2004, at 8:23 PM, Matthew Shanley wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Your code worked just fine, and with further playing around I figured out how to get mine to work. I seems like if a sinosc ugen isn't connected to dac, it doesn't get calculated. Probably you already knew that. It seems to be a problem though if you are using an oscillator only as input to the freq or gain of another oscillator. This is all under chuck-1.1.3 under linux-alsa. I haven't had a chance to compile the newest version yet, I hope that doesn't matter. Here's the example code I've been running that should have a vibrato, but just comes out as a straight cos wave:
// Create a simple tone oscillator // and add vibrato to it.
440.0 => float carFreq; 4.0 => float modFreq; 1.0 => float amp; 80.0 => float vibWidth; sinosc sc => dac; amp => sc.gain; sinosc sm; modFreq => sm.freq;
while (true) { ~ sm.last + carFreq => sc.sfreq; ~ sm.last => stdout; ~ //carFreq => stdout; ~ //sc.sfreq => stdout; ~ //sc.last => stdout; ~ //1::samp => now; ~ std.rand2(100,1000)::samp => now; }
Ge Wang wrote: | Hi Matt! | | I added you on sourceforge. | | Can you post the code that it is failing on? Also, what platform | are you running on? | | On OS X, i tried this instance of using last, which seems to work, | does it work for you? | --- | | sinosc osc => dac; | 220.0 => osc.freq; | | while( true ) | { | osc.last => stdout; | std.rand2(100,1000)::samp => now; | } | | --- | | Best, | Ge! | | | On Aug 1, 2004, at 9:24 PM, Matthew Shanley wrote: | | Hi Ge, | | I wouldn't mind being added as a dev. My sourceforge id is arkadyan. | | Also on a different note, is it true that the "last" parameter of ugens | isn't implemented yet? It was sinosc specifically that I was testing | with and just getting solid zeros. This seems to me like the way you'd | connect output from ugens into the input of other ugens and so it'd be | really important for many synthesis techniques. | | | Thanks! | matt | | | Ge Wang wrote: | | | | For now, we are using SourceForge for our bug and feature tracking. | | Our web/dev/CVS will remain at cs.princeton.edu. | | | | To add bug / feature idea | | | | http://chuck.sf.net/ | | | | you will need to be an SF member (sign up at their main page). | | also, send me your SF id and we will add you as a dev. | | (if you don't want to do SourceForge, post/send the bugs | | and someone can add it if necessary) Also feel free to continue | | posting bugs/ideas here. | | | | If you have questions, please let us know! Thank you! | | | | Best, | | Ge! | | | | _______________________________________________ | | chuck-dev mailing list | | chuck-dev@lists.cs.princeton.edu | | https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev | | . | | | _______________________________________________ chuck-dev mailing list chuck-dev@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
| _______________________________________________ | chuck-dev mailing list | chuck-dev@lists.cs.princeton.edu | https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev | .
- -- Matthew Shanley E-mail: mshanley@alum.rpi.edu
GnuPG Public Key ID : 0x5D3C2489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBDtsE2B97+F08JIkRArqVAJ4wEhnIlJ2EV8lz64KVRWSt8U/vWQCffYKL G4HTWoqKEv+ooejqOunFj7w= =8Dc8 -----END PGP SIGNATURE----- _______________________________________________ chuck-dev mailing list chuck-dev@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev