# MIDI and Wire library project

**URL:** <https://forum.arduino.cc/t/midi-and-wire-library-project/37727>\
**Category:** Development\
**Created:** [July 7, 2010, 4:44am UTC](https://forum.arduino.cc/t/midi-and-wire-library-project/37727 "2010-07-07T04:44:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 7, 2010, 4:44am UTC](https://forum.arduino.cc/t/midi-and-wire-library-project/37727/1 "2010-07-07T04:44:45Z")

</div>

Hello, first time poster but long term lurker here.

I want to create a MIDI to CV project with Arduino.

My question is about using libraries for two different baud serial protocols on the same Arduino.

I want to interpret incoming MIDI (using the MIDI 2.5 library) and then control a MCP4725 DAC (serial I2C via Wire library). Can I set one baud for the digital ins (for MIDI) and another for the Analog inputs (used by the Wire library)? Is it possible to run two different bauds at the same time?

Or will I need to

1. monitor MIDI at appropriate baud
2. on receipt of MIDI, change baud to control the DAC
3. switch baud again for monitoring MIDI  
etc?

Sorry if this is a stupid question.

cheers, Howard

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 7, 2010, 9:45am UTC](https://forum.arduino.cc/t/midi-and-wire-library-project/37727/2 "2010-07-07T09:45:25Z")

</div>

The baud rate simply defines the spacing between bits sent/received by a port. Since there are different libraries being used to handle the different ports, there is no conflict with using different baud rates on different ports.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 7, 2010, 11:11am UTC](https://forum.arduino.cc/t/midi-and-wire-library-project/37727/3 "2010-07-07T11:11:44Z")

</div>

Thank you very much Paul.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 7:53pm UTC](https://forum.arduino.cc/t/midi-and-wire-library-project/37727/4 "2021-05-06T19:53:33Z")

</div>

Closed on May 6, 2021, 7:53pm UTC


