2022 our 25th year online!

Welcome to the Piano World Piano Forums
Over 3 million posts about pianos, digital pianos, and all types of keyboard instruments.
Over 100,000 members from around the world.
Join the World's Largest Community of Piano Lovers (it's free)
It's Fun to Play the Piano ... Please Pass It On!

SEARCH
Piano Forums & Piano World
(ad)
Who's Online Now
61 members (anotherscott, Bellyman, brennbaer, busa, Barly, 1957, btcomm, 11 invisible), 2,007 guests, and 345 robots.
Key: Admin, Global Mod, Mod
Previous Thread
Next Thread
Print Thread
Hop To
Page 1 of 2 1 2
Joined: Oct 2020
Posts: 5
D
Deep21 Offline OP
Junior Member
OP Offline
Junior Member
D
Joined: Oct 2020
Posts: 5
Hello guys
I have a question...
Is it posiible to Use USB TO HOST and Classical 5 pin midi in out simultaneously in my Yamaha CP4 ?

I have a project to illuminated LEDs for keys controlled by Rapberry Pi. Rapberry Pi have a program for writing midi in it.
I connect Classical 5 pin midi to my computer to play VST sound and USB TO HOST is connected to my Raspberry Pi to to control my led strip.
When I Connect my piano through Classical 5 pin midi cable to computer everything is working good but when i I turn on the raspberry connected to my Piano with USB to Host cable I lost mIDI connection to Computer.

Is there a way to use my VST sound during recording Midi to my Rasperry ?

Best regards
Jacob

Joined: Feb 2010
Posts: 6,730
A
6000 Post Club Member
Online Content
6000 Post Club Member
A
Joined: Feb 2010
Posts: 6,730
Originally Posted by Deep21
Is it posiible to Use USB TO HOST and Classical 5 pin midi in out simultaneously in my Yamaha CP4 ?

No. Some instruments permit this, but usually not Yamahas. From the CP4 manual:

Quote
it is not possible to exchange MIDI messages via the MIDI terminals and the TO HOST USB terminal at the same time. You will need to select which interface to use for this purpose on the MIDI screen from the Utility area.

Joined: Jul 2019
Posts: 129
H
hes Offline
Full Member
Offline
Full Member
H
Joined: Jul 2019
Posts: 129
Maybe not possible to use USB TO HOST to RPi at same time as 5 pin midi to PC, but there may be other ways to do what you want. For example, you could use USB TO HOST to RPi, and set things up on the RPi to forward the midi messages on to the PC. In this case the RPi is functioning as the midi host and you would also connect a usb cable between it and the PC. Alternatively, there would be a way to do the opposite, drive the PC with 5-pin midi (or USB TO HOST) and have the PC forward the midi message on to the RPi. If the PC is the one one producing the sound, I think the second of these (drive PC directly) would be the way you'd want to go, forwarding on to the second machine will add a little more latency.

Last edited by hes; 10/07/20 08:46 PM.
Joined: Jul 2019
Posts: 129
H
hes Offline
Full Member
Offline
Full Member
H
Joined: Jul 2019
Posts: 129
To add to my previous message:

If connecting keyboard directly to the RPi:
On the RPi (or Linux in general) you could use the aconnect command line utility to connect things up so the incoming midi messages are forwarded from the RPi to the PC. You can get some basic info about this from this page: https://neuma.studio/rpi-midi-complete.html

If connecting keyboard directly to PC:
If your PC is running Linux, then aconnect info in link above would also apply. Not exactly which utiities you'd use to forward things if on Windows or MacOS. Actually, on Windows I think a free tool called LoopMIDI might be useful. If on the PC you have an external interface for the 5-pin midi with multiple connections, it's also possible that interface might send the incoming message out on a different port. Not sure about that, though. If the interface has only 5-pin connections , might still work by running a 5-pin midi to usb midi cable from PC midi interface to the RPi.

