Here's a version that works. The only thing missing was a pointer to the csound instance. Since your midiNoteInput() function was defined before csound is loaded, I used a dummy pointer (empty string), and then redefine this to point to csound once csound has loaded (and before any calls to midiNoteInput() of course. I don't know if the list handles attachments, so I send this to your adress as well. I figured it will not do any harm anyway, as the attachment is only 2kB. I did some minor edits to the csd to make it run and make audible sound here. You will probably want to use your own original csd. best Oeyvind 2008/5/6, Tim Mortimer : > > Different Day > > Different Approach > > Same Outcome > > http://www.nabble.com/file/p17071574/anothersimplecall.zip > anothersimplecall.zip > > I literally can't do anthing else until i can work out how to get MIDI > triggers from csound to call python methods to activate InputMessages() back > to the csound thread. > > What Oeyvind has been able to direct me to so far by way of example in > Improsculpt, i have been able to absorb & understand. > > Without mimicing the complete core infrastructure of ImproSculpt (something > i feel is probably excessive to my experimentally led development at this > stage), & in deference to the idea of creating a very simple example (in the > spirit of existing API.py examples) i really can only continue to make pleas > for assistance. > > the zips i have been sending links to contain on average probably 50 - 60 of > actual functional lines of code. > > I cannot make the problem any simpler. > > If someone can make the sequence of events run & work, with or without a wx > thread, that would be just freaking awesome. > > all one would need to do in the present example is replace the python "print > a" statement in the midiNoteInput() function with a InputMessage("blah blah > blah") statement > > But the CSD doesnt really seem to get up & running in this version.... > > > ----- > ******************* > www.phasetransitions.net > hermetic music * python * csound * possibly mindless ranting > various werk in perpetual delusions of progress.... > > -- > View this message in context: http://www.nabble.com/try-again-tp17044773p17071574.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >