Load env to buffer

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

Load env to buffer

by Miguel Negrao-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

What would be the best way to load an Env to a buffer so to be able to
read through it starting at any point, or in any direction ?
  I saw one possibility being
  Env.new([],[],1).asSignal.play
  but this doesn't allow to set start point and other things... Is there
a way to load a Signal to a buffer ?

thanks
Miguel Negrão
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Load env to buffer

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you are using Ctk, you can do:

a  = CtkBuffer.buffer(1024);
a.fillWithEnv(your Env);

Or (with messaging style)-

s.sendBundle(0.1, [\b_alloc, b = s.bufferAllocator.alloc(1), 1024]);
a = Env([0, 1, 0], [1, 1]).asSignal(1024);
s.sendBundle(0.1, [\b_setn, b, 0, a.size] ++ a);

Not sure how to do it with regular Buffer style. I think  
loadCollection will do it (where the collection is an array).

OR - check out IEnvGen - this allows you to simply supply an Envelope  
and index it however you want.

Hope that helps.

Josh

On May 16, 2008, at 11:50 AM, Miguel Negrao wrote:

> Hi
>
> What would be the best way to load an Env to a buffer so to be able to
> read through it starting at any point, or in any direction ?
>  I saw one possibility being
>  Env.new([],[],1).asSignal.play
>  but this doesn't allow to set start point and other things... Is  
> there
> a way to load a Signal to a buffer ?
>
> thanks
> Miguel Negrão
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Load env to buffer

by Miguel Negrao-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, I think IEnvGen will do the trick.

Miguel

Josh Parmenter escreveu:

> If you are using Ctk, you can do:
>
> a  = CtkBuffer.buffer(1024);
> a.fillWithEnv(your Env);
>
> Or (with messaging style)-
>
> s.sendBundle(0.1, [\b_alloc, b = s.bufferAllocator.alloc(1), 1024]);
> a = Env([0, 1, 0], [1, 1]).asSignal(1024);
> s.sendBundle(0.1, [\b_setn, b, 0, a.size] ++ a);
>
> Not sure how to do it with regular Buffer style. I think  
> loadCollection will do it (where the collection is an array).
>
> OR - check out IEnvGen - this allows you to simply supply an Envelope  
> and index it however you want.
>
> Hope that helps.
>
> Josh
>
> On May 16, 2008, at 11:50 AM, Miguel Negrao wrote:
>
>> Hi
>>
>> What would be the best way to load an Env to a buffer so to be able to
>> read through it starting at any point, or in any direction ?
>>  I saw one possibility being
>>  Env.new([],[],1).asSignal.play
>>  but this doesn't allow to set start point and other things... Is  
>> there
>> a way to load a Signal to a buffer ?
>>
>> thanks
>> Miguel Negrão
>> _______________________________________________
>> sc-users mailing list
>> sc-users@...
>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
> ******************************************
> /* Joshua D. Parmenter
> http://www.realizedsound.net/josh/
>
> “Every composer – at all times and in all cases – gives his own  
> interpretation of how modern society is structured: whether actively  
> or passively, consciously or unconsciously, he makes choices in this  
> regard. He may be conservative or he may subject himself to continual  
> renewal; or he may strive for a revolutionary, historical or social  
> palingenesis." - Luigi Nono
> */
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
>

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

Re: Load env to buffer

by Josh Parmenter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I love IEnvGen.

Josh

On May 16, 2008, at 12:23 PM, Miguel Negrao wrote:

> Thanks, I think IEnvGen will do the trick.
>
> Miguel
>
> Josh Parmenter escreveu:
>> If you are using Ctk, you can do:
>>
>> a  = CtkBuffer.buffer(1024);
>> a.fillWithEnv(your Env);
>>
>> Or (with messaging style)-
>>
>> s.sendBundle(0.1, [\b_alloc, b = s.bufferAllocator.alloc(1), 1024]);
>> a = Env([0, 1, 0], [1, 1]).asSignal(1024);
>> s.sendBundle(0.1, [\b_setn, b, 0, a.size] ++ a);
>>
>> Not sure how to do it with regular Buffer style. I think
>> loadCollection will do it (where the collection is an array).
>>
>> OR - check out IEnvGen - this allows you to simply supply an Envelope
>> and index it however you want.
>>
>> Hope that helps.
>>
>> Josh
>>
>> On May 16, 2008, at 11:50 AM, Miguel Negrao wrote:
>>
>>> Hi
>>>
>>> What would be the best way to load an Env to a buffer so to be  
>>> able to
>>> read through it starting at any point, or in any direction ?
>>> I saw one possibility being
>>> Env.new([],[],1).asSignal.play
>>> but this doesn't allow to set start point and other things... Is
>>> there
>>> a way to load a Signal to a buffer ?
>>>
>>> thanks
>>> Miguel Negrão
>>> _______________________________________________
>>> sc-users mailing list
>>> sc-users@...
>>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>>
>> ******************************************
>> /* Joshua D. Parmenter
>> http://www.realizedsound.net/josh/
>>
>> “Every composer – at all times and in all cases – gives his own
>> interpretation of how modern society is structured: whether actively
>> or passively, consciously or unconsciously, he makes choices in this
>> regard. He may be conservative or he may subject himself to continual
>> renewal; or he may strive for a revolutionary, historical or social
>> palingenesis." - Luigi Nono
>> */
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users@...
>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>>
>>
>
> _______________________________________________
> sc-users mailing list
> sc-users@...
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/

_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users
LightInTheBox - Buy quality products at wholesale price