# Baked in support for midi-in, audio-in and audio devices/channels?

**URL:** <https://uzu.lurk.org/t/baked-in-support-for-midi-in-audio-in-and-audio-devices-channels/5098>\
**Category:** Strudel\
**Tags:** questions\
**Created:** [4 March 2024 09:53 UTC](https://uzu.lurk.org/t/baked-in-support-for-midi-in-audio-in-and-audio-devices-channels/5098 "2024-03-04T09:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![froos](https://uzu.lurk.org/user_avatar/uzu.lurk.org/froos/32/3517_2.png) [@froos](https://uzu.lurk.org/u/froos)\
**Post date:** [7 March 2024 20:00 UTC](https://uzu.lurk.org/t/baked-in-support-for-midi-in-audio-in-and-audio-devices-channels/5098/4 "2024-03-07T20:00:00Z")

</div>

> [@karollibardi](#):
>
> Ability to easily use midi inputs to play live music

> [@karollibardi](#):
>
> How to approach coding this? Should I push for merging it into Strudel core? Should I build it as an esm "plugin", so that you import it and do something like "initMidiIn" or "initAudioIn" (similar to `initHydra`).

for midi, there is already the [midi package](https://github.com/tidalcycles/strudel/tree/main/packages/midi) which also already has a [midin function](https://github.com/tidalcycles/strudel/blob/main/packages/midi/midi.mjs#L169) that currently only supports cc in. It is not yet documented, but you can find out more in [the PR](https://github.com/tidalcycles/strudel/pull/699). Note in would be a good addition to it. There is also [this issue for midi input](https://github.com/tidalcycles/strudel/issues/533), maybe we can talk about the details there (or preferably on the discord?).

Audio input is also very desirable for me, for which there is is [this issue](https://github.com/tidalcycles/strudel/pull/699https://github.com/tidalcycles/strudel/issues/610). I think there are 2 stages for audio input: 1. record samples into the sounds tab 2. record samples from code and loop them instantly (like tidal-looper).

---

_[View the full topic](https://uzu.lurk.org/t/baked-in-support-for-midi-in-audio-in-and-audio-devices-channels/5098)._
