Shop OBEX P1 Docs P2 Docs Learn Events
midi note info from a Parallax Basic Stamp 2 — Parallax Forums

midi note info from a Parallax Basic Stamp 2

ArchiverArchiver Posts: 46,084
edited 2002-04-18 11:49 in General Discussion
Dear Group,

My desperate need for a control voltage to midi note on/off converter
has brought me to this forum.

What I need is a means for converting +1 - +5 volts into midi note
on/off messages via a single source switch.

Can this be done with this device?

Thanks in advance,

Bill Guess
Baton Rouge, La
guess@a...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-04-18 11:49
    Well, it depends on how fast (how many times a second) you need it to go.

    You could use a Dallas Semiconductor Analog to Digital Converter chip such
    as the DS2480s.
    Reference www.maxim-ic.com and go to their 1 wire section. The ADC maybe is
    overkill, but fairly easy to use and only uses one I/O pin on the Stamp.
    The Stamp MCU would use the ADC to read the voltage level to get a value
    reference to it.
    Then the Stamp can convert it into a value that could be outputted to
    something. I forget
    what midi would want at the moment.
    But if you are only looking for two different voltages, you could use a
    LM311 or 339 comparator to convert the level into 1's and 0's for the Stamp
    chip. A resistor network might work as well too.

    If it has to do this thousands of times a second, you'll have to use a fast
    ADC and a MCU that you program in it's machine language to perform the input
    conversion to output conversion.

    If it's even faster, you'd have to use a DSP (Digital signal processor)
    designed for the high speed.

    Original Message
    From: jacksonknobs [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ASNek5vvhTpUe5o7drGOXK6PNjx0Hf5zIJinmyBBIOTIFJahCpxTHwY2dmZoD2OGaUNG]guess@a...[/url
    Sent: Wednesday, April 17, 2002 11:23 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] midi note info from a Parallax Basic Stamp 2


    Dear Group,

    My desperate need for a control voltage to midi note on/off converter
    has brought me to this forum.

    What I need is a means for converting +1 - +5 volts into midi note
    on/off messages via a single source switch.

    Can this be done with this device?

    Thanks in advance,

    Bill Guess
    Baton Rouge, La
    guess@a...


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.