Csound Csound-dev Csound-tekno Search About

[Csnd] csoundRewindScore not working correctly with csoundPerformBuffer

Date2011-12-19 00:52
Fromandy fillebrown
Subject[Csnd] csoundRewindScore not working correctly with csoundPerformBuffer
I'm trying to use csoundPerformBuffer with host implemented audio
output (no host audio input, yet) and it works well for the first run
through of the .csd but after stopping playback and calling
csoundRewindScore, csoundPerformBuffer doesn't seem to be
acknowledging the score as rewound, always returning true (score
finished).  Resetting and recompiling works
(csoundReset/csoundCompile) but is undesirable.

Is this a bug or am I incorrect in assuming csoundPerformBuffer should
read score events from the beginning after calling csoundRewindScore?
I've always used csoundPerformKsmps before, so I'm not sure.

Cheers,
~ andy.f


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-19 01:01
FromSteven Yi
SubjectRe: [Csnd] csoundRewindScore not working correctly with csoundPerformBuffer
Have you tried pausing, rewinding, and toggle pausing instead of stopping?  

On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown <andy.fillebrown@gmail.com> wrote:
I'm trying to use csoundPerformBuffer with host implemented audio
output (no host audio input, yet) and it works well for the first run
through of the .csd but after stopping playback and calling
csoundRewindScore, csoundPerformBuffer doesn't seem to be
acknowledging the score as rewound, always returning true (score
finished).  Resetting and recompiling works
(csoundReset/csoundCompile) but is undesirable.

Is this a bug or am I incorrect in assuming csoundPerformBuffer should
read score events from the beginning after calling csoundRewindScore?
I've always used csoundPerformKsmps before, so I'm not sure.

Cheers,
~ andy.f


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-19 01:23
Fromandy fillebrown
SubjectRe: [Csnd] csoundRewindScore not working correctly with csoundPerformBuffer
Hi Steven,

Perhaps "stopping" was a poor choice of words.  Here is the sequence
of calls ...

csoundCompile(...);

while (!csoundPerformBuffer(csound))
   copy_csound_output_buffer();

csoundRewindScore(csound);

... all subsequent calls to csoundPerformBuffer return true.

Stepping into the csound source reveals the only score event being
processed is 'e'.

Cheers,
~ andy.f



On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi  wrote:
> Have you tried pausing, rewinding, and toggle pausing instead of stopping?
>
> On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown 
> wrote:
>>
>> I'm trying to use csoundPerformBuffer with host implemented audio
>> output (no host audio input, yet) and it works well for the first run
>> through of the .csd but after stopping playback and calling
>> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>> acknowledging the score as rewound, always returning true (score
>> finished).  Resetting and recompiling works
>> (csoundReset/csoundCompile) but is undesirable.
>>
>> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>> read score events from the beginning after calling csoundRewindScore?
>> I've always used csoundPerformKsmps before, so I'm not sure.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>> 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-19 02:06
FromSteven Yi
SubjectRe: [Csnd] csoundRewindScore not working correctly with csoundPerformBuffer
Ah, at this point, I'm not so sure what's going on then.  Perhaps someone else can chime in or this might be a bug.

On Sun, Dec 18, 2011 at 8:23 PM, andy fillebrown <andy.fillebrown@gmail.com> wrote:
Hi Steven,

Perhaps "stopping" was a poor choice of words.  Here is the sequence
of calls ...

csoundCompile(...);

while (!csoundPerformBuffer(csound))
  copy_csound_output_buffer();

csoundRewindScore(csound);

... all subsequent calls to csoundPerformBuffer return true.

Stepping into the csound source reveals the only score event being
processed is 'e'.

Cheers,
~ andy.f



On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Have you tried pausing, rewinding, and toggle pausing instead of stopping?
>
> On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown <andy.fillebrown@gmail.com>
> wrote:
>>
>> I'm trying to use csoundPerformBuffer with host implemented audio
>> output (no host audio input, yet) and it works well for the first run
>> through of the .csd but after stopping playback and calling
>> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>> acknowledging the score as rewound, always returning true (score
>> finished).  Resetting and recompiling works
>> (csoundReset/csoundCompile) but is undesirable.
>>
>> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>> read score events from the beginning after calling csoundRewindScore?
>> I've always used csoundPerformKsmps before, so I'm not sure.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>> 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-19 02:20
Fromandy fillebrown
SubjectRe: [Csnd] csoundRewindScore not working correctly with csoundPerformBuffer
Ok, thanks.  I will make a test case and submit a bug report if it is a bug.

Cheers,
~ andy.f



