opencubicplayer icon indicating copy to clipboard operation
opencubicplayer copied to clipboard

midifile + soundfont sidecar file

Open coderofsalvation opened this issue 6 months ago • 4 comments

Hi,

For ease of use, perhaps we can support soundfont-files as sidecarfiles to midi-files, just like XMPlay? Example:

mysong.mid    ---> check if mysong.sf2 exist
mysong.sf2     ---> exist! use this soundfont instead of the global soundfont

this makes it much easier to play midi-files made with custom soundfonts, without reconfiguring the global soundfont all the time.

coderofsalvation avatar Jun 20 '25 08:06 coderofsalvation

Good idea

mywave82 avatar Jun 20 '25 11:06 mywave82

Btw. it is not totally clear to me till what degree timidity is integrated into ocp. Is it like checking the host-environment for the timidity executable?

coderofsalvation avatar Jun 20 '25 11:06 coderofsalvation

OCP has a fork of the timidity project, made quite some time ago. Timidity was inactive for a long period in the its original repository, but appear to be partially active again.

Changes applied to Timidity are bug-fixes, removing global variables and building it as a library.

mywave82 avatar Jun 20 '25 12:06 mywave82

btw. this is the spec: https://github.com/coderofsalvation/midi-soundfont-sidecarfile-specification

coderofsalvation avatar Jun 20 '25 18:06 coderofsalvation