Cubase sending random MIDI messages to Arduino Controller

Find topics on computers, studios and music-related hardware.
Post Reply
Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

Hi,

I've made my own DIY Arduino MIDI controller, which uses loopMidi to create a virtual MIDI port and hairless-MIDI to convert Serial to MIDI and back.

And I can control the DAW with my DIY controller, no problem (it's awesome ;) ). But I want Cubase to tell my Arduino when it's recording so my Arduino can turn on a red LED.

But Cubase just sends 127 and 0 randomly without me pressing the record button.
See image(screenshot) in the attachment for more details.

Have I set up the MIDI controller wrong in Cubase?
Attachments
Screenshot (13).png
(253.67 KiB) Not downloaded yet

-steve-
External Moderator
Posts: 9665
Joined: Wed Dec 15, 2010 7:42 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by -steve- »

The GR sends the midi message assigned to the button in the top pane when the command is activated in Cubase. It works here.

To troubleshoot this

- remove the Arduino device from the Generic Remote inputs and outputs and replace it with a midi monitor like the one in MIDI-OX. Assign only the output.
What does Cubase send to the monitor?

You say you're using LoopMidi? Rename the port so it corresponds to what's displayed in the GR for troubleshooting, so your report corresponds to your examples.
independent manufacturer rep (not a Steinberg employee)
[safe mode] [cubase manual] [score editor manual]

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

Right!

I've installed MIDI-OX and linked it to a loopMidi-Port which is also an output of a GR.

MIXI-OX displays (see image):
00 [= 0]
7F [=127 I think]
00
7F
...

So the problem hasn't got anything to do with hairless-midi or my Arduino. It can only be Cubase or loopMidi.

Just check the images to see whether I've done everything correctly

If you check out the second screenshot, you'll also see that my piano recording is full of some data, even though I didn't even touch my piano.
Attachments
Screenshot (16).png
(205.32 KiB) Not downloaded yet
Screenshot (15).png
(533.29 KiB) Not downloaded yet

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

Aha! Then that's the problem!

I turn my keyboard off (and disconnect the inputs for my piano track) and it works!!!

My keyboard must be sending something back to Cubase every time it sends data to my GR

How can I stop this?

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

I've had a look at the data in the piano recording

It's all modulation (cc1) if that helps

-steve-
External Moderator
Posts: 9665
Joined: Wed Dec 15, 2010 7:42 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by -steve- »

Here are some tips, hope they help.

You're programming an interface, for which you need good troubleshooting skills which mainly consist of removing elements one at a time until the problem goes away. Your goal here is to find the source of the midi messages. You will need to know the basic MIDI message types, what is a status byte etc.

Temporarily remove all MIDI devices that are connected to your system

Configure MIDI-OX to display decimal instead of hex so you can understand the output.

Know what ports are open in MIDI-OX.

Use only one tool to monitor the output of the GR. You have the midi track input assigned to All Midi, delete the MIDI track or do un-assign any inputs or outputs to the track.
independent manufacturer rep (not a Steinberg employee)
[safe mode] [cubase manual] [score editor manual]

-steve-
External Moderator
Posts: 9665
Joined: Wed Dec 15, 2010 7:42 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by -steve- »

Great! I was typing while you posted.

Your keyboard is broken, probably, as it''s sending mod wheel (cc1) messages on its own.
independent manufacturer rep (not a Steinberg employee)
[safe mode] [cubase manual] [score editor manual]

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

Oh Sorry! I was wrong! It still doesn't work, even without the keyboard and the piano track

-steve-
External Moderator
Posts: 9665
Joined: Wed Dec 15, 2010 7:42 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by -steve- »

Also, change the command the GR sends out to be a Note rather than controller, for good measure
independent manufacturer rep (not a Steinberg employee)
[safe mode] [cubase manual] [score editor manual]

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

Ok. Changing GR to be a note made no difference. Also if you check out the screenshot(taken while it was recording) and look at the bottom right, there's a constant midi input even though there are absolutely no midi inputs (all turn off in the midi settings and unplugged).
I'm still using loopMidi though. I don't see a way of connecting MIDI-OX to Cubase without it. I tried MIDI-Yoke by the same guys but it doesn't work on my PC (won't install). Because MIDI-OX doesn't act as a port, just as a monitor that reads data from a different port.
Attachments
Screenshot (18).png
(95.71 KiB) Not downloaded yet

-steve-
External Moderator
Posts: 9665
Joined: Wed Dec 15, 2010 7:42 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by -steve- »

If there is midi input, something is sending to Cubase.
independent manufacturer rep (not a Steinberg employee)
[safe mode] [cubase manual] [score editor manual]

guca02
Junior Member
Posts: 76
Joined: Sat Mar 29, 2014 1:53 pm
Contact:

Re: Cubase sending random MIDI messages to Arduino Controller

Post by guca02 »

Create two ports in loopMidi - one for Cubase => Arduino and the other for Arduino => Cubase and make the necessary changes in Midi out/in both in Cubase and in hairless-MIDI.

Using one port in loopMidi is like using one Midi cable to connect all Midi Ins/Outs - you short circuit the whole thing and create Midi loops.
Windows 10, Cubase 10.5. Ryzen Threadripper 3960x, 128 GB RAM, Asus Prime TRX-40 Pro
2 * Seagate FireCuda 2TB PCIe Gen4 (Raid 0), 2 * Dell P4317Q, RTX 2080 Ti
Audient iD22, Komplete Kontrol S88, S61 and S25, Røde NT2-A
Stream Deck. Developer of Cubase, Nuendo and MIDI plugins for Stream Deck.

Jacob Drew
New Member
Posts: 7
Joined: Mon May 18, 2020 2:36 pm

Re: Cubase sending random MIDI messages to Arduino Controller

Post by Jacob Drew »

THANKS!!!!!! It works! :D :lol:

Post Reply

Return to “Computer/Studio Hardware & Setup”

Who is online

Users browsing this forum: No registered users and 8 guests