On Sun, Dec 18, 2011 at 9:06 PM, Steven Yi  wrote:
> Ah, at this point, I'm not so sure what's going on then.  Perhaps someone
> else can chime in or this might be a bug.
>
>
> On Sun, Dec 18, 2011 at 8:23 PM, andy fillebrown 
> wrote:
>>
>> Hi Steven,
>>
>> Perhaps "stopping" was a poor choice of words.  Here is the sequence
>> of calls ...
>>
>> csoundCompile(...);
>>
>> while (!csoundPerformBuffer(csound))
>>   copy_csound_output_buffer();
>>
>> csoundRewindScore(csound);
>>
>> ... all subsequent calls to csoundPerformBuffer return true.
>>
>> Stepping into the csound source reveals the only score event being
>> processed is 'e'.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>>
>> On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi  wrote:
>> > Have you tried pausing, rewinding, and toggle pausing instead of
>> > stopping?
>> >
>> > On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown
>> > 
>> > wrote:
>> >>
>> >> I'm trying to use csoundPerformBuffer with host implemented audio
>> >> output (no host audio input, yet) and it works well for the first run
>> >> through of the .csd but after stopping playback and calling
>> >> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>> >> acknowledging the score as rewound, always returning true (score
>> >> finished).  Resetting and recompiling works
>> >> (csoundReset/csoundCompile) but is undesirable.
>> >>
>> >> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>> >> read score events from the beginning after calling csoundRewindScore?
>> >> I've always used csoundPerformKsmps before, so I'm not sure.
>> >>
>> >> Cheers,
>> >> ~ andy.f
>> >>
>> >>
>> >> 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"


Date2011-12-19 08:18
FromVictor Lazzarini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
Maybe the recent changes wrt memory files have introduce some issues there? i'll have a look.
On 19 Dec 2011, at 02:06, Steven Yi wrote:

Ah, at this point, I'm not so sure what's going on then.  Perhaps someone else can chime in or this might be a bug.

On Sun, Dec 18, 2011 at 8:23 PM, andy fillebrown <andy.fillebrown@gmail.com> wrote:
Hi Steven,

Perhaps "stopping" was a poor choice of words.  Here is the sequence
of calls ...

csoundCompile(...);

while (!csoundPerformBuffer(csound))
  copy_csound_output_buffer();

csoundRewindScore(csound);

... all subsequent calls to csoundPerformBuffer return true.

Stepping into the csound source reveals the only score event being
processed is 'e'.

Cheers,
~ andy.f



On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi <stevenyi@gmail.com> wrote:
> Have you tried pausing, rewinding, and toggle pausing instead of stopping?
>
> On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown <andy.fillebrown@gmail.com>
> wrote:
>>
>> I'm trying to use csoundPerformBuffer with host implemented audio
>> output (no host audio input, yet) and it works well for the first run
>> through of the .csd but after stopping playback and calling
>> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>> acknowledging the score as rewound, always returning true (score
>> finished).  Resetting and recompiling works
>> (csoundReset/csoundCompile) but is undesirable.
>>
>> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>> read score events from the beginning after calling csoundRewindScore?
>> I've always used csoundPerformKsmps before, so I'm not sure.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>> 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-19 11:48
FromTito Latini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
AttachmentsNone  

Date2011-12-19 12:37
Fromandy fillebrown
SubjectRe: [Csnd] csoundRewindScore not working correctly with
Excellent!  Thank you.

Cheers,
~ andy.f



On Mon, Dec 19, 2011 at 6:48 AM, Tito Latini  wrote:
> It's a problem with rewind-score; fixed and applied
>
> tito
>
> On Mon, Dec 19, 2011 at 08:18:13AM +0000, Victor Lazzarini wrote:
>> Maybe the recent changes wrt memory files have introduce some issues there? i'll have a look.
>> On 19 Dec 2011, at 02:06, Steven Yi wrote:
>>
>> > Ah, at this point, I'm not so sure what's going on then.  Perhaps someone else can chime in or this might be a bug.
>> >
>> > On Sun, Dec 18, 2011 at 8:23 PM, andy fillebrown  wrote:
>> > Hi Steven,
>> >
>> > Perhaps "stopping" was a poor choice of words.  Here is the sequence
>> > of calls ...
>> >
>> > csoundCompile(...);
>> >
>> > while (!csoundPerformBuffer(csound))
>> >   copy_csound_output_buffer();
>> >
>> > csoundRewindScore(csound);
>> >
>> > ... all subsequent calls to csoundPerformBuffer return true.
>> >
>> > Stepping into the csound source reveals the only score event being
>> > processed is 'e'.
>> >
>> > Cheers,
>> > ~ andy.f
>> >
>> >
>> >
>> > On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi  wrote:
>> > > Have you tried pausing, rewinding, and toggle pausing instead of stopping?
>> > >
>> > > On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown 
>> > > wrote:
>> > >>
>> > >> I'm trying to use csoundPerformBuffer with host implemented audio
>> > >> output (no host audio input, yet) and it works well for the first run
>> > >> through of the .csd but after stopping playback and calling
>> > >> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>> > >> acknowledging the score as rewound, always returning true (score
>> > >> finished).  Resetting and recompiling works
>> > >> (csoundReset/csoundCompile) but is undesirable.
>> > >>
>> > >> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>> > >> read score events from the beginning after calling csoundRewindScore?
>> > >> I've always used csoundPerformKsmps before, so I'm not sure.
>> > >>
>> > >> Cheers,
>> > >> ~ andy.f
>> > >>
>> > >>
>> > >> 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
>>
>>
>>
>>
>> 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"