Last edited by hes; 10/07/20 08:57 PM.
Joined: Nov 2016
Posts: 4,153
C
4000 Post Club Member
Online Content
4000 Post Club Member
C
Joined: Nov 2016
Posts: 4,153
Looks like there are MIDI splitters for the 5 pin MIDI.

That could feed the same signal to two devices.

And of course USB-MIDI cables exist too, so the devices don't need to support 5 pin MIDI.

Joined: Jul 2014
Posts: 2,554
2000 Post Club Member
Offline
2000 Post Club Member
Joined: Jul 2014
Posts: 2,554
There is no need for convoluted solutions like MIDI splitters or for using serial MIDI next to USB. Just connect the CP4 to the personal computer via USB and use MIDI over Ethernet software to route the second MIDI channel to the Raspberry Pi over the network. The Pi is a personal computer too, they can talk to each other.


Yamaha P-515
Joined: Nov 2016
Posts: 4,153
C
4000 Post Club Member
Online Content
4000 Post Club Member
C
Joined: Nov 2016
Posts: 4,153
Originally Posted by JoeT
...use MIDI over Ethernet...

Ooh...wireless. 😎

"Convoluted solutions" could be used to have a standalone piano with whatever key lighting the OP is envisioning. So, it could work without a computer. (Apart from the Raspberry PI computer of course)

Joined: Oct 2020
Posts: 5
D
Deep21 Offline OP
Junior Member
OP Offline
Junior Member
D
Joined: Oct 2020
Posts: 5
Thank you guys for your responses. Unfortunately I am not good with programming, I am only an ordinary pianist :P so I will try one of the Midi Splitters. Maybe this is the solution I am looking for smile

I will try this one, I hope it will work:


https://www.amazon.com/MIDI-Solutio...+-+THRU+V2&qid=1614204276&sr=8-3

Joined: Oct 2013
Posts: 3,868
3000 Post Club Member
Offline
3000 Post Club Member
Joined: Oct 2013
Posts: 3,868
Yes a MIDI thru is typically made to duplicate a MIDI signal.


http://www.sinerj.org/
http://humeur-synthe.sinerj.org/
Yamaha N1X, Bechstein Digital Grand, Garritan CFX, Ivory II pianos, Galaxy pianos, EWQL Pianos, Native-Instrument The Definitive Piano Collection, Soniccouture Hammersmith, Truekeys, Pianoteq
Joined: Oct 2020
Posts: 5
D
Deep21 Offline OP
Junior Member
OP Offline
Junior Member
D
Joined: Oct 2020
Posts: 5
I'm just uncertain how to connect it all correctly. It will be something like that? : 5 pin MIDI Cable from my Yamaha to Midi Splitter and then two Midi to USB cables from my Midi Splitter to connect it separately to my Raspberry and Computer ?
This cables will be ok ?:

https://www.amazon.com/LEKATO-Conne...usb+cable&qid=1614257833&sr=8-10

Thanks for your responses smile

Joined: Oct 2013
Posts: 3,868
3000 Post Club Member
Offline
3000 Post Club Member
Joined: Oct 2013
Posts: 3,868
This cable would be OK between one thru output of the box and the computer. I don’t know this model however. Cheaper than a M-Audio MIDI sport UNO, but more expensive than a noname 5$ and non reliable adapter.

Between the piano and the Input of the midi-thru, this type of cable :

https://m.thomann.de/fr/pro_snake_midi_cable_5.htm

Between an output (thru) and the Rasberry, I suppose the USB-MIDI cable you propose is ok.


http://www.sinerj.org/
http://humeur-synthe.sinerj.org/
Yamaha N1X, Bechstein Digital Grand, Garritan CFX, Ivory II pianos, Galaxy pianos, EWQL Pianos, Native-Instrument The Definitive Piano Collection, Soniccouture Hammersmith, Truekeys, Pianoteq
Joined: Oct 2020
Posts: 5
D
Deep21 Offline OP
Junior Member
OP Offline
Junior Member
D
Joined: Oct 2020
Posts: 5
Do you recommend this purchase so that everything works as it should or is it an unnecessary expense ?:

https://www.amazon.com/Roland-UM-ON...UM-ONE+MK2&qid=1614292059&sr=8-1

Thanks again for your help smile

Joined: Oct 2013
Posts: 3,868
3000 Post Club Member
Offline
3000 Post Club Member
Joined: Oct 2013
Posts: 3,868
I know that the M-Audio Midi Sport Uno is USB Class compliant. It could be worth if you use a fancy system (Raspberry). If the Roland needs a fancy driver, you may have some trouble. I don’t know how behaves the Roland.


http://www.sinerj.org/
http://humeur-synthe.sinerj.org/
Yamaha N1X, Bechstein Digital Grand, Garritan CFX, Ivory II pianos, Galaxy pianos, EWQL Pianos, Native-Instrument The Definitive Piano Collection, Soniccouture Hammersmith, Truekeys, Pianoteq
Joined: Aug 2017
Posts: 1,756
E
1000 Post Club Member
Offline
1000 Post Club Member
E
Joined: Aug 2017
Posts: 1,756
I would definetely say the Roland has way more probability of working flawlessly than even the M-Audio smile And both will surely work better than one of these brandless converters. The one on the link above (the one costing $17-ish) may be OK, but to be sure, I would buy either the Roland or M-Audio (in that order).

I regret to this day giving awat my Ediroll (which was bought by Roland).


Kawai ES8, Roland RD2000, Yamaha AG06 mixer, Presonus Eris E5 monitors, Sennheiser HD598SR phones.
Joined: Feb 2010
Posts: 6,730
A
6000 Post Club Member
Online Content
6000 Post Club Member
A
Joined: Feb 2010
Posts: 6,730
AFAIK, every 5-pin-to-USB interface ever made is class compliant (at least I'm not aware of any that ever needed a driver installed on a Mac, though a driver may be provided for additional capabilities). However the M-Audio Uno is known to have issues with some Yamaha keyboards (I don't think any other M-Audio has the problem including the Sport.) The fact that old Yamahas may be quirky in their MIDI would sway me further away from using a no-name/generic interface if you've got an old Yamaha. In current models, I'd stick with a Roland UM-ONE or iConnectivity mio 1x1.

Joined: Oct 2013
Posts: 3,868
3000 Post Club Member
Offline
3000 Post Club Member
Joined: Oct 2013
Posts: 3,868
From the Linux kernel source :

Code
 /*
 * Standard USB MIDI protocol: see the spec.
 * Midiman protocol: like the standard protocol, but the control byte is the
 * fourth byte in each packet, and uses length instead of CIN.
 */

The source code is plenty of « if this is such a device then ... ».

We have a specific Yamaha function (snd_usbmidi_detect_yamaha),and the corresponding Roland (snd_usbmidi_detect_roland)...

This makes me doubt of the compliance of a USB-MIDI device by default.

Last edited by Frédéric L; 02/26/21 01:28 PM.

http://www.sinerj.org/
http://humeur-synthe.sinerj.org/
Yamaha N1X, Bechstein Digital Grand, Garritan CFX, Ivory II pianos, Galaxy pianos, EWQL Pianos, Native-Instrument The Definitive Piano Collection, Soniccouture Hammersmith, Truekeys, Pianoteq
Joined: Feb 2010
Posts: 6,730
A
6000 Post Club Member
Online Content
6000 Post Club Member
A
Joined: Feb 2010
Posts: 6,730
Originally Posted by Frédéric L
From the Linux kernel source :

Code
 /*
 * Standard USB MIDI protocol: see the spec.
 * Midiman protocol: like the standard protocol, but the control byte is the
 * fourth byte in each packet, and uses length instead of CIN.
 */

The source code is plenty of « if this is such a device then ... ».

We have a specific Yamaha function (snd_usbmidi_detect_yamaha),and the corresponding Roland (snd_usbmidi_detect_roland)...

