Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5715] Re: FLjoy bug.

Date2005-01-17 17:00
From"Art Hunkins"
Subject[CSOUND-DEV:5715] Re: FLjoy bug.
Please let me know if this is indeed changed. I've used FLjoy in several
pieces, noted the inconsistency and made the necessary compensation. I can
easily go back and make the changes if the code is corrected.

The only issue for me is that it needs to be changed in CsoundAV as well as
canonical - otherwise there's the incompatibility issue again, and I'm
looking for as much compatibility as possible.

Art Hunkins

----- Original Message -----
From: "Victor Lazzarini" 
To: "Csound Developers Discussion List" 
Sent: Monday, January 17, 2005 11:26 AM
Subject: [CSOUND-DEV:5697] FLjoy bug.


>
> I noticed that there seems to be a bug in FLjoy. The y-axis seems
> to be inverted, the minimum at the top and the maximum at the bottom.
> I don't suppose this is what it should be; normally we would expect
> the max at the top.
>
> Now this seems to be a FLTK lib widget code issue. The ybounds()
> method seems to set the max to be at the bottom. So if we chnage
> line 2975 of widgets.cpp to:
>
> o->ybounds(*p->imaxy,*p->iminy);
>
> and  line 2980 to:
>
> o->ybounds(range,0);
>
> it seems to correct it. Perhaps this is a bug fix that needs to be
> incorporated in cs4.23 as well as cs5 for the next bug fix release.
>
> Can anyone with access to CVS do it?
>
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>