<div dir="ltr"><div>For example if I deliberately pass:</div><div></div><div>> >(save-sound-as "/home/dto/foo.snd" ())</div><div><br></div><div>I get: <br></div><div><br></div><div>save-sound-as second argument, (), is nil but should be a sound object, an integer (sound index), or #f</div><div><br></div><div>This is why I was asking what conditions could cause "save-sound-as" to simply print its name and fail<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 4:54 PM David O'Toole <<a href="mailto:deeteeoh1138@gmail.com">deeteeoh1138@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Actually, the output I gave is not from the trace feature, as it appears whether or not the function is traced.</div><div>So I don't know if it actually signifies that the sound passed was ().</div><div>I put in (assert (sound? some-sound)) and it doesn't complain.</div><div>I'll investigate more.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 4:36 PM David O'Toole <<a href="mailto:deeteeoh1138@gmail.com" target="_blank">deeteeoh1138@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Oh, I must have messed up something. I'll investigate further. Thank you!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 4:15 PM <<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It looks like some-sound is () which will cause save-sound-as<br>
to raise an error. If the error isn't caught, it will<br>
cause the loop to stop and will return to the top level.<br>
I'm guessing the output is from trace as the function is<br>
entered, then you hit the error, and the current evaluation<br>
is stopped. () is an error because it does not identify<br>
the sound you want to save.<br>
<br>
<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>