[Impromptu] Bidule/Impromptu Crash

David Smith smithd at roughlight.com
Tue Sep 29 02:59:04 GMT 2009


Here is wait function code Andrew sent out a while back.

(define *sys:toplevel-continuation* '())
(call/cc (lambda (k) (set! *sys:toplevel-continuation* k)))

(define sys:wait
    (lambda (until-time)
       (call/cc (lambda (cont)
                   (callback until-time cont 0)
                   (*sys:toplevel-continuation* 0)))))

(define test
    (lambda ()
       (print 'a)
       (sys:wait (+ (now) *second*))
       (print 'b) ;
       (sys:wait (+ (now) (* 3 *second*)))
       (print 'c)
       (sys:wait (+ (now) (* 1/8 *second*)))
       (print 'd)))

(test)

I use it after calling (load "filename") to give Imromptu a chance to  
execute the load before calling the next line.

Dave





On Sep 28, 2009, at 11:53 AM, David Routledge wrote:

> Hi David :)
> Thanks for the suggestion.
> I'm unfamiliar with the wait function.
> Do you mean I should do something like this:
> http://snippets.dzone.com/posts/show/7542
> ?
>
> On Mon, Sep 28, 2009 at 10:52 AM, David Smith  
> <smithd at roughlight.com> wrote:
>
> You might try using the wait function to make sure the AU has fully  
> loaded before you try to update the graph.
>
>
>
> On Sep 28, 2009, at 1:05 AM, Andrew Sorensen wrote:
>
>> Sorry David,
>>
>> I don't have bidule so not really sure what the problem might be.
>>
>> Cheers,
>> Andrew.
>>
>>
>> On 24/09/2009, at 6:33 AM, David Routledge wrote:
>>
>>> Hi all, and especially Andrew,
>>> for on this particular occasion I am trying to solve a problem  
>>> that he may be able to shed some light on.
>>> When I work through the tutorial here:
>>> http://impromptu.moso.com.au/tutorials/makeanoise.html
>>> and use Bidule as my instrument,
>>> it crashes when I get to evaluating this expression:
>>> (au:update-graph)
>>> So essentially, I never get to the point where I can use Bidule.
>>> This is frustrating as I really want to marry the work I've done  
>>> in Bidule with Impromptu based work.
>>> I've discussed the issue with seb at plogue and (though he had no  
>>> problem getting it to work) he suggested:
>>> "the update-graph will initialize BiduleAU so the possible  
>>> reasons for a crash would be :
>>> - cannot find the license key
>>> - there's something in the default AU layout causing the crash"
>>> But I can't find any problem with the license key (for Bidule) or  
>>> the default AU layout.
>>> So, I thought I'd ask here, if anyone has any suggestions.
>>>
>>> Thanks,
>>> David Routledge
>>>
>>> _______________________________________________
>>> Impromptu mailing list
>>> Impromptu at lists.moso.com.au
>>> http://lists.moso.com.au/mailman/listinfo/impromptu
>>
>> _______________________________________________
>> Impromptu mailing list
>> Impromptu at lists.moso.com.au
>> http://lists.moso.com.au/mailman/listinfo/impromptu
>
>
> _______________________________________________
> Impromptu mailing list
> Impromptu at lists.moso.com.au
> http://lists.moso.com.au/mailman/listinfo/impromptu
>
>
> _______________________________________________
> Impromptu mailing list
> Impromptu at lists.moso.com.au
> http://lists.moso.com.au/mailman/listinfo/impromptu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.moso.com.au/pipermail/impromptu/attachments/20090928/a753c36d/attachment-0001.htm 


More information about the Impromptu mailing list