Symphonium icon indicating copy to clipboard operation
Symphonium copied to clipboard

LINUX/OSX : I don't hear any sound

Open probonopd opened this issue 4 years ago • 7 comments

Running Symphonium on Ubuntu 18.04.2 LTS (Bionic Beaver). It does recognize my MIDI controller and it does open a MIDI file, but then I click on play or play notes on the MIDI keyboard I don't hear any music coming out of my computer's speakers. How can I debug this?

probonopd avatar Apr 18 '20 13:04 probonopd

HI,

As stated in the readme, it hasnt been tested before on any linux distrib.

I just tested it and It looks like the only way to have an audio output at the moment (linux only; it's working on windows), is to select your keyboard as input and output (and then either using the built in speakers of your keyboards if you have some or connecting your headphone to your keyboard). Doing it, you will have all the sounds (soft generated and played by yourself).

I'm trying to fix this atm.

ttdm avatar Apr 18 '20 14:04 ttdm

Well I just have a MIDI controller connected to the PC via USB, it has no speakers built in. So I need the computer to produce all of the sound.

probonopd avatar Apr 18 '20 16:04 probonopd

So : The output of the application is a MIDI stream. In windows, when selecting their MIDI outport, it automatically synthesize and stream the resulting audio wave.

In linux, neither ALSA or JACK do this. Instead, the MIDI stream should be forwarded to a synthesizer configured as a deamon such as timidity++. This is how to setup timidity++ for arch users : https://wiki.archlinux.org/index.php/Timidity

I must say that there is a noticeable delay (0.2s at least!) by using timidity behind symphonium. I advise to use the application listening the sound back from the keyboard if possible !

I will need to include a novel 3rd-party to directly generate sound from MIDI. It will probably take some time.

ttdm avatar Apr 19 '20 15:04 ttdm

Thank you for the explanation. As I guess this software is geared toward newcomers, not professional audio people, I think that adding a simple built-in piano sound generator would increase the "plug and play" factor of this project tremendously.

probonopd avatar Apr 19 '20 16:04 probonopd

I totally agree, I expected it to work that way; as it is on windows which should account for at least 90% of the users.

I also expected most people using it by using their MIDI keyboard speakers or plugging their headphones on it and not on their computer.

For people like you plugging your headphones on your computer, i will add an option to balance the keyboard sounds and the midi track sound which you can't do at the moment and which is crucial.

I just want to add that to reduce the delay, the timidity deamon should simply be used with the following parameters : -B2,8 -0s -iAD (and optionally --sequencer-ports=1) which are the default debian parameters. so :

timidity -B2,8 -0s -iAD --sequencer-ports=1

Thanks for your feedbacks, i will see what i can do to add a sound generator ;)

ttdm avatar Apr 19 '20 16:04 ttdm

Thank you :+1:

probonopd avatar Apr 19 '20 16:04 probonopd

I have the same issue (no sound) in Ubuntu Studio 21. For now, I use Qsynth to get sounds, which works pretty well (no delays etc.).

Thonnard avatar Oct 01 '21 20:10 Thonnard