Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4060] Re: Question about FLTK opcodes

Date2004-02-16 10:59
FromGabriel Maldonado
Subject[CSOUND-DEV:4060] Re: Question about FLTK opcodes
Hi Dave,
It could depend on the massive CPU resources required by improsculpt, so 
any movement on the GUI can subtract processor time, causing drop-outs. 
Have you tried to increase the buffer size? However, try to ask Oeyvind 
if this could be a possible cause. Notice that in CsoundAV, there is 
still the original FLTK code, not that modified by Istvan. I still have 
to study Istvan code, to see if there are substantial differences, 
besides merging all code in a unique cpp file.

Gabriel


Dave Phillips wrote:
> Greetings:
> 
>  I've been testing various CSD files to see and hear how the FLTK 
> opcodes are supported in the most recent canonical CVS sources. Many 
> files work fine (e.g., J. M. Comajuncosas' 303 emulator, his Synth Toot, 
> and his Direct Hammond2), but I'm having a problem with Oeyvind 
> Brandtsegg's ImproSculpt. When I move the mouse in this program I hear a 
> nasty ripping noise tracking the mouse movement. Noise occurs when I 
> change window focus or move a window. Note that this noise does not 
> occur with other FLTK-based apps, so I'm wondering what there might be 
> in ImproSculpt to cause this trouble. Steven Yi suggested that the FLTK 
> updating may itself be a problem, but the other apps tested work fine. 
> So I'm at an impasse and can use some suggestions for troubleshooting. 
> Sorry to bother the developer's list but it seemed the better forum to 
> ask in. Could Steven be right about the FLTK opcodes themselves causing 
> the problem ? Would there be any advantage compiling Csound against a 
> static libfltk ?
> 
> Best,
> 
> Dave Phillips
> 
> 


-- 
Gabriel Maldonado
http://csounds.com/maldonado
--

Date2004-02-16 15:06
FromDave Phillips
Subject[CSOUND-DEV:4062] Re: Question about FLTK opcodes
Gabriel Maldonado wrote:

> It could depend on the massive CPU resources required by improsculpt, 
> so any movement on the GUI can subtract processor time, causing 
> drop-outs. Have you tried to increase the buffer size? However, try to 
> ask Oeyvind if this could be a possible cause. Notice that in 
> CsoundAV, there is still the original FLTK code, not that modified by 
> Istvan. I still have to study Istvan code, to see if there are 
> substantial differences, besides merging all code in a unique cpp file.

Hi Gabriel:

  I also set the csound binary to suid root, it made no difference. 
Buffers are at -b 512 and -B 512, those settings seem best for the 
SBLive Value soundcard I'm using. The weird part about all this is that 
I've run this app many times on this machine, under different distros, 
and I've never had this problem. Something in my software configuration 
must be causing this activity but I'm stuck trying to figure it out. 
I've made numerous changes to XF86Config, I've switched slots for the 
card, I've changed PCI settings, I've edited lilo.conf... still no joy. 
Any other suggestions ?

Best regards,

dp




>
>
>
>
> Dave Phillips wrote:
>
>> Greetings:
>>
>>  I've been testing various CSD files to see and hear how the FLTK 
>> opcodes are supported in the most recent canonical CVS sources. Many 
>> files work fine (e.g., J. M. Comajuncosas' 303 emulator, his Synth 
>> Toot, and his Direct Hammond2), but I'm having a problem with Oeyvind 
>> Brandtsegg's ImproSculpt. When I move the mouse in this program I 
>> hear a nasty ripping noise tracking the mouse movement. Noise occurs 
>> when I change window focus or move a window. Note that this noise 
>> does not occur with other FLTK-based apps, so I'm wondering what 
>> there might be in ImproSculpt to cause this trouble. Steven Yi 
>> suggested that the FLTK updating may itself be a problem, but the 
>> other apps tested work fine. So I'm at an impasse and can use some 
>> suggestions for troubleshooting. Sorry to bother the developer's list 
>> but it seemed the better forum to ask in. Could Steven be right about 
>> the FLTK opcodes themselves causing the problem ? Would there be any 
>> advantage compiling Csound against a static libfltk ?
>>
>> Best,
>>
>> Dave Phillips
>>
>>
>
>

Date2004-02-16 16:15
FromDave Phillips
Subject[CSOUND-DEV:4063] noise problem with ImproSculpt: solved !
Greetings:

  I finally resolved the mouse noise problem with ImproSculpt. Here's 
what I did:

    1. Made the csound binary suid root.
    2. Erased the CsOptions for Linux in the ImproSculpt.csd file 
