Csound Csound-dev Csound-tekno Search About

[Cs-dev] Small change to way graphs are created

Date2010-06-10 13:35
FromAndres Cabrera
Subject[Cs-dev] Small change to way graphs are created
Hi all,

Would there be a problem to alter the function dispset in
InOut/window.c, to call the MakeGraphCallback
after the caption is set?
    while (*s != '\0' && t < tlim)
      *t++ = *s++;                      /*  (copy the caption) */
    *t = '\0';

What I'm currently doing in QuteCsound is to create a new curve
structure for any curve created, to save curves even after Csound
quits. Since the curve is allocated when the MakeGraphCallback is
called, there is no way of currently knowing whether a curve is a new
one, or whether an existing curve structure can be reused.

Would this change break something I am not aware of?

Cheers,
Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lis

Date2010-06-10 16:14
FromVictor Lazzarini
SubjectRe: [Cs-dev] Small change to way graphs are created
I think this should be OK, as far as I can see.

Victor
On 10 Jun 2010, at 13:35, Andres Cabrera wrote:

> Hi all,
>
> Would there be a problem to alter the function dispset in
> InOut/window.c, to call the MakeGraphCallback
> after the caption is set?
>    while (*s != '\0' && t < tlim)
>      *t++ = *s++;                      /*  (copy the caption) */
>    *t = '\0';
>
> What I'm currently doing in QuteCsound is to create a new curve
> structure for any curve created, to save curves even after Csound
> quits. Since the curve is allocated when the MakeGraphCallback is
> called, there is no way of currently knowing whether a curve is a new
> one, or whether an existing curve structure can be reused.
>
> Would this change break something I am not aware of?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-06-13 09:27
FromAndres Cabrera
SubjectRe: [Cs-dev] Small change to way graphs are created
Was just going to do it when I saw John. Thanks.

Cheers,
Andrés

On Thu, Jun 10, 2010 at 4:14 PM, Victor Lazzarini
 wrote:
> I think this should be OK, as far as I can see.
>
> Victor
> On 10 Jun 2010, at 13:35, Andres Cabrera wrote:
>
>> Hi all,
>>
>> Would there be a problem to alter the function dispset in
>> InOut/window.c, to call the MakeGraphCallback
>> after the caption is set?
>>    while (*s != '\0' && t < tlim)
>>      *t++ = *s++;                      /*  (copy the caption) */
>>    *t = '\0';
>>
>> What I'm currently doing in QuteCsound is to create a new curve
>> structure for any curve created, to save curves even after Csound
>> quits. Since the curve is allocated when the MakeGraphCallback is
>> called, there is no way of currently knowing whether a curve is a new
>> one, or whether an existing curve structure can be reused.
>>
>> Would this change break something I am not aware of?
>>
>> Cheers,
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 


Andrés

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/list