I think idem for `csoundDummyModules'. The example becomes #include { void *csound = csoundCreate(0); int result; csoundCompileOrc(csound, "sr = 44100\n" "ksmps = 64\n" "nchnls = 1\n" "instr 1\n" "aout oscil 10000, 440, 1\n" "out aout\n" "endin\n"); csoundReadScore(csound, "f1 0 8192 10 1\n" "i1 0 1\n" "e\n"); result = csoundDummyMusmon(csound); if(!result) while(csoundPerformKsmps(csound) == 0){} csoundDestroy(csound); return result; } A note about `csoundReset': it is called by `csoundDestroy', therefore csoundReset func: -> csoundReset0 (dummy name) -> csoundPreCompile csoundDestroy func: -> csoundReset0 -> the rest of the code `csoundParseTree' and `csoundCompileTree' are more useful in specific cases. tito On Thu, Apr 26, 2012 at 05:01:11PM +0100, Victor Lazzarini wrote: > yes, we just have to make sure callbacks can be set up after csoundCreate() > > On 26 Apr 2012, at 13:18, Tito Latini wrote: > > > Another possibility is `csoundPreCompile' not PUBLIC and > > to call it in `csoundCreate' and `csoundReset'. > > > > tito > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________ > > Csound-devel mailing list > > Csound-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/csound-devel > > Dr Victor Lazzarini > Senior Lecturer > Dept. of Music > NUI Maynooth Ireland > tel.: +353 1 708 3545 > Victor dot Lazzarini AT nuim dot ie > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net