It would probably be a bad idea indeed, and also, take care that you do not instantiate the instr contining fltk widgets more than once, that is a bad idea too. If you use midi, and you put the fltk code in instr 1, this could happen quite easily when receiving a note on midi channel 1 (very likely). Use massign ot avoid this. All in all, use with care ;-) best Oeyvind 2008/10/30 Joseph Sanger : > Hi there Oeyvind, > > Thank you - that's really useful to know. > > I presume it would be a bad idea to have two separate instruments each > containing separate FLTK code? Would there be some conflict, e.g. using > commands like "FLrun" twice? > > Of course I'll find the time to try this soon, but I'm at work now and > unfortunately my job doesn't involve Csound programming... Yet... > > Joe > > Oeyvind Brandtsegg wrote: >> >> You can also define a lot of the global statements inside an instrument. >> I think most things, except sr, kr, ksmps, nchnls, and 0dbfs could be >> put anywhere, >> and I routinely put all FLTK code inside an instrument and keep that >> instrument "always on". >> Oeyvind >> >> 2008/10/30 Joseph Sanger : >>> >>> Hi there list, >>> >>> I was wondering... Does orchestra header code have to appear BEFORE the >>> instruments, or is it OK provided it appears outside an instrument block? >>> (e.g. between instrument blocks or after). >>> >>> I'm working on something that compiles a csound orchestra from a set of >>> macros, and I was thinking of something like an FLTK instrument, where it >>> would be handy if the header code could appear next to the instrument >>> code, >>> but perhaps after other instrument blocks. >>> >>> It's probably only slightly more complicated to work around it if not, >>> but I >>> couldn't find an answer in the manual. >>> >>> Many thanks, >>> >>> Joe >>> >>> -- >>> Joseph Sanger >>> >>> Blueberry Eikaiwa >>> www.bbeikaiwa.com >>> joe@bbeikaiwa.com >>> >>> >>> Send bugs reports to this list. >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >>> csound" >>> >> >> >> Send bugs reports to this list. >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe >> csound" >> >> > > -- > Joseph Sanger > > Blueberry Eikaiwa > www.bbeikaiwa.com > joe@bbeikaiwa.com > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" >