« Return to Thread: SCEnvelopeView class and doc fixes

Re: SCEnvelopeView class and doc fixes

by Scott Wilson-3 :: Rate this Message:

Reply to Author | View in Thread

Okay fixed I think:

while(xgridpos < maxwidth && (xgrid != 0.0))
{
drawRect = CGRectMake(xgridpos, 
  bounds.y + 1.f
  1.f
  bounds.height-2.f);
CGContextFillRect (cgc, drawRect); 
xgridpos += xgrid;
}


while(ygridpos < maxheight && (ygrid != 0.0))
{
drawRect = CGRectMake(bounds.x+1.f
  ygridpos, 
  bounds.width-2.f
  1.f);
CGContextFillRect (cgc, drawRect); 
ygridpos += ygrid;
}


Now you can say b.grid = 0.0@... for only horizontal, etc.

On a related track, gridColor in SCScope seems to do nothing. This should at least be removed from the help file, or?

Also setting gridResolution to 0.0 on an SCSoundfile causes a crash as well.

S.


On 24 Apr 2009, at 10:10, blackrain wrote:

hmm, to be honest, I gave the prim a go once.
got my views as I wanted, played with it and saw the bug - I stepped out.

maybe Jan is the best to ask. I never took a look at that code.
'shouldnt be to hard to hijack zero tho.

cheers,

x


On Fri, Apr 24, 2009 at 4:06 AM, Scott Wilson <s.d.wilson.1@...> wrote:
I'm trying to track this down, but in the meantime in the C++ setProperty,
does this actually ever get used?

               if (strcmp(name, "setGraphView")==0) {
                       mDrawCenteredConnection = false;
                       mIsEnvView = false;
                       return errNone;
               }

Seems to be dead code.

S.

On 24 Apr 2009, at 10:02, blackrain wrote:

kewl!
thanks =)

x

On Fri, Apr 24, 2009 at 4:01 AM, Scott Wilson <s.d.wilson.1@...>
wrote:

On 24 Apr 2009, at 09:56, blackrain wrote:

primitive dodge 0.0?
it does crash bad.

Ouch! That should be fixed. I would have thought 0.0 on one axis would
mean
no grid for that.
Also just noticed the help file says this in the example:
// show grid
b.gridOn_(false);
Hmm...
S.

_______________________________________________
sc-dev mailing list

info (subscription, etc.):
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.):
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

 « Return to Thread: SCEnvelopeView class and doc fixes