This thread started towards the end here:
http://www.midibox.org/cgi-bin/yabb/YaBB.cgi?board=troubleshooting;action=display;num=1088260784
Short recap:
The standard MIDIO128 can have 128 inputs but there is no provision for an analog input which maybe needed in organ applications for controlling the volume. Thorsten had the solution, of course. I first hesitated to add some code since the MIOS looked awfully complicated but Thorsten served the solution on a silver platter so I had a go at it. To my surprise it was quite easy to include the “analog in†function even for a non programmer like me.
The hardware was a pot which was wired directly to pin RA0 of the PIC, no AIN module necessary.
Thanks Thorsten, great stuff this MIOS!
Jim Henry wrote:
Another approach would be to use switch contacts of the type used to control swell shades. That will probably give you about a dozen inputs which will reduce the flood of MIDI commands. I reduce expression input to a dozen steps in the Miditzer to mimic swell shades. Recently I noticed that some sounds don’t seem to react well to that. I realized that while swell shades have discrete steps, they also have considerable inertia so they are more continuous in effect than the 12 step switch input would suggest. So perhaps you need that flood of commands. Are you sure it will be a problem?
If you decide it is a problem, you might be able to reduce the range produced by the analog input. For example, instead of 0-127 use 0-12 and then make whatever receives the expression input more sensitive. Of course, you don’t really want to go to 0 for expression because no organ can be turned off by expression control.
I don’t know if the flood of commands will be a problem, future will tell. I have the feeling though that we don’t need the resolution of one. Maybe sending only every 5.
I think that we might need “somethingâ€-127. This is also depending on the type of virtual organ used. I don’t have Hauptwerk up and running just now, but I have the impression that the MIDI volume control represents the swell shoe position rather than the volume directly. This makes a setting of 0 valid.
Anyway, in the MIOS analog handling there is a parameter called “deadband†and is defined as:
DESCRIPTION: sets the difference between last and current pot value
which has to be achieved to trigger the "NotifyChange" function
This looks promising and I will look into that later. Now I will be off for a week.
Per S