Csound Csound-dev Csound-tekno Search About

[Csnd] Csound api - pause / resume?

Date2011-12-13 14:56
FromTarmo Johannes
Subject[Csnd] Csound api - pause / resume?
Hello,

If i send puase command viea csound-api to a running csd, how do I start it later form the same point?

in CsoundQt python console entering q.pause()stops the performce nicely, but q.start() after that starts the csd again from the beginning.

greetings,
tarmo


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"

Date2011-12-13 15:40
FromSteven Yi
SubjectRe: [Csnd] Csound api - pause / resume?
Hi Tarm,

Are you using the csPerfThread class?  If so, try use TogglePause instead of Pause.

steven

On Tue, Dec 13, 2011 at 2:56 PM, Tarmo Johannes <tarmo@otsakool.edu.ee> wrote:
Hello,

If i send puase command viea csound-api to a running csd, how do I start it later form the same point?

in CsoundQt python console entering q.pause()stops the performce nicely, but q.start() after that starts the csd again from the beginning.

greetings,
tarmo


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"



Date2011-12-13 18:51
FromAndres Cabrera
SubjectRe: [Csnd] Csound api - pause / resume?
Hi,

Thanks, I've used this now and it works. But testing it made me
realise that when using Coreaudio, the buffer is not flushed on
paused, so it keeps looping while Csound is paused. It is alright with
portaudio.

Cheers,
Andrés

On Tue, Dec 13, 2011 at 3:40 PM, Steven Yi  wrote:
> Hi Tarm,
>
> Are you using the csPerfThread class?  If so, try use TogglePause instead of
> Pause.
>
> steven
>
>
> On Tue, Dec 13, 2011 at 2:56 PM, Tarmo Johannes 
> wrote:
>>
>> Hello,
>>
>> If i send puase command viea csound-api to a running csd, how do I start
>> it later form the same point?
>>
>> in CsoundQt python console entering q.pause()stops the performce nicely,
>> but q.start() after that starts the csd again from the beginning.
>>
>> greetings,
>> tarmo
>>
>>
>> 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"


Date2011-12-14 17:34
FromSteven Yi
SubjectRe: [Csnd] Csound api - pause / resume?
Seems like a bug for, spout should get cleared before the thread wait.  Could you file a bug in the tracker for this?  

On Tue, Dec 13, 2011 at 6:51 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Thanks, I've used this now and it works. But testing it made me
realise that when using Coreaudio, the buffer is not flushed on
paused, so it keeps looping while Csound is paused. It is alright with
portaudio.

Cheers,
Andrés

On Tue, Dec 13, 2011 at 3:40 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Hi Tarm,
>
> Are you using the csPerfThread class?  If so, try use TogglePause instead of
> Pause.
>
> steven
>
>
> On Tue, Dec 13, 2011 at 2:56 PM, Tarmo Johannes <tarmo@otsakool.edu.ee>
> wrote:
>>
>> Hello,
>>
>> If i send puase command viea csound-api to a running csd, how do I start
>> it later form the same point?
>>
>> in CsoundQt python console entering q.pause()stops the performce nicely,
>> but q.start() after that starts the csd again from the beginning.
>>
>> greetings,
>> tarmo
>>
>>
>> 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"



Date2011-12-14 23:48
FromVictor Lazzarini
SubjectRe: [Csnd] Csound api - pause / resume?
No, don't file a bug because it's to do with rtcoreaudio.c that has been removed and replaced by rtauhal.c.

Victor
On 14 Dec 2011, at 17:34, Steven Yi wrote:

Seems like a bug for, spout should get cleared before the thread wait.  Could you file a bug in the tracker for this?  

On Tue, Dec 13, 2011 at 6:51 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

Thanks, I've used this now and it works. But testing it made me
realise that when using Coreaudio, the buffer is not flushed on
paused, so it keeps looping while Csound is paused. It is alright with
portaudio.

Cheers,
Andrés

On Tue, Dec 13, 2011 at 3:40 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Hi Tarm,
>
> Are you using the csPerfThread class?  If so, try use TogglePause instead of
> Pause.
>
> steven
>
>
> On Tue, Dec 13, 2011 at 2:56 PM, Tarmo Johannes <tarmo@otsakool.edu.ee>
> wrote:
>>
>> Hello,
>>
>> If i send puase command viea csound-api to a running csd, how do I start
>> it later form the same point?
>>
>> in CsoundQt python console entering q.pause()stops the performce nicely,
>> but q.start() after that starts the csd again from the beginning.
>>
>> greetings,
>> tarmo
>>
>>
>> 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"



Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




Date2011-12-15 11:14
FromTarmo Johannes
SubjectRe: [Csnd] Csound api - pause / resume?
Thank you Steven!

(I am slow in answering and now I could try it out) yes, that is exactly what I needed!

tarmo

On Tuesday 13 December 2011 17:40:26 Steven Yi wrote:
> Hi Tarm,
> 
> Are you using the csPerfThread class?  If so, try use TogglePause instead
> of Pause.
> 
> steven
> 
> On Tue, Dec 13, 2011 at 2:56 PM, Tarmo Johannes wrote:
> 
> > Hello,
> >
> > If i send puase command viea csound-api to a running csd, how do I start
> > it later form the same point?
> >
> > in CsoundQt python console entering q.pause()stops the performce nicely,
> > but q.start() after that starts the csd again from the beginning.
> >
> > greetings,
> > tarmo
> >
> >
> > 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"
> 
> 


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"