ttdm / Symphonium

A tool to help learning the piano
Other
52 stars 3 forks source link

LINUX/OSX : I don't hear any sound #3

Open probonopd opened 4 years ago

probonopd commented 4 years ago

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?

ttdm commented 4 years ago

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.

probonopd commented 4 years ago

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.

ttdm commented 4 years ago

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.

probonopd commented 4 years ago

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.

ttdm commented 4 years ago

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 ;)

probonopd commented 4 years ago

Thank you :+1:

Thonnard commented 2 years ago

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.).