Csound Csound-dev Csound-tekno Search About

[Csnd] free_memory

Date2014-01-24 06:23
FromEnrico Francioni
Subject[Csnd] free_memory
Hi!

I have a problem to be for my friend Alessandro.

With the csound api would like to read more files (samples) with the same
/gen 1/. 
This works but the memory is freed; 
I also tried with /ftgentmp/ and /ftfree/ but nothing. 

I call the /instr 55/ for .1 sec and /ftgen/ overwrites the contents of the
table /giFile/, printing the function number increments by one for each call
/giFile/ but not free the memory. 

How could I do?

thanks,
enrico



--
View this message in context: http://csound.1045644.n5.nabble.com/free-memory-tp5731898.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-01-24 07:45
FromOeyvind Brandtsegg
SubjectRe: [Csnd] free_memory
Hi Enrico,

It is a little bit unclear if you want the memory to be freed or not.
If you want to use the same ftable name but replace the contents,
ftgentemp should work, but it is meant to be used in the same instr as
where you want to read the table. The table is freed when the
instrument stops. As far as I know anyway.

best
Oeyvind

2014/1/24 Enrico Francioni :
> Hi!
>
> I have a problem to be for my friend Alessandro.
>
> With the csound api would like to read more files (samples) with the same
> /gen 1/.
> This works but the memory is freed;
> I also tried with /ftgentmp/ and /ftfree/ but nothing.
>
> I call the /instr 55/ for .1 sec and /ftgen/ overwrites the contents of the
> table /giFile/, printing the function number increments by one for each call
> /giFile/ but not free the memory.
>
> How could I do?
>
> thanks,
> enrico
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/free-memory-tp5731898.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp

Date2014-01-24 12:41
FromEnrico Francioni
Subject[Csnd] Re: free_memory
Oeyvind, 
I want that memory is freed

e



--
View this message in context: http://csound.1045644.n5.nabble.com/free-memory-tp5731898p5731906.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-01-24 12:47
FromRory Walsh
SubjectRe: [Csnd] Re: free_memory
Why not use the same function table for successive samples? That way
you don't have to worry about freeing the memory, and if it's no
longer being used then their shouldn't be a problem? Failing that you
could resize the old function table to a size of 1 or something like
that perhaps?

On 24 January 2014 12:41, Enrico Francioni  wrote:
> Oeyvind,
> I want that memory is freed
>
> e
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/free-memory-tp5731898p5731906.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

Date2014-01-24 13:48
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Re: free_memory
Could you send a minimal example of code that does not free up memory
when using ftgentmp?
all best
Oeyvind

2014/1/24 Enrico Francioni :
> Oeyvind,
> I want that memory is freed
>
> e
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/free-memory-tp5731898p5731906.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>             https://sourceforge.net/p/csound/tickets/
> csound5:
>             https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>



-- 

Oeyvind Brandtsegg
Professor of Music Technology
NTNU
7491 Trondheim
Norway
Cell: +47 92 203 205

http://flyndresang.no/
http://www.partikkelaudio.com/
http://soundcloud.com/brandtsegg
http://soundcloud.com/t-emp