Shop OBEX P1 Docs P2 Docs Learn Events
MIDI with multiple pots — Parallax Forums

MIDI with multiple pots

eyeball1eyeball1 Posts: 2
edited 2006-04-12 03:51 in BASIC Stamp
i'm new to this, but i've successfully set up a simple circuit that measures RC time from a potentiometer/capacitor and sends out corresponding MIDI controller data. i want to add potentiometers to the other 14 I/O pins as well, but so far this turns out to be extremely slow. seems like it has to cycle through each of the I/O pins and measure, which means that response time on any one knob is really REALLY lagging. no good for performance situations. is this just a limitation of the chip & BASIC, or is there some code out there that would drasticly improve my situation?

my code is a simplified version of this code:
http://www.interaccess.org/arg/arg-knowledge/MIDI.BS2

any help would be very much appreciated!
william

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-11 23:36
    RCTIME does in fact take... time. Would probably be better served using a couple 8-channel ADC chips, reading them with the Stamp, then sending the appropriate MIDI commands.

    SX info: http://www.parallax.com/sx/index.asp

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax

    Post Edited (Jon Williams (Parallax)) : 4/12/2006 1:33:23 AM GMT
  • eyeball1eyeball1 Posts: 2
    edited 2006-04-12 03:51
    thanks for the help. i guess there's no way to get around the pins being charged, discharged, and read sequentially? i was hoping that there might be a way to have all pins do the RC thing simultaneously...
Sign In or Register to comment.