From: The D. <the...@bl...> - 2005-07-20 14:54:54
|
Thankyou. :) Sorry I didn't say something earlier, been a lot going on these past two days. That example you gave me will do well, I'll get something working from that. The reason I didn't give a framework for code to be added to is that I don't often know what will be possible, as my question this time suggests. I might think of two or three ideas and will usually only ask when something looks highly desirable and equally out of reach somehow. Also, I have no idea what supporting structure will be useful to you to get added to, as I don't know what will work, or I wouldn't be asking... and I could not offer anything that wasn't better provided by the examples that I got with wxLua. WHile I could give the precise content of my effort, that would be full of things you might not want to wade through, and if I later change my ideas based on your response, there's a likely chance I'd have wasted both of our time. :) I decided the best thing was to keep my question very simple and direct, and to trust you to know a working context that I could adapt once I saw it work, as will be possible with what you did for me here. In other words, for a framework for adding an example, the easiest way that might help others as well as me might be to reach for whichever exiisting wxLua example is currently supplied with the distribution, and work it into that. This would be useful to others cos they can easily compare the old and new version of the example, and wouldn't have to wade through the specific details of my (probably very eccentric) code. Which is about ready for release, btw. What essentials remain are probably minor and easy to do, the extra delay was in handling the voice bank files, as I needed to integrate that into the existing stuff, and it wasn't as easy as I thought it might be. I rework a lot of stuff the more I learn, and the bigger a thing gets, the harder that is. It makes better modules though, so I'll try to write more once I do some other project for a while when this is done. I'm really hoping for wxLua to have libraries written so MIDI and audio signals can be handled. Audio is useful for things like high-speed dataloggers and analog control inputs with high resolution, as well as audio itself. A sound card is a VERY useful I/O for stuff, if you remove the DC blocking capacitors. >:) That and MIDI will allow me to write some wxLua things that might get some strong interest in it, and encourage people to use it to test ideas for processing this kind of input, and customising other systems for music and laser work, and machine control. I can't write those libraries, I don't know C and like many, will be very keen (and grateful) to be able to focus on the things we need to model, without having to spend years doing something that isn't really where we want to go. My next task is to make a pitch to voltage converter, with high accuracy. If I could do this in digital domain, it will be so much better and more versatile than the anaolg circuit I'm going to have to learn to make.. /end ramble, just trying to keep the idea alive. :) PS. I did what you suggested, removed that SetEventHandler() stuff. I just bundled the individual handler code into a for loop. Can't help thinking though, that this might still fill up a load of RAM with dupes that might better be avoided with a bit of event propagation the user can control. |