Date2011-12-19 14:18
FromVictor Lazzarini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
Just as a curiosity what was the problem?
On 19 Dec 2011, at 11:48, Tito Latini wrote:

> It's a problem with rewind-score; fixed and applied
> 
> tito
> 
> On Mon, Dec 19, 2011 at 08:18:13AM +0000, Victor Lazzarini wrote:
>> Maybe the recent changes wrt memory files have introduce some issues there? i'll have a look.
>> On 19 Dec 2011, at 02:06, Steven Yi wrote:
>> 
>>> Ah, at this point, I'm not so sure what's going on then.  Perhaps someone else can chime in or this might be a bug.
>>> 
>>> On Sun, Dec 18, 2011 at 8:23 PM, andy fillebrown  wrote:
>>> Hi Steven,
>>> 
>>> Perhaps "stopping" was a poor choice of words.  Here is the sequence
>>> of calls ...
>>> 
>>> csoundCompile(...);
>>> 
>>> while (!csoundPerformBuffer(csound))
>>>  copy_csound_output_buffer();
>>> 
>>> csoundRewindScore(csound);
>>> 
>>> ... all subsequent calls to csoundPerformBuffer return true.
>>> 
>>> Stepping into the csound source reveals the only score event being
>>> processed is 'e'.
>>> 
>>> Cheers,
>>> ~ andy.f
>>> 
>>> 
>>> 
>>> On Sun, Dec 18, 2011 at 8:01 PM, Steven Yi  wrote:
>>>> Have you tried pausing, rewinding, and toggle pausing instead of stopping?
>>>> 
>>>> On Sun, Dec 18, 2011 at 7:52 PM, andy fillebrown 
>>>> wrote:
>>>>> 
>>>>> I'm trying to use csoundPerformBuffer with host implemented audio
>>>>> output (no host audio input, yet) and it works well for the first run
>>>>> through of the .csd but after stopping playback and calling
>>>>> csoundRewindScore, csoundPerformBuffer doesn't seem to be
>>>>> acknowledging the score as rewound, always returning true (score
>>>>> finished).  Resetting and recompiling works
>>>>> (csoundReset/csoundCompile) but is undesirable.
>>>>> 
>>>>> Is this a bug or am I incorrect in assuming csoundPerformBuffer should
>>>>> read score events from the beginning after calling csoundRewindScore?
>>>>> I've always used csoundPerformKsmps before, so I'm not sure.
>>>>> 
>>>>> Cheers,
>>>>> ~ andy.f
>>>>> 
>>>>> 
>>>>> 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
>> 
>> 
>> 
>> 
>> 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





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-19 14:19
FromTito Latini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
AttachmentsNone  

Date2011-12-19 14:26
FromVictor Lazzarini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
Oh yes, I thought that it was something to do with memory files. I wonder if the other API functions dealing with score transport need similar fixes.
On 19 Dec 2011, at 14:19, Tito Latini wrote:

>> Just as a curiosity what was the problem?
> 
> The score pointer in csound->scstr, I added
> `corfile_rewind(csound->scstr)' in the `musmon_rewind_score' function
> 
> tito
> 
> 
> 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





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-19 14:59
FromVictor Lazzarini
SubjectRe: [Csnd] csoundRewindScore not working correctly with
No, it appears csoundSetScoreOffsetSeconds() should be fine as it depends on csoundRewindScore().

Victor
On 19 Dec 2011, at 14:26, Victor Lazzarini wrote:

> Oh yes, I thought that it was something to do with memory files. I wonder if the other API functions dealing with score transport need similar fixes.
> On 19 Dec 2011, at 14:19, Tito Latini wrote:
> 
>>> Just as a curiosity what was the problem?
>> 
>> The score pointer in csound->scstr, I added
>> `corfile_rewind(csound->scstr)' in the `musmon_rewind_score' function
>> 
>> tito
>> 
>> 
>> 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
> 
> 
> 
> 
> 
> 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





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"