I suppose this answers your question:
/**
* This struct holds the data for one score event.
*/
typedef struct event {
...
MYFLT p[PMAX + 1];
} EVTBLK;
----- Original Message -----
From: Michael Gogins <michael.gogins@gmail.com>
Date: Friday, August 21, 2009 4:06 pm
Subject: [Csnd] Re: Re: Re: PMAX-question
To: csound@lists.bath.ac.uk
> Of course they should be dynamically allocated. All arrays in Csound
> (or any other software that takes on varying loads) should be
> dynamically allocated.
>
> It would so simple if it was
>
> std::vector<MYFLT> p(INITIAL_PMAX);
>
> and then if necessary
>
> p.resize(new_size);
>
> Question: is p in this case per instance of Csound, per instrument
> template, or per instrument instance? If it's not per instrument
> instance, there is no reason not to make it pretty big.
>
> Regards,
> Mike
>
> On 8/21/09, Victor.Lazzarini@nuim.ie
> <Victor.Lazzarini@nuim.ie> wrote:
> > I see PMAX is used in$ grep PMAX */*.hH/csoundCore.h:#define PMAX
> > (1000)H/csoundCore.h: MYFLT p[PMAX + 1];H/oload.h: MYFLT
> > *sets[PMAX];H/schedule.h: MYFLT
> *args[PMAX+1];InOut/widgets.h://> MYFLT *kout,
> *args[PMAX+1];InOut/widgets.h: MYFLT *iwidth, *iheight,
> > *ix, *iy, *args[PMAX];InOut/widgets.h: MYFLT *itype,
> *inumx, *inumy,
> > *iwidth, *iheight, *ix, *iy, *args[PMAX];InOut/widgets.h: MYFLT
> > *iwidth, *iheight, *ix, *iy, *args[PMAX];I am just wondering
> if a large
> > value will cause some heap overflow and we shouldreally make
> these arrays
> > dynamically allocated.Victor----- Original Message -----From:
> Michael Gogins
> > <michael.gogins@gmail.com>Date: Friday, August 21, 2009
> 3:02 pmSubject:
> > [Csnd] Re: PMAX-questionTo: csound@lists.bath.ac.uk> What
> value do you
> > need?> > Regards,> Mike> > On 8/21/09, Schumacher Marlon >
> > <marlon.schumacher@music.mcgill.ca> wrote:> > Hello,> >> >
> I had the
> > pleasure to meet Victor Lazzarini at ICMC'09 in > Montreal
> and> > have been
> > told that there is probably going to be a new csound >
> release> soon.> > So
> > I wanted to take the occasion to ask, whether it would be >
> possible> (for
> > this new release) to set the PMAX variable to a > higher value
> than> >
> > 1000?> >> > Best,> > Marlon> >> >> > Send bugs reports to this
> list.> > To
> > unsubscribe, send email sympa@lists.bath.ac.uk with body >
> "unsubscribe>> csound"> >> > > -- > Michael Gogins> Irreducible
> Productions>> http://www.michael-gogins.com> Michael dot Gogins
> at gmail dot com> > > Send
> > bugs reports to this list.> To unsubscribe, send email
> > sympa@lists.bath.ac.uk with body > "unsubscribe csound"Dr
> Victor Lazzarini,
> > Senior Lecturer, Dept. of Music,National University of
> Ireland, Maynooth
> >
> > Send bugs reports to this list.
> > To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe> csound"
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth