Great, thanks!
Robert van Heumen Composer and improvising musician http://west28.nl/ http://shackle.eu/
"Nothing is original. Steal from anywhere that resonates with inspiration or fuels your imagination. Devour old films, new films, music, books, paintings, photographs, poems, dreams, random conversations, architecture, bridges, street signs, trees, clouds, bodies of water, light and shadows. Select only things to steal from that speak directly to your soul. If you do this, your work (and theft) will be authentic. Authenticity is invaluable; originality is nonexistent. And don't bother concealing your thievery - celebrate it if you feel like it. In any case, always remember what Jean-Luc Godard said: "It's not where you take things from - it's where you take them to.” " Jim Jarmusch
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
the done-flag doesn't propagate through ugens. Your `sig` is a binary-op-ugen (disk-in multiplied by env-gen).
you need
disk = DiskIn.ar(...) sig = disk * EnvGen.kr ... FreeSelfWhenDone.kr(disk)
On 12/24/2014 02:04 PM, Robert van Heumen wrote:
Hi there,
The documentation on DiskIn says it sets the done-flag, but the Synth below doesn't stop after the playback is done. Any ideas?
Thanks! Robert
SynthDef(\diskPlayer2, { arg buf, gate, out = 0, loop = 0, att = 0.01, rel = 0.01, lev = 1; var sig; sig = DiskIn.ar(2, buf, loop) * EnvGen.kr(Env.adsr(att,0,1,rel), gate, doneAction: 2); FreeSelfWhenDone.kr(sig); Out.ar(out, lev * sig); }).send(server);
-----
* Robert van Heumen Composer and improvising musician http://hardhatarea.com/ -- View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/DiskIn-and-done-flag-tp7615453.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________ sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: https://listarc.bham.ac.uk/marchives/sc-users/ search: https://listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQIcBAEBAgAGBQJUmsTYAAoJEKZFmaPaYk6QEooP/3oU+vQBI7K26I4O1LbXRydk isT/OKxcMKwpAfkfGN07HfLMsxh7SoY/pti+RLRKLvUBHmgYi0gDqrBsZ/zQajXz soRDmfP6FLrW7qjyFj1QsWURGoeOqYMoCb/G1+4adz+TZdkpwVfZVnh122BTaw35 zvu28jUTxdJrCrlhcS8ua29f6uAAv2tPilp18o4Eexf9CopB0Qx4AnDMF2YH46St eX2PbAsSaxC0IGf19yjV/6mlUOrgDosk8Ni8ll2C5btmgfy0H6GGMMSeaMXgDWVo DoZpnlRgfqVvKhXRrhtzz9KJiiBTRsBDesCeMOtDIZ10Ja2QV4soqNyJqTPob0tE KkuDGZ4sqWY8fEVKkWx6nGUJXx3tKfHVB/g8aRYMygGyoy5FWHFzwafkMqrV8aJq o5PE96OMGOp7WtgW45g/JyA3fArwirNWtW8s0qykjdLxswoA8XVvGyKacL1bwNLW xhrqUgBdA82gRFnKbCVrobwgKqPr7oiq2IxdowX/HbFnTzcjePKEyhmaCEYhP603 o0n215SjsFbVZyOxP9p1aNma1OfEr98ssKHAEkHLBLcCllVZv6TtgKpPwmvgzII+ mcGKqaaZnRVYNAiHlUvJk2HesPdo3iLx2m8rlZ6xHD0VFawhDlAAlftOc7ZK+g9+ QfREK2sQRf4knT9tI7sO =tXMo -----END PGP SIGNATURE-----
_______________________________________________ sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml archive: https://listarc.bham.ac.uk/marchives/sc-users/ search: https://listarc.bham.ac.uk/lists/sc-users/search/
Robert van Heumen Composer and improvising musician http://west28.nl/ http://shackle.eu/
"Nothing is original. Steal from anywhere that resonates with inspiration or fuels your imagination. Devour old films, new films, music, books, paintings, photographs, poems, dreams, random conversations, architecture, bridges, street signs, trees, clouds, bodies of water, light and shadows. Select only things to steal from that speak directly to your soul. If you do this, your work (and theft) will be authentic. Authenticity is invaluable; originality is nonexistent. And don't bother concealing your thievery - celebrate it if you feel like it. In any case, always remember what Jean-Luc Godard said: "It's not where you take things from - it's where you take them to.” " Jim Jarmusch
|