Csound Csound-dev Csound-tekno Search About

[Csnd-dev] [OT] Playing MiDI files

Date2016-02-28 16:49
Fromjpff
Subject[Csnd-dev] [OT] Playing MiDI files
Yes it is me complaining again.....

It turned out that using timidity oce to play a MIDI file was enough to 
kill all alsa sounds, so on advice I removed it.  That leaves me without a 
CLI midi player for Linux.  I did some searching and the only alterntive I 
could find was fluidsynth but I cannot work out how to drive it.

I also looked at rosegarden as a gui but that was silent

What do others use?

Date2016-02-28 16:59
FromRory Walsh
SubjectRe: [Csnd-dev] [OT] Playing MiDI files
Musescore or Csound.  

On 28 February 2016 at 16:49, jpff <jpff@codemist.co.uk> wrote:
Yes it is me complaining again.....

It turned out that using timidity oce to play a MIDI file was enough to kill all alsa sounds, so on advice I removed it.  That leaves me without a CLI midi player for Linux.  I did some searching and the only alterntive I could find was fluidsynth but I cannot work out how to drive it.

I also looked at rosegarden as a gui but that was silent

What do others use?

==John


Date2016-02-29 05:30
FromKelly Hirai
SubjectRe: [Csnd-dev] [OT] Playing MiDI files
there's jack support for timidity though i've haven't found jack stable enough to run from init. (doesn't like sleep or hibernate last i checked)

have you fiddled with alsa dmix plugin devices? they are supposed to be openable by multiple clients and do sample rate conversions, but they buffer.

k.

On 02/28/2016 11:59 AM, Rory Walsh wrote:
Musescore or Csound.  

On 28 February 2016 at 16:49, jpff <jpff@codemist.co.uk> wrote:
Yes it is me complaining again.....

It turned out that using timidity oce to play a MIDI file was enough to kill all alsa sounds, so on advice I removed it.  That leaves me without a CLI midi player for Linux.  I did some searching and the only alterntive I could find was fluidsynth but I cannot work out how to drive it.

I also looked at rosegarden as a gui but that was silent

What do others use?

==John



Date2016-02-29 07:36
FromAnders Genell
SubjectRe: [Csnd-dev] [OT] Playing MiDI files
jpff,

Unfortunately many distributions suffer from various degrees of bloating these days, and pulse audio is the default audio daemon in almost all desktop Linux distributions today. 
While pulse audio works well for many situations, it may disrupt a well rehearsed work flow using e.g. alsa. 

Since you are an avid Suse user I would suggest that you try installing a minimal Suse install as the long term solution. Some hints can be found here: https://www.howtoforge.com/opensuse-13.2-minimal-server
Installing the bare necessities allows you to choose what you want from repositories, thus avoiding pulse audio. Be advised though that many desktop environments have pulse audio as a dependency. Lxde is a lightweight desktop system that works quite well and have few such bloated dependencies. 

For the short term, fluidsynth should work if you specify the sound fonts file and, if pulse audio still remains in charge of audio, add 
an argument to direct audio to a pulse audio sink. Something like

fluidsynth  -a pulse -i /usr/share/soundfonts/FluidR3_GM2-2.sf2 midifile.mid

Regards,
Anders



29 feb. 2016 kl. 06:30 skrev Kelly Hirai <khirai@ONGAKU.ISA-GEEK.NET>:

there's jack support for timidity though i've haven't found jack stable enough to run from init. (doesn't like sleep or hibernate last i checked)

have you fiddled with alsa dmix plugin devices? they are supposed to be openable by multiple clients and do sample rate conversions, but they buffer.

k.

On 02/28/2016 11:59 AM, Rory Walsh wrote:
Musescore or Csound.  

On 28 February 2016 at 16:49, jpff <jpff@codemist.co.uk> wrote:
Yes it is me complaining again.....

It turned out that using timidity oce to play a MIDI file was enough to kill all alsa sounds, so on advice I removed it.  That leaves me without a CLI midi player for Linux.  I did some searching and the only alterntive I could find was fluidsynth but I cannot work out how to drive it.

I also looked at rosegarden as a gui but that was silent

What do others use?

==John