# ORCA & MIDI on DevTerm

**URL:** https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616
**Category:** DevTerm
**Created:** [December 10, 2021, 9:06am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616 "2021-12-10T09:06:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ntrolls](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ntrolls/32/5570_2.png) [@ntrolls](https://forum.clockworkpi.com/u/ntrolls)
#### Post date: [December 10, 2021, 9:06am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/1 "2021-12-10T09:06:58Z")

</div>

I’ve successfully built the terminal version of Orca ([~rabbits/orca - sourcehut git](https://git.sr.ht/~rabbits/orca)). I’ve tried to pair it with Pilot, and could not get any sound out of it despite seeing OSC signals being passed from Orca to Pilot ([GitHub - hundredrabbits/Pilot: Orca's best friend.](https://github.com/hundredrabbits/Pilot)) - I could see Pilot reacting to the signals, but no sound ☹

I also realised that I know literally nothing about how MIDI is supposed to work on Linux. I’ve tried to setup and use a couple of rtpmidi daemons to no avail.

Suppose I want to use DevTerm to run Orca to drive synths on other devices, either over network or USB… what would be the approach?

---

<div class="post-metadata">

### Author: ![omgmog](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/omgmog/32/3553_2.png) [@omgmog](https://forum.clockworkpi.com/u/omgmog)
#### Post date: [December 10, 2021, 10:00am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/2 "2021-12-10T10:00:18Z")

</div>

If you’re just wanting to test that ORCA is working (or you don’t own any external MIDI devices), you could install and use [FluidSynth](http://www.fluidsynth.org/)

```auto
# install the fluidsynth midi synthesizer
# this should also install the fluidsynth-soundfont-gm package too
sudo apt install fluidsynth

# start fluidsynth, using the soundfont that installed with it:
fluidsynth --audio-driver=alsa /usr/share/sounds/sf2/FluidR3_GM.sf2

```

If you want to launch FluidSynth in the background you can use the `-i` flag.

Next you need to start ORCA and set it to output to the fluidsynth MIDI output device:

1. Press Ctrl+D in ORCA to bring up the menu
2. Go to “Midi Output”
3. Select “Synth input port (xxxx:0)”

Channels 0-8 should be piano, and 9 is a drum kit.

That’s the setup I use with ORCA on my Pocket CHIP anyway, it should work here too!

---

<div class="post-metadata">

### Author: ![ntrolls](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ntrolls/32/5570_2.png) [@ntrolls](https://forum.clockworkpi.com/u/ntrolls)
#### Post date: [December 11, 2021, 9:47am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/3 "2021-12-11T09:47:56Z")

</div>

@omgmog Thanks! I’ve managed to install FluidSynth and send midi signals from orca to FluidSynth, but so far it is not making sounds. I can see the noteons and noteoffs, so it must be my audio setting. Tried all audio driver configurations (“alsa”, “pulseaudio”, “sdl2” among other things") but no luck.

---

<div class="post-metadata">

### Author: ![ntrolls](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ntrolls/32/5570_2.png) [@ntrolls](https://forum.clockworkpi.com/u/ntrolls)
#### Post date: [December 11, 2021, 9:58am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/4 "2021-12-11T09:58:15Z")

</div>

Okay, realized that `speaker-test` does not produce any sound either. Funny, I can play games with sounds… back to debugging this!

---

<div class="post-metadata">

### Author: ![ntrolls](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ntrolls/32/5570_2.png) [@ntrolls](https://forum.clockworkpi.com/u/ntrolls)
#### Post date: [December 11, 2021, 10:09am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/5 "2021-12-11T10:09:50Z")

</div>

I was missing `/etc/asound.conf’ entirely. Created the following and I got sound 🙂

```auto
pcm.!default {
    type hw
    card 0
    device 0
}

ctl.!default {
    type hw
    card 0
}

```

---

<div class="post-metadata">

### Author: ![ntrolls](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ntrolls/32/5570_2.png) [@ntrolls](https://forum.clockworkpi.com/u/ntrolls)
#### Post date: [March 21, 2022, 9:50am UTC](https://forum.clockworkpi.com/t/orca-midi-on-devterm/7616/6 "2022-03-21T09:50:06Z")

</div>

I came back to this after some time, and made a bit more progress: DevTerm can send MIDI over wifi, using rptmidi, to Apple devices (rtpmidi being an Apple protocol, that is). All you need is `avahi-daemon` (for mDNS resolution):

```auto
sudo apt install avahi-daemon
systemscl restart avahi-daemon

```

and the rtpmidi daemon, for which I am running the wonderful implementation from [GitHub - davidmoreno/rtpmidid: RTP MIDI (AppleMIDI) daemon for Linux](https://github.com/davidmoreno/rtpmidid). Once you build it, run the `rtpmidid` - once the rtpmidi daemon is running, start your Orca and you will see any rtpmidi devices that the daemon has picked up via mDNS. Choose the device to send MIDI there.
