# Live Input from Multiple Computers?

**URL:** <https://discourse.processing.org/t/live-input-from-multiple-computers/24110>\
**Category:** Libraries\
**Created:** [September 25, 2020, 2:30am UTC](https://discourse.processing.org/t/live-input-from-multiple-computers/24110 "2020-09-25T02:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alsumwas](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@alsumwas](https://discourse.processing.org/u/alsumwas)\
**Post date:** [September 25, 2020, 2:30am UTC](https://discourse.processing.org/t/live-input-from-multiple-computers/24110/1 "2020-09-25T02:30:16Z")

</div>

I am wondering if it is possible to have mic input from multiple users at the same time? Also is there an official name for the thing that I am trying to do?

Here is a little sketch that I made from some examples on the p5.js website and a little of my own code to make the ball more responsive:

function setup(){  
let cnv = createCanvas(600, 300);  
cnv.mousePressed(userStartAudio);  
mic = new p5.AudioIn();  
mic.start();  
}

function draw(){  
background(70, 80, 20);  
fill(255);  
text(‘tap to start’, 10, 20);

micLevel = mic.getLevel();  
let y = height - 20 \* micLevel \* height;  
ellipse(width/2, y-19, 40, 40);  
}

---

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [September 26, 2020, 8:02am UTC](https://discourse.processing.org/t/live-input-from-multiple-computers/24110/2 "2020-09-26T08:02:30Z")

</div>

> [@alsumwas](#):
>
> I am wondering if it is possible to have mic input from multiple users at the same time?

Sure, and there are multiple ways to skin the cat. One possible solution is [WebRTC (Web Real Time Communication)](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API). I’m not sure that there’s a quick and beginner-friendly option out there, though.

> [@alsumwas](#):
>
> Also is there an official name for the thing that I am trying to do?

Are you referring to the live-input-from-multiple-computers-thing? If so, _real-time_ and _peer-to-peer_ (combined with _audio_, _p5.js_, and _javascript_) may turn up interesting results on your favorite search engine.

---

<div class="post-metadata">

**Author:** ![vanevery](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vanevery](https://discourse.processing.org/u/vanevery)\
**Post date:** [December 1, 2020, 3:23am UTC](https://discourse.processing.org/t/live-input-from-multiple-computers/24110/3 "2020-12-01T03:23:16Z")

</div>

This would probably help:

> **[vanevery/p5LiveMedia](https://github.com/vanevery/p5LiveMedia)**
>
> Simple P5 WebRTC. Contribute to vanevery/p5LiveMedia development by creating an account on GitHub.
