Pseg - start from the middle

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

Pseg - start from the middle

by miguel.negrao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Hi is there a way to make a Pseg funtion similarly to IEnvGen, so that i
can start an "envelope" in middle way between start and end ?

Also, how can I stop the internal server from booting and creating a
window on startup and recompile ? and finally, what is the shortcut to
select the the block of code where the cursor currently is without
having to go to the parenthesis, so selecting from the middle of the
code block.

thanks
--
Miguel Negrão // ZLB
http://www.friendlyvirus.org/artists/zlb/



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: Pseg - start from the middle

by lik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hey Miguel,
the shortcut u mention is cmd+shift+B

Giannis

On 24.04.2009, at 12:55, Miguel Negrao wrote:

>
>
> Hi is there a way to make a Pseg funtion similarly to IEnvGen, so  
> that i
> can start an "envelope" in middle way between start and end ?
>
> Also, how can I stop the internal server from booting and creating a  
> window on startup and recompile ? and finally, what is the shortcut  
> to select the the block of code where the cursor currently is  
> without having to go to the parenthesis, so selecting from the  
> middle of the code block.
>
> thanks


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: Pseg - start from the middle

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/4/24, Miguel Negrao <miguel.negrao@...>:
> Hi
>
>  Hi is there a way to make a Pseg funtion similarly to IEnvGen, so that i
>  can start an "envelope" in middle way between start and end ?

Maybe you want to use the "fastForward" method of Stream?

>  Also, how can I stop the internal server from booting and creating a window
> on startup and recompile ?

You're on mac? You can open the class file for OSXPlatform and comment
out the line "Server.internal.makeWindow;".

> and finally, what is the shortcut to select the
> the block of code where the cursor currently is without having to go to the
> parenthesis, so selecting from the middle of the code block.

cmd+shift+B

Best
Dan

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: Pseg - start from the middle

by miguel.negrao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dan Stowell escreveu:
> 2009/4/24, Miguel Negrao <miguel.negrao@...>:
>> Hi
>>
>>  Hi is there a way to make a Pseg funtion similarly to IEnvGen, so that i
>>  can start an "envelope" in middle way between start and end ?
>
> Maybe you want to use the "fastForward" method of Stream?

I'm not sure that works for what I need, because what I need is to
predict where the Pseg will be after some time from the start in
seconds, and not in number of events since the start. An example of what
I need to do:

Pbind(\freq, Prand([300, 500, 231.2, 399.2], inf), \dur,
Pseg(Pseq([2,0.1],1),10)).play;

The durations go take 10 seconds to go from 2 to 0.1. Now I would like
to start this playing at four seconds into it, where the duration would
already be somewhere between 2 and 0.1.

>
>>  Also, how can I stop the internal server from booting and creating a window
>> on startup and recompile ?
>
> You're on mac? You can open the class file for OSXPlatform and comment
> out the line "Server.internal.makeWindow;".
>
>> and finally, what is the shortcut to select the
>> the block of code where the cursor currently is without having to go to the
>> parenthesis, so selecting from the middle of the code block.
>
> cmd+shift+B

this will save tons of scrolling up and down !! many thanks

>
> Best
> Dan
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>
>


--
Miguel Negrão // ZLB
http://www.friendlyvirus.org/artists/zlb/

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: Pseg - start from the middle

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is that Pseg calculates based on time elapsed since it started. If you go through lots of events very quickly, time advances only a little bit so there would be no effect.

fastForward works by playing events but not yielding them. Logical time advances by 0 -- when the stream finally gets to play normally, the Pseg envelope segments behave as though time were 0.

I don't have a quick answer to this problem. Thinking about it...
hjh

On Apr 25, 2009, at 6:36 AM, Miguel Negrao wrote:

Dan Stowell escreveu:
2009/4/24, Miguel Negrao <miguel.negrao@...>:
Hi

 Hi is there a way to make a Pseg funtion similarly to IEnvGen, so that i
 can start an "envelope" in middle way between start and end ?
Maybe you want to use the "fastForward" method of Stream?

I'm not sure that works for what I need, because what I need is to predict where the Pseg will be after some time from the start in seconds, and not in number of events since the start. An example of what I need to do:


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman