<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'><A
title=https://ccrma.stanford.edu/~spencer/ckdoc/io.html#IO
href="https://ccrma.stanford.edu/~spencer/ckdoc/io.html#IO">https://ccrma.stanford.edu/~spencer/ckdoc/io.html#IO</A></DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'><FONT
size=3 face=Calibri></FONT> </DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'><FONT
size=3 face=Calibri>Screen reader users find it amencely helpful on pages which
list the various properties and methods of a particular object for each method /
property definition be wrapped in a heading tag. This will become even more
useful / necessary when descriptions are added.</FONT></DIV></DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'> </DIV></DIV>
<DIV>
<DIV> </DIV>
<DIV>For instance:</DIV>
<DIV>...</DIV>
<DIV>- h2: IO</DIV>
<DIV> </DIV>
<DIV>- h3: static member variables</DIV>
<DIV> </DIV>
<DIV>- h4: int MODE_ASYNC</DIV>
<DIV> </DIV>
<DIV>- h4: int MODE_SYNC</DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'></DIV>
<DIV style="FONT: 10pt tahoma">
<DIV style="BACKGROUND: #f5f5f5; font-color: black"><B>...</B></DIV>
<DIV style="BACKGROUND: #f5f5f5; font-color: black"><B></B> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="TEXT-DECORATION: ; FONT-FAMILY: ; COLOR: ; DISPLAY: inline"><FONT
face=Calibri><FONT style="FONT-SIZE: 12pt; BACKGROUND-COLOR: #ffffff">Thanx for
all your work on this.</FONT></FONT></DIV></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="TEXT-DECORATION: ; FONT-FAMILY: ; COLOR: ; DISPLAY: inline"><FONT
style="BACKGROUND-COLOR: #ffffff" size=3 face=Calibri>-- Rich</FONT></DIV></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV
style="TEXT-DECORATION: ; FONT-FAMILY: ; COLOR: ; DISPLAY: inline"> </DIV></DIV>
<DIV style="BACKGROUND: #f5f5f5; font-color: black"><B>From:</B> <A
title=spencer@ccrma.stanford.edu
href="mailto:spencer@ccrma.stanford.edu">Spencer Salazar</A> </DIV>
<DIV style="BACKGROUND: #f5f5f5"><B>Sent:</B> Friday, March 06, 2015 3:48
AM</DIV>
<DIV style="BACKGROUND: #f5f5f5"><B>To:</B> <A
title=chuck-users@lists.cs.princeton.edu
href="mailto:chuck-users@lists.cs.princeton.edu">ChucK Users Mailing List</A>
</DIV>
<DIV style="BACKGROUND: #f5f5f5"><B>Subject:</B> Re: [chuck-users] is shred
running? (Atte)</DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>Hi Atte,
<DIV> </DIV>
<DIV class=gmail_extra>
<DIV class=gmail_quote>On Thu, Mar 5, 2015 at 2:36 AM, Atte <SPAN dir=ltr><<A
href="mailto:atte@youmail.dk" target=_blank>atte@youmail.dk</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><SPAN>On
03/04/2015 06:59 PM, Perry Cook wrote:<BR>> Atte,<BR>><BR>> A handy
list of Shred functions (From our new Book, Appendix A :-):<BR><BR></SPAN>And
where do I find this info online?<BR></BLOCKQUOTE>
<DIV> </DIV>
<DIV>Theyre probably in a changelog somewhere, but also I am working on a new
documentation system (generated from ChucK source) which automatically picks up
new features like this. There is a prerelease version here: </DIV>
<DIV><A href="https://ccrma.stanford.edu/~spencer/ckdoc/"
target=_blank>https://ccrma.stanford.edu/~spencer/ckdoc/</A><BR></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><SPAN><BR>>
The ones you want are running() or done()<BR><BR></SPAN>Hmmm. Thought I could
do<BR><BR>return(Shred.fromId(myID).running())<BR><BR>but that gives null
pointer exception. Makes sense, the shred with the<BR>id is not running, so I
get a null reference, and trying to call<BR>running() on that... Better
is<BR><BR>return(Shred.fromId(myID)!=null)<BR><BR>However something strange
happens in combination with<BR>Machine.remove(myID) that doesn't happen when I
switch to<BR>Shred.fromId(myID).exit(). The scenario is quite complex, so for
now a<BR>quick difference of the two ways to remove a shred would be
nice...<SPAN><BR></SPAN></BLOCKQUOTE>
<DIV> </DIV>
<DIV>Hmm, it would be nice if there was no difference. But there is a
difference, internally, and it appears that is leaking out of the abstraction so
to speak. So basically .exit() appears to terminate the shred immediately
whereas Machine.remove() waits until all shreds have finished executing for this
sample, i.e. all shreds are waiting => now. At least that is what I am
interpreting from the source code. </DIV>
<DIV> </DIV>
<DIV>spencer</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> <SPAN> --<BR>Atte<BR><BR><A href="http://atte.dk"
target=_blank>http://atte.dk</A> <A href="http://a773.dk"
target=_blank>http://a773.dk</A><BR></SPAN>
<DIV>
<DIV>_______________________________________________<BR>chuck-users mailing
list<BR><A href="mailto:chuck-users@lists.cs.princeton.edu"
target=_blank>chuck-users@lists.cs.princeton.edu</A><BR><A
href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users"
target=_blank>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</A><BR><BR><BR></DIV></DIV></DIV></DIV><BR><BR
clear=all>
<DIV> </DIV>-- <BR>
<DIV>
<DIV dir=ltr>
<DIV>
<DIV dir=ltr>
<DIV>
<DIV dir=ltr>
<DIV>
<DIV dir=ltr>
<DIV style="FONT-SIZE: small; FONT-FAMILY: arial">
<DIV>Spencer Salazar<BR></DIV>
<DIV>Doctoral Candidate</DIV>
<DIV>Center for Computer Research in Music and Acoustics</DIV>
<DIV>Stanford University</DIV>
<DIV> </DIV>
<DIV><A href="mailto:spencer@ccrma.stanford.edu"
target=_blank>spencer@ccrma.stanford.edu</A></DIV>
<DIV></DIV>
<DIV><A href="tel:%2B1%20831.277.4654" target=_blank value="+18312774654">+1
831.277.4654</A><BR></DIV>
<DIV><A style="COLOR: rgb(17,85,204)"
href="https://ccrma.stanford.edu/~spencer/"
target=_blank>https://ccrma.stanford.edu/~spencer/</A><BR></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<P>
<HR>
_______________________________________________<BR>chuck-users mailing
list<BR>chuck-users@lists.cs.princeton.edu<BR>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<BR></DIV></DIV></DIV></BODY></HTML>