pwgl-users: load lisp file automatically

View: New views
2 Messages — Rating Filter:   Alert me  

pwgl-users: load lisp file automatically

by Luís Antunes Pena-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you Mika. Now it works fine.
I have a new question:
How to make PWGL load automatically a lisp file with functions?

Luis


Mika Kuuskankare schrieb:
> Luis,
>
> It depends what you are doing. In general I would say that accessing
variables like that is perhaps not the best way unless you are
completely sure what you are doing. You CAN use eval-box to access the
variable but remember to evaluate the 'text-box' and use the right
package in the 'eval-box' (e.g., cl-user::var).
>
> If you need in a patch something that behaves like a variable take a
look at PWGL-value box. There are some tutorials covering that in, for
example, Tutorial/Control/PWGL-value1.

>
> best,
>
> Mika
>
>
> Dr. Mika Kuuskankare
> Researcher
> Centre for Music & Technology
> Sibelius Academy
>
> Henkilökohtainen postiosoite/Personal post address
> PL 342 - PO Box 342
> FIN-00121 Helsinki, FINLAND
> Tel: +358 (0)40 5415 233
> Skype: mkuuskan
> home page: www.siba.fi/~mkuuskan

__
Luís Antunes Pena
http://icem.folkwang-hochschule.de/~pena

Re: pwgl-users: load lisp file automatically

by Mika Kuuskankare :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Luis,

There are two primary ways:

(1) "Lisp" box. It contains an editor just like the text box. In  
contrast to the text box - that is passive - the Lisp box evaluates  
its contents every time you open the patch. The functions and  
variables defined in a Lisp box are, however, per patch only (although  
you can use the functions - deliberately or inadvertently - in other  
patches but this will break the loading of these patches).

(2) The User-library. If you have a collection of Lisp functions and  
data you want to reuse you should concider making a personal user-
library. You can find the documentation in the PWGL Tutorial. You can  
then use SHIFT-U ("Autoload libraries...") to set your library to be  
loaded automatically each time you start PWGL.

hope this helps!

-mika



On 2.8.2008, at 17:27, Luís Antunes Pena wrote:

> Thank you Mika. Now it works fine.
> I have a new question:
> How to make PWGL load automatically a lisp file with functions?
>
> Luis
>
>
> Mika Kuuskankare schrieb:
>> Luis,
>>
>> It depends what you are doing. In general I would say that accessing
> variables like that is perhaps not the best way unless you are
> completely sure what you are doing. You CAN use eval-box to access the
> variable but remember to evaluate the 'text-box' and use the right
> package in the 'eval-box' (e.g., cl-user::var).
>>
>> If you need in a patch something that behaves like a variable take a
> look at PWGL-value box. There are some tutorials covering that in, for
> example, Tutorial/Control/PWGL-value1.
>>
>> best,
>>
>> Mika
>>
>>
>> Dr. Mika Kuuskankare
>> Researcher
>> Centre for Music & Technology
>> Sibelius Academy
>>
>> Henkilökohtainen postiosoite/Personal post address
>> PL 342 - PO Box 342
>> FIN-00121 Helsinki, FINLAND
>> Tel: +358 (0)40 5415 233
>> Skype: mkuuskan
>> home page: www.siba.fi/~mkuuskan
>
> __
> Luís Antunes Pena
> http://icem.folkwang-hochschule.de/~pena

Dr. Mika Kuuskankare
Researcher
Centre for Music & Technology
Sibelius Academy

Henkilökohtainen postiosoite/Personal post address
PL 342 - PO Box 342
FIN-00121 Helsinki, FINLAND
Tel: +358 (0)40 5415 233
Skype: mkuuskan
personal home page: www.siba.fi/~mkuuskan
project home page: www.siba.fi/PWGL