Csound Csound-dev Csound-tekno Search About

[Csnd] Clear Memory During Performance

Date2012-12-18 10:07
FromDave Mooney
Subject[Csnd] Clear Memory During Performance
Hi could anybody tell me if there is a way to clear anything that's been
loaded into memory during performance?

I have a pvoc instrument which allows loading/playback of different .pvx
files during performance however as i flick through the different files ,
they are simply loaded into memory with previously loaded files also
remaining. It means that very quickly all ram is used and I then need to
restart the performance. 

I want to see if it is possible to clear the memory so that I can
effectively overwrite one .pvx file in memory with another, or say clear
memory when usage approaches a particular threshold.Any ideas?

Thanks a mill
Dave



--
View this message in context: http://csound.1045644.n5.nabble.com/Clear-Memory-During-Performance-tp5718878.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-12-18 10:33
FromVictor Lazzarini
SubjectRe: [Csnd] Clear Memory During Performance
You could try using pvsdiskin, which does not use memory files (but disk ones).

Victor
On 18 Dec 2012, at 10:07, Dave Mooney wrote:

> Hi could anybody tell me if there is a way to clear anything that's been
> loaded into memory during performance?
> 
> I have a pvoc instrument which allows loading/playback of different .pvx
> files during performance however as i flick through the different files ,
> they are simply loaded into memory with previously loaded files also
> remaining. It means that very quickly all ram is used and I then need to
> restart the performance. 
> 
> I want to see if it is possible to clear the memory so that I can
> effectively overwrite one .pvx file in memory with another, or say clear
> memory when usage approaches a particular threshold.Any ideas?
> 
> Thanks a mill
> Dave
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Clear-Memory-During-Performance-tp5718878.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"
> 

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





Date2012-12-18 13:20
From"Jacques Leplat"
Subject[Csnd] Android getScoreTime()
Hello,

I was wondering how to get CSound's current time when performing a score. 
The reason being that I want to display a progress bar as an audio file is 
being saved.

Calling getScoreTime() seems to be getting the elapsed time since the score 
was started, not the current time position in the score. I know how long the 
score is in milliseconds, 11520 ms.

The log for the last score event displays:

AndroidCsound B 11.401 .. 11.520 T 13.824 TT 13.824 M:

getScoreTime() returns 13.823, I'd really like to get the 11.520 time, not 
the TT time. Is there any way I can do that?

Best regards,

Jacques 


Date2012-12-18 14:26
FromDave Mooney
Subject[Csnd] Re: Clear Memory During Performance
Cheers Victor, i'll have a look at pvsdiskin it's seems to do most of what
i'm looking for. Out of interest is what i've described possible? Is there
any easy way to clear the memory or overwrite stuff already in there during
performance or is it is this something that could potentially create crashes
very easily and has just been avoided? or is there an opcode i've overlooked
that does exactly this? Thanks a million!

Dave



--
View this message in context: http://csound.1045644.n5.nabble.com/Clear-Memory-During-Performance-tp5718878p5718883.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-12-18 14:31
FromVictor Lazzarini
SubjectRe: [Csnd] Android getScoreTime()
One solution is have an instrument calling 'times' and place the result in a bus channel, picking it up in your app for display.

Victor
On 18 Dec 2012, at 13:20, Jacques Leplat wrote:

> Hello,
> 
> I was wondering how to get CSound's current time when performing a score. The reason being that I want to display a progress bar as an audio file is being saved.
> 
> Calling getScoreTime() seems to be getting the elapsed time since the score was started, not the current time position in the score. I know how long the score is in milliseconds, 11520 ms.
> 
> The log for the last score event displays:
> 
> AndroidCsound B 11.401 .. 11.520 T 13.824 TT 13.824 M:
> 
> getScoreTime() returns 13.823, I'd really like to get the 11.520 time, not the TT time. Is there any way I can do that?
> 
> Best regards,
> 
> Jacques 
> 
> 
> 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





Date2012-12-18 14:32
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Clear Memory During Performance
Not sure about this. Maybe jpff would know more.
On 18 Dec 2012, at 14:26, Dave Mooney wrote:

> Cheers Victor, i'll have a look at pvsdiskin it's seems to do most of what
> i'm looking for. Out of interest is what i've described possible? Is there
> any easy way to clear the memory or overwrite stuff already in there during
> performance or is it is this something that could potentially create crashes
> very easily and has just been avoided? or is there an opcode i've overlooked
> that does exactly this? Thanks a million!
> 
> Dave
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Clear-Memory-During-Performance-tp5718878p5718883.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"
> 

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