<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I didn’t see that example in there. Sorry & thanks for pointing that out.<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 3, 2016, at 2:45 PM, Johannes Quint <<a href="mailto:johannes.quint@web.de" class="">johannes.quint@web.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">have a look to 'ghosts' in the help-menu:<div class=""><br class=""></div><div class="">help/examples/ghosts.scm<span class="Apple-tab-span" style="white-space: pre; ">        </span><br class=""><div class=""></div></div><div class=""><div class=""><br class=""></div><div class="">Am 03.03.2016 um 20:37 schrieb Rob Howiler:</div><br class="Apple-interchange-newline"><blockquote type="cite" class=""><div class="">Hi again everybody. This:<br class="">(define (ghosts)<br class=""> (process repeat 12<br class=""> for here = (now)<br class=""> for ahead = (* (+ here .5) 2)<br class=""> for main = (pick-range 53 77)<br class=""> for high? = (>= main 65)<br class=""> for amp = (if high? .6 .4)<br class=""> for rhy = (pick-list '(1/16 1/8 3/16))<br class=""> do<br class=""> (mp:midi :time here :key main :dur (rhythm->seconds rhy 60)<br class=""> :amp amp)<br class=""> (when high?<br class=""> sprout (hitone main ahead)<br class=""> and sprout (riff main rhy) at (* ahead 2))<br class=""> (when (= rhy 3/16)<br class=""> sprout (thump main (+ here .5)))<br class=""> (wait (rhythm->seconds rhy 60))))<br class="">(sprout (ghosts))<br class=""><br class="">This works fine to define (ghosts). (ghosts) produces no sound just #<lambda ({time}-2239)> in the listener window. Running (sprout (ghosts)) gives me the hitone sound, but no advancement to the next pitch and it generates this in the listener window (I see that “at” is the unbound variable, but I can’t figure out how to fix it):<br class=""><br class="">#<unspecified><br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Error: at: unbound variable<br class=""></blockquote></blockquote></blockquote>ghosts: (lambda ({time}-1860) (let* (({wait}-1... ; args: ("~A: unbound variable" at)<br class="">ghosts: ((* ahead 2)) ; ahead: 1275579.145172206<br class="">ghosts: ((when (= rhy 3/16) sprout (thump main... ; rhy: 3/16, main: 75<br class=""> ; here: 637789.072586103<br class="">ghosts: (call-with-exit (lambda (return) (if (... ; high?: #t<br class=""> ; amp: 0.6000000000000001<br class="">ghosts: (sprout (ghosts)) <br class=""><br class="">Thanks again for your help and your patience.<br class="">Rob<br class=""><br class="">------------------------------------------------------<br class="">Dr. Rob Howiler<br class="">Academic Computing Services Coordinator<br class="">Assistant Professor of Music<br class=""><a href="mailto:rhowiler@presby.edu" class="">rhowiler@presby.edu</a><br class="">(864) 833-8324<br class="">------------------------------------------------------<br class=""><br class=""><br class="">-- <br class=""><br class="">------------------------------<br class=""><<a href="http://www.presby.edu" class="">http://www.presby.edu</a>><br class=""><br class="">_______________________________________________<br class="">Cmdist mailing list<br class=""><a href="mailto:Cmdist@ccrma.stanford.edu" class="">Cmdist@ccrma.stanford.edu</a><br class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist<br class=""></div></blockquote></div><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: inherit;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="font-weight: normal; font-style: normal; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; " class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125); " class=""><o:p class=""> </o:p></span></div><div style="font-family: 'Andale Mono'; font-size: inherit; font-weight: normal; font-style: normal;" class=""><div style="border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; border-top-style: solid; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding-top: 3pt; padding-right: 0cm; padding-bottom: 0cm; padding-left: 0cm; " class=""></div></div></div></span></div></span></div><font class="Apple-style-span" face="Helvetica-Light"><span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><font class="Apple-style-span" face="Helvetica-Light"><span class="Apple-style-span" style="font-size: 12px; "><br class=""></span></font></div></span></font><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px; font-size: inherit;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><font class="Apple-style-span" face="HelveticaNeue-Light"><span class="Apple-style-span" style="font-size: 12px; ">Johannes Quint<span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class=""><a href="http://www.johannes-quint.de/" class="">www.johannes-quint.de</a></div></div></span></div></span></span></font></div></span></span>
</div>
<br class=""></div></div></blockquote></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">------------------------------------------------------<br class="">Dr. Rob Howiler<br class="">Academic Computing Services Coordinator</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Assistant Professor of Music<br class=""><a href="mailto:rhowiler@presby.edu" class="">rhowiler@presby.edu</a><br class="">(864) 833-8324<br class="">-------------------------------------------------------<br class=""></div></span></div></span></div></div>
</div>
<br class=""></body></html>
<br>
<hr><a href="http://www.presby.edu" target="_blank"><img src="http://www.presby.edu/misc/logo-sig.png"></a>