(they're ignored when csound is suid root).
    3. Ran the app so:

        csound --sched -d -i devaudio -o devaudio -b 512 -B 4096 -m6 
ImproSculpt.csd

  Screen redraws are slower, but the mouse noise is gone. I'm still 
confused as to why all this trouble just "suddenly" occurred, but I'm 
glad to have discovered a solution. I also learned a lot about PCI 
latency timing, graphics card priority, hard/software buffering, and 
lots of other stuff that chewed up a bunch of my time.

  Many thanks to all who responded to my dilemma, I appreciate all the 
assistance and advice.

Best regards,

dp



Gabriel Maldonado wrote:

> Hi Dave,
> It could depend on the massive CPU resources required by improsculpt, 
> so any movement on the GUI can subtract processor time, causing 
> drop-outs. Have you tried to increase the buffer size? However, try to 
> ask Oeyvind if this could be a possible cause. Notice that in 
> CsoundAV, there is still the original FLTK code, not that modified by 
> Istvan. I still have to study Istvan code, to see if there are 
> substantial differences, besides merging all code in a unique cpp file.
>
> Gabriel
>
>
> Dave Phillips wrote:
>
>> Greetings:
>>
>>  I've been testing various CSD files to see and hear how the FLTK 
>> opcodes are supported in the most recent canonical CVS sources. Many 
>> files work fine (e.g., J. M. Comajuncosas' 303 emulator, his Synth 
>> Toot, and his Direct Hammond2), but I'm having a problem with Oeyvind 
>> Brandtsegg's ImproSculpt. When I move the mouse in this program I 
>> hear a nasty ripping noise tracking the mouse movement. Noise occurs 
>> when I change window focus or move a window. Note that this noise 
>> does not occur with other FLTK-based apps, so I'm wondering what 
>> there might be in ImproSculpt to cause this trouble. Steven Yi 
>> suggested that the FLTK updating may itself be a problem, but the 
>> other apps tested work fine. So I'm at an impasse and can use some 
>> suggestions for troubleshooting. Sorry to bother the developer's list 
>> but it seemed the better forum to ask in. Could Steven be right about 
>> the FLTK opcodes themselves causing the problem ? Would there be any 
>> advantage compiling Csound against a static libfltk ?
>>
>> Best,
>>
>> Dave Phillips
>>
>>
>
>

Date2004-02-16 16:24
FromDave Phillips
Subject[CSOUND-DEV:4064] Re: [linux-audio-user] noise problem with ImproSculpt: solved !
Extra note:

  I brought -B to 1024 and still had no noise problem with the mouse. I 
think the suid may have helped most. Also, I ran it with -b 1 and locked 
my machine. Not a good idea, I guess...

Best,

dp




Dave Phillips wrote:

> Greetings:
>
>  I finally resolved the mouse noise problem with ImproSculpt. Here's 
> what I did:
>
>    1. Made the csound binary suid root.
>    2. Erased the CsOptions for Linux in the ImproSculpt.csd file 
> (they're ignored when csound is suid root).
>    3. Ran the app so:
>
>        csound --sched -d -i devaudio -o devaudio -b 512 -B 4096 -m6 
> ImproSculpt.csd
>
>  Screen redraws are slower, but the mouse noise is gone. I'm still 
> confused as to why all this trouble just "suddenly" occurred, but I'm 
> glad to have discovered a solution. I also learned a lot about PCI 
> latency timing, graphics card priority, hard/software buffering, and 
> lots of other stuff that chewed up a bunch of my time.
>
>  Many thanks to all who responded to my dilemma, I appreciate all the 
> assistance and advice.
>
> Best regards,
>
> dp
>
>
>
> Gabriel Maldonado wrote:
>
>> Hi Dave,
>> It could depend on the massive CPU resources required by improsculpt, 
>> so any movement on the GUI can subtract processor time, causing 
>> drop-outs. Have you tried to increase the buffer size? However, try 
>> to ask Oeyvind if this could be a possible cause. Notice that in 
>> CsoundAV, there is still the original FLTK code, not that modified by 
>> Istvan. I still have to study Istvan code, to see if there are 
>> substantial differences, besides merging all code in a unique cpp file.
>>
>> Gabriel
>>
>>
>> Dave Phillips wrote:
>>
>>> Greetings:
>>>
>>>  I've been testing various CSD files to see and hear how the FLTK 
>>> opcodes are supported in the most recent canonical CVS sources. Many 
>>> files work fine (e.g., J. M. Comajuncosas' 303 emulator, his Synth 
>>> Toot, and his Direct Hammond2), but I'm having a problem with 
>>> Oeyvind Brandtsegg's ImproSculpt. When I move the mouse in this 
>>> program I hear a nasty ripping noise tracking the mouse movement. 
>>> Noise occurs when I change window focus or move a window. Note that 
>>> this noise does not occur with other FLTK-based apps, so I'm 
>>> wondering what there might be in ImproSculpt to cause this trouble. 
>>> Steven Yi suggested that the FLTK updating may itself be a problem, 
>>> but the other apps tested work fine. So I'm at an impasse and can 
>>> use some suggestions for troubleshooting. Sorry to bother the 
>>> developer's list but it seemed the better forum to ask in. Could 
>>> Steven be right about the FLTK opcodes themselves causing the 
>>> problem ? Would there be any advantage compiling Csound against a 
>>> static libfltk ?
>>>
>>> Best,
>>>
>>> Dave Phillips
>>>
>>>
>>
>>
>
>
>