Like Steven I find the out-of-order UDO section confusing. Options: 1: what I have -- automatic including of a directory 2: new directive #includeUDOs to do same as 1 but in a controlled place 3: As we have now with user explicit #include; equivalent to when I taught C I tod them to incant #include as the first line -- and explained it much later when we had function, protocols and the preprocessor 4: Add section and write a lot of code. Then equivalent of 1 or 2 is possible (and will this section only allow UDOs? That makes it harder as well. 5: Whatever I missed. Naturally I have a liking for 1 as that means no work! Actually I think 2 is the best, but whatever.... ==John ff Quoting Rory Walsh : > Thanks for your feedback Steven. I can see your point about the order > of processing. I guess it could lead to some confusion. However, I'd > rather not have to teach project management to my first year students > who have zero experience with programming :) I'd love to use UDOs more > in my teaching, but without #includes they bloat orchestra sections to > the extent that it's often hard to find instrument definitions. How > about something like this which makes it explicit that we are > inserting code from another section of the Csd file: > > > > using CsUDO > > instr 1 > a1 Oscil 1, 200 > out a1 > endin > > > > i1 0 10 > > > opcode Oscil, a, kk > kamp, kcps xin > a1 vco2 kamp, kcps > xout a1 > endop > > > > I'm not sure about the word 'using', as you might already have ideas > for that keyword with regards to future developments, but 'import', > 'expand', or 'inline' might do just a well. Do you still see too many > issues with the above solution? > ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net