This makes me doubt of the compliance of a USB-MIDI device by default.
This sounds like a chicken-and-egg situation. Regardless of whether devices are written to spec or the spec was written to allow for for certain devices, the result remains, I've never heard of any 5-pin-to-USB interface that would not work on a given computer unless an interface-specific driver were installed.

Joined: Oct 2013
Posts: 3,868
3000 Post Club Member
Offline
3000 Post Club Member
Joined: Oct 2013
Posts: 3,868
It is not a chicken and eggs. In Nov 1999, we have got a standard specifications « Universal Serial Bus Device Class Definition for MIDI Devices ». But some USB-MIDI device providers prefer to reinvent the wheel and use their own protocol.

Note : I don’t think EVC2017 is wrong. But before having read him, I was suspicious with the Roland adapter. (I have a Roland controller which get needed driver through Internet before working).

EDIT : i note the M-Audio Uno has a specific function too : &snd_usbmidi_maudio_broken_running_status_ops; Since running status optimisation is used with any chord, the patch is frequently used.

Last edited by Frédéric L; 02/26/21 01:57 PM.

http://www.sinerj.org/
http://humeur-synthe.sinerj.org/
Yamaha N1X, Bechstein Digital Grand, Garritan CFX, Ivory II pianos, Galaxy pianos, EWQL Pianos, Native-Instrument The Definitive Piano Collection, Soniccouture Hammersmith, Truekeys, Pianoteq
Joined: Feb 2010
Posts: 6,730
A
6000 Post Club Member
Online Content
6000 Post Club Member
A
Joined: Feb 2010
Posts: 6,730
Originally Posted by Frédéric L
It is not a chicken and eggs. In Nov 1999, we have got a standard specifications « Universal Serial Bus Device Class Definition for MIDI Devices ». But some USB-MIDI device providers prefer to reinvent the wheel and use their own protocol.
I guess if you go back far enough, you could find something not class compliant. But even the Uno--despite not working with some Yamaha keyboards--is class compliant, and has been since at least 2006.

Originally Posted by Frédéric L
(I have a Roland controller which get needed driver through Internet before working).
Controllers and keyboards can definitely not be compliant and can require drivers, I'm talking only about those simple devices that are USB on one end, and a pair of 5-pin DIN connectors on the other. Though even when it comes to controllers and keyboards, lack of compliance is pretty rare. I doubt you'd see an issue with much of anything that isn't 10+ years old.

Joined: Nov 2016
Posts: 4,153
C
4000 Post Club Member
Online Content
4000 Post Club Member
C
Joined: Nov 2016
Posts: 4,153
Originally Posted by anotherscott
AFAIK, every 5-pin-to-USB interface ever made is class compliant

My Yamaha UX16 needs drivers.

Page 1 of 2 1 2

Link Copied to Clipboard
What's Hot!!
Piano World Has Been Sold!
--------------------
Forums RULES, Terms of Service & HELP
(updated 06/06/2022)
---------------------
Posting Pictures on the Forums
(ad)
(ad)
New Topics - Multiple Forums
Very Cheap Piano?
by Tweedpipe - 04/16/24 10:13 AM
Country style lessons
by Stephen_James - 04/16/24 06:04 AM
How Much to Sell For?
by TexasMom1 - 04/15/24 10:23 PM
Song lyrics have become simpler and more repetitive
by FrankCox - 04/15/24 07:42 PM
New bass strings sound tubby
by Emery Wang - 04/15/24 06:54 PM
Forum Statistics
Forums43
Topics223,386
Posts3,349,204
Members111,631
Most Online15,252
Mar 21st, 2010

Our Piano Related Classified Ads
| Dealers | Tuners | Lessons | Movers | Restorations |

Advertise on Piano World
| Piano World | PianoSupplies.com | Advertise on Piano World |
| |Contact | Privacy | Legal | About Us | Site Map


Copyright © VerticalScope Inc. All Rights Reserved.
No part of this site may be reproduced without prior written permission
Powered by UBB.threads™ PHP Forum Software 7.7.5
When you purchase through links on our site, we may earn an affiliate commission, which supports our community.