<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [CM] How to fix: Can't schedule events in non-real time while RTS is running.?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>-----Original Message-----<BR>
From: Rick Taube [<A HREF="mailto:taube@uiuc.edu">mailto:taube@uiuc.edu</A>]<BR>
Sent: Wed 11/9/2005 4:08 PM<BR>
To: Emre Sevinc<BR>
Cc: Common Music Mailing List<BR>
Subject: Re: [CM] How to fix: Can't schedule events in non-real time while RTS is running.?<BR>
<BR>
&gt;wierd. what is the value of *rts*<BR>
<BR>
Hmm, you may say I'm going even weirder but<BR>
*rts* doesn't seem to exist:<BR>
<BR>
=============================================================<BR>
CM&gt; *rts*<BR>
The variable *RTS* is unbound.<BR>
&nbsp;&nbsp; [Condition of type UNBOUND-VARIABLE]<BR>
<BR>
Restarts:<BR>
&nbsp; 0: [ABORT] Abort handling SLIME request.<BR>
&nbsp; 1: [TERMINATE-THREAD] Terminate this thread (3064531872)<BR>
<BR>
Backtrace:<BR>
&nbsp; 0: (SB-INT:EVAL-IN-LEXENV *RTS* #&lt;NULL-LEXENV&gt;)<BR>
=============================================================<BR>
<BR>
I don't know how (and how much) I messed up the system<BR>
all I did, after listenin' to interesting piano phase stuff,<BR>
was try to output some midi note and now whenever I try<BR>
to play something using events, I get that<BR>
&quot;Can't schedule events in non-real time while RTS is running.&quot;<BR>
error.<BR>
<BR>
I'd be more than happy if I can solve it without exiting<BR>
Emacs and Common Music and restarting them. I'm still<BR>
searching for ways but couldn't get a result until now.<BR>
<BR>
<BR>
On Nov 9, 2005, at 3:58 AM, Emre Sevinc wrote:<BR>
<BR>
&gt;&gt; Hi all,<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; I keep on studying Notes from the Metalevel and I've just<BR>
&gt;&gt;&nbsp; finished the chapter about Steve Reich's piano phasing composition.<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; I was able to run the code successfuly, however after<BR>
&gt;&gt;&nbsp; I have listened to it I wanted to play a very simple note<BR>
&gt;&gt;&nbsp; and to my amazement I can't do it:<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; (define one (new midi<BR>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :time 0<BR>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :keynum 60<BR>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :duration 2))<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; (events one &quot;myscore.mid&quot;)<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; It says: Can't schedule events in non-real time while RTS is running.<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; And then I tried the example that worked just a few sec. ago:<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; CM&gt; (events (piano2 phasing-trope 1 1 .5 4) &quot;reich.mid&quot;)<BR>
&gt;&gt;&nbsp; Can't schedule events in non-real time while RTS is running.<BR>
&gt;&gt;&nbsp; NIL<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; CM&gt; (events (pphase phasing-trope 1 1 .5) &quot;reich.mid&quot;)<BR>
&gt;&gt;&nbsp; Can't schedule events in non-real time while RTS is running.<BR>
&gt;&gt;&nbsp; NIL<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; I searched for RTS in the Common Music dictionary and I saw<BR>
&gt;&gt;&nbsp; that there's a function rts-stop however running that<BR>
&gt;&gt;&nbsp; function and trying to play something I received the very<BR>
&gt;&gt;&nbsp; same error. I also checked rts?<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; CM&gt; (rts?)<BR>
&gt;&gt;&nbsp; NIL<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; How can I make Common Music start playing MIDI again?<BR>
&gt;&gt;&nbsp; Is there a way to do that without exiting Emacs and restarting<BR>
&gt;&gt;&nbsp; Common Music?<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; BTW, my system details:<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; $ uname -a<BR>
&gt;&gt;&nbsp; Linux debian 2.6.11-1-686 #1 Mon Jun 20 22:00:38 MDT 2005 i686<BR>
&gt;&gt; GNU/Linux<BR>
&gt;&gt;&nbsp; $ sbcl --version<BR>
&gt;&gt;&nbsp; SBCL 0.9.2<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp; Happy hacking,<BR>
&gt;&gt;&nbsp; Emre S.</FONT>
</P>

</BODY>
</HTML>