Csound Csound-dev Csound-tekno Search About

[Csnd] Help for syncro events from external script

Date2012-04-14 08:28
Fromfrancesco
Subject[Csnd] Help for syncro events from external script
Hello All,
i need help to solve this: i have a script that send events to CSound when
activated
by buttons. I have a running csd which a instrument receive this events and
start another
instrument via event (or similar). My question is: how can i syncronize this
events?
I mean events should start at a fixed time interval, for example every 0.25
seconds,
without respect of when received in effect.

I'm trying to emulate this

http://lab.andre-michelle.com/crash/

I build a matrix that sends the number of row and the pitch dependent by the
column.
I need to read the row like a starting time for notes but "in time".

Any help is welcome.

Thanks,
ciao,
francesco.


--
View this message in context: http://csound.1045644.n5.nabble.com/Help-for-syncro-events-from-external-script-tp5640169p5640169.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-04-14 12:36
FromRory Walsh
SubjectRe: [Csnd] Help for syncro events from external script
Can you implement some kind of timer callback in my host app to
schedule events? I've done something like this before and it worked
fine.

On 14 April 2012 08:28, francesco  wrote:
> Hello All,
> i need help to solve this: i have a script that send events to CSound when
> activated
> by buttons. I have a running csd which a instrument receive this events and
> start another
> instrument via event (or similar). My question is: how can i syncronize this
> events?
> I mean events should start at a fixed time interval, for example every 0.25
> seconds,
> without respect of when received in effect.
>
> I'm trying to emulate this
>
> http://lab.andre-michelle.com/crash/
>
> I build a matrix that sends the number of row and the pitch dependent by the
> column.
> I need to read the row like a starting time for notes but "in time".
>
> Any help is welcome.
>
> Thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Help-for-syncro-events-from-external-script-tp5640169p5640169.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Date2012-04-14 13:38
FromAnders Genell
SubjectRe: [Csnd] Help for syncro events from external script
Maybe use the timout opcode like in the example (http://www.csounds.com/manual/html/timout.html) and set initial delay time to the fraction between next 0.25 time step and current absolute performance time? Something like 

ktime times
kdelay = frac( ktime / 0.25 )

/Anders


14 apr 2012 kl. 13:36 skrev Rory Walsh :

> Can you implement some kind of timer callback in my host app to
> schedule events? I've done something like this before and it worked
> fine.
> 
> On 14 April 2012 08:28, francesco  wrote:
>> Hello All,
>> i need help to solve this: i have a script that send events to CSound when
>> activated
>> by buttons. I have a running csd which a instrument receive this events and
>> start another
>> instrument via event (or similar). My question is: how can i syncronize this
>> events?
>> I mean events should start at a fixed time interval, for example every 0.25
>> seconds,
>> without respect of when received in effect.
>> 
>> I'm trying to emulate this
>> 
>> http://lab.andre-michelle.com/crash/
>> 
>> I build a matrix that sends the number of row and the pitch dependent by the
>> column.
>> I need to read the row like a starting time for notes but "in time".
>> 
>> Any help is welcome.
>> 
>> Thanks,
>> ciao,
>> francesco.
>> 
>> 
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Help-for-syncro-events-from-external-script-tp5640169p5640169.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>