# Problem with actve MIDI channel \[SOLVED!\]

**URL:** <https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217>\
**Category:** Using Zynthian\
**Tags:** issue\
**Created:** [October 1, 2024, 10:02pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217 "2024-10-01T22:02:43Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 2, 2024, 11:46am UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/21 "2024-10-02T11:46:17Z")

</div>

@ltignis it sounds like you don’t have Multitimbral selected for your MIDI input.

---

<div class="post-metadata">

**Author:** ![ltignis](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/l/a5b964/32.png) [@ltignis](https://discourse.zynthian.org/u/ltignis)\
**Post date:** [October 2, 2024, 11:48am UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/22 "2024-10-02T11:48:52Z")

</div>

ohhhh found it! thanks a lot for the help!

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 2, 2024, 11:57am UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/23 "2024-10-02T11:57:38Z")

</div>

Please post a snapshot.

---

<div class="post-metadata">

**Author:** ![ltignis](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/l/a5b964/32.png) [@ltignis](https://discourse.zynthian.org/u/ltignis)\
**Post date:** [October 2, 2024, 11:58am UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/24 "2024-10-02T11:58:42Z")

</div>

found it, still trying to get used to new user interface and controls of this device

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 10:38am UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/25 "2024-10-03T10:38:39Z")

</div>

Hello .

I have now integrated my Zynthian in the studio and control it via the Akai Force. I wrote above that there is no error in connection with the Force. It does with the Deluge.  
Unfortunately this is not correct, even with the Akai Force this behaviour occurs as soon as I add a third midi track with the Linux sampler (drumkit). In addition, there are note hangs, which leads me to believe that Note Off messages are also ignored.

Everything is fine via USB Midi.  
Somewhere in the Din Midi in and the  
assignment of the midi tracks in multimode something is wrong.  
It is now the second sequencer (Akai Force) that shows the same behaviour.

I have tried the Deluge on the Blofeld = multimode and on the Access Virus = multimode and there were no problems.

Greetings Ron

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 1:43pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/26 "2024-10-03T13:43:03Z")

</div>

> [@highsiderr](#):
>
> Unfortunately this is not correct, even with the Akai Force this behaviour occurs as soon as I add a third midi track with the Linux sampler (drumkit). In addition, there are note hangs, which leads me to believe that Note Off messages are also ignored.

Then, it could be an issue with the mod-ttymidi service. Do you know if the sequencers you tested with are using “MIDI running status”? If so, perhaps it could be disabled just to check?

Regards,

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 2:44pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/27 "2024-10-03T14:44:03Z")

</div>

> [@jofemodo](#):
>
> “MIDI running status”

I am happy to test this, but what is meant by ‘MIDI running status’?

Midi Clock ?

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 5:34pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/28 "2024-10-03T17:34:35Z")

</div>

It’s part of MIDI specification, although i think it was not a core feature from the very beginning:

[http://midi.teragonaudio.com/tech/midispec/run.htm](http://midi.teragonaudio.com/tech/midispec/run.htm)

Devices using it, normally explain about it somewhere in their manuals. And some/most devices allow disabling it.

Regards,

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 3, 2024, 5:38pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/29 "2024-10-03T17:38:51Z")

</div>

I think running status has always been in MIDI 1.0. The purpose is to reduce the data flow by removing the command byte for consecutive, similar messages. This improved latency and data rate. Basically, if a command is the same type as the previous command, e.g. NOTE-ON then the command byte is not sent. The receiver remembers the last command and assumes the data payload relates to it.

It may be useful to capture some MIDI that causes this issue so that we can reproduce it. I wonder if you have a mechanism for capturing the MIDI, e.g. recording it to a standard MIDI file (.mid)?

If I get a chance, I will try to reproduce but am rather busy this week.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 5:48pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/30 "2024-10-03T17:48:52Z")

</div>

But i fear the issue is inside mod-ttymidi. Look at the logs sent by @highsiderr:

![](https://discourse.zynthian.org/uploads/default/original/2X/0/0b73f298dc026956c3874b602ec392402bbfe4c8.png)  
This is the raw MIDI stream coming out the mod-ttymidi and as you can see, there is no “note-on” messages in MIDI channel 3. Just “note-off” messages in this channel.

This is the data flow:

```auto

sequencer -> MIDI cable ->
-> MIDI IN circuit (opto-coupler) -> RBPi serial port -> 
-> kernel driver -> mod-ttymidi -> zynthian router

```

From my POV, the issue is too reproducible to be a hardware issue. It smells like a software issue and MIDI-protocol related. IMHO mod-ttymidi is the shady guy.

Regards,

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [October 3, 2024, 5:50pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/31 "2024-10-03T17:50:31Z")

</div>

Which is why it would be advantageous to have the raw MIDI stream so that we can play it in and debug.

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 5:50pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/32 "2024-10-03T17:50:42Z")

