Yes, I've also noticed this flaky behaviour. I usually write it like this (bypassing the button's internal instr event trigger) kOn, gihOn FLbutton "On", 1, 0, 2, 90, 20, iButn1PosX, iButn1PosY, -105, 0 ktrigOn trigger kOn, 0.5, 0 schedkwhen ktrigOn, 0, 0, 103, 0, -1 ; activate instr 3 ktrigOff trigger kOn, 0.5, 1 schedkwhen ktrigOff, 0, 0, -103, 0, 1 ; turnoff instr 3 best Oeyvind 2007/11/12, joakim@verona.se : > I want to make some simple instruments that are controllable with both > midi and fltk widgets. > > I hade some sucess with sliders being controllable with midi, but > having unexpected difficulty with buttons. > > Is simply want to press a fltk button, and trigger an instrument. When > I uncheck the button, the instrument should end, just like when > pressing a midi keyboard note. > > The manual page for FLbutton seems to suggest that the instrument is > triggered when the button is checked but not when it is unchecked. I > get the behaviour that the instrument is triggered both when I check > and uncheck a button. > > -- > Joakim Verona > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >