Csound Csound-dev Csound-tekno Search About

[Csnd] FLbutton

Date2008-05-18 16:41
FromLuís Antunes Pena
Subject[Csnd] FLbutton
The FLbutton opcode seams not to work correctely. I supose when one presses the button it should change the output to ion and return to ioff after leaving the button. Type "1" changes only once from ioff to ion. Is this the expected behavior?  Type "2" changes the output correctly to ioff after pressing the button again. I attached a simple example to demonstrate this.

(running Csound 5.08 - Intel)

Thanks,

Luis



<CsoundSynthesizer>
;flags
<CsOptions>
</CsOptions>

;orchestra
<CsInstruments>
  sr        =  44100
  ksmps        =  10
  nchnls    =  2


  ix_panel  =  100  
  iy_panel  =  100  

        FLpanel   "bang", ix_panel , iy_panel, 250, 200


  ion        =  1 
  ioff        =  0
  itype        =  1
  iwidth    =  50
  iheight   =  50
  ix        =  5
  iy        =  5
  iopcode   =  -1            ; deactivate opcode option
 
  gkbutton, gibutton_h    FLbutton          "bang", ion, ioff, itype, iwidth, iheight, ix, iy, iopcode


           FLpanelEnd 
        FLrun    

    instr 1

        printk2 gkbutton  
 
    endin

</CsInstruments>
   
;score
<CsScore>
i1  0  6000
e

</CsScore>
   
</CsoundSynthesizer>


_________
http://icem.folkwang-hochschule.de/~pena



Gesendet von Yahoo! Mail.
Dem pfiffigeren Posteingang.

Date2008-05-19 03:05
From"Andres Cabrera"
Subject[Csnd] Re: FLbutton
AttachmentsNone  None