</div>

No stress, I am now using USB Midi for the time being.

There are certainly more important things to do than to find this error here.

As you have built the Zynthian very well there is no noise in the audio when using USB.

By the way, all my synths hum when I use usb midi but not the Zynthian.  
Very good work.

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 5:58pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/33 "2024-10-03T17:58:36Z")

</div>

If I can find out how I can record and send the midi stream.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 6:09pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/34 "2024-10-03T18:09:33Z")

</div>

This is an important issue. If the MIDI-IN port is flawed in such a way, we should solve it ASAP.

The curious is that mod-ttymidi is a very stable piece of software. It has not been updated in the last 4 years, so if there is a bug, it’s there from a long time ago and nobody noted until now.

@highsiderr, I will send you a script to get debug logs from ttymidi, OK?

Regards

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 6:39pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/35 "2024-10-03T18:39:06Z")

</div>

With pleasure.

Please send me instructions on what to do.  
I hope it’s not due to my setup after all.  
The Deluge was connected directly to the Zynthian.

Maybe there is someone here in the forum who has an Akai Force or MPC live.  
He could load my snapshot, set up the midi channels in the Force/MPC and see if he has similar errors.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 6:44pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/36 "2024-10-03T18:44:09Z")

</div>

First, please could you try different combinations of channels? For instance if you put the linuxsampler in channel 4 or 5, is it the same? What if you use another synth instead of linuxsampler? Etc.

---

<div class="post-metadata">

**Author:** ![jofemodo](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/jofemodo/32/2_2.png) [@jofemodo](https://discourse.zynthian.org/u/jofemodo)\
**Post date:** [October 3, 2024, 6:55pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/37 "2024-10-03T18:55:07Z")

</div>

To get useful debug output from ttymidi, you have to follow these exact steps:

```auto
cd /zynthian/zynthian-sw
git clone https://github.com/moddevices/mod-ttymidi.git
cd mod-tty-midi
make debug

```

Now you have a debug version of ttymidi. Let’s start the debug session:

```auto
systemctl stop mod-ttymidi
cd /zynthian/zynthian-sw/mod-ttymidi

```

1. Connect the sequencer to zynthian MIDI-IN. You must have prepared the sequence that produce the error, but keep it stopped.
2. Run this command:

` ./ttymidi -p -s /dev/ttyAMA0 -b 38400`

1. Play the sequence that cause the error. Just one loop if possible. Not less.
2. Copy-paste the output. This is the raw serial port data input. Ctrl-C to end.
3. Run this command:

` ./ttymidi -v -s /dev/ttyAMA0 -b 38400`

1. Play the sequence that cause the error. Just one loop if possible. Not less.
2. Copy-paste the output. This is the processed MIDI stream. . Ctrl-C to end.

Send both logs and let’s see if ttymidi if something is lost in translation.

You can restore normal zynthian behavior:

`systemctl start mod-ttymidi`

Thanks a lot for helping with this!!

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 7:01pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/38 "2024-10-03T19:01:07Z")

</div>

just connected the Force directly to the Zynthian again, so no other synths in between.  
The same as described above .

Linux sampler (Drumkit) replaced by FluidSampler (Drumkit) .  
The track with the pad disappears see video.  
Loaded other plug-ins and the same thing happens.

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 7:15pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/39 "2024-10-03T19:15:05Z")

</div>

After make debug stop this…

root@zynthian:/zynthian/zynthian-sw# make debug  
make: \*\*\* No rule to make target ‘debug’. Stop.

root@zynthian:/zynthian/zynthian-sw/mod-ttymidi# ./ttymidi -p -s /dev/ttyAMA0 -b  
38400  
bash: ./ttymidi: No such file or directory

---

<div class="post-metadata">

**Author:** ![highsiderr](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/highsiderr/32/12678_2.png) [@highsiderr](https://discourse.zynthian.org/u/highsiderr)\
**Post date:** [October 3, 2024, 7:29pm UTC](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217/40 "2024-10-03T19:29:04Z")

</div>

Got it working make debug had to be executed in the folder .

here are the two streams as .txt files.  
[midi2.txt](https://discourse.zynthian.org/uploads/short-url/r8D1KUsZV9yjX9LaYEtfXUkce4n.txt) (1.9 KB)  
[midi1.txt](https://discourse.zynthian.org/uploads/short-url/tQsWDScDEfVxayMOv1HQQnxGyn4.txt) (2.0 KB)  
[003-midi fai;.zss](https://discourse.zynthian.org/uploads/short-url/zIq0PFgD3UY0rGyNk5t35w5vjfA.zss) (31.5 KB)

[Previous page](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217.md?page=1)

[Next page](https://discourse.zynthian.org/t/problem-with-actve-midi-channel-solved/10217.md?page=3)
