mywave82 / opencubicplayer

Open Cubic Player (unix fork). Music visualizer for various tracked music formats (amiga modules, S3M, IT), chiptunes and other formats related to demoscene
https://stian.cubic.org/project-ocp.php
GNU General Public License v2.0
280 stars 19 forks source link

Can't play mid file (no sound, no visual) #81

Closed criticalsoft closed 1 year ago

criticalsoft commented 1 year ago

Maybe need some extra config ?

criticalsoft commented 1 year ago

By the way, this player is awesome.

criticalsoft commented 1 year ago

https://www.youtube.com/watch?v=9iIieRcDeYs Mine is just blank with some spacer text.

mywave82 commented 1 year ago

You need to have a soundfont installed in your system (or timidity configured). If you use ubunu there are some packages available like:

To select which soundfont to use, you can find a setup dialog inside the setup: filesystem.

mywave82 commented 1 year ago

(or you can change the filetype to OPL, the adplug OPL3 engine has support for MIDI too, pressing ALT-E in the filebrowser lets you edit metadata for a given song)

criticalsoft commented 1 year ago

I found my system has fluid-soundfont-gm & timgm6mb-soundfont installed already. I'm installing musescore-general-soundfont-lossless. But where to change this setting ?

criticalsoft commented 1 year ago

It's working after i installed timidity package. Although the track visualizer still the same, But i can hear the sound. I'm trying to change track visualizer now.

mywave82 commented 1 year ago

If you want to change soundfont, in the filebrowser, at the bottom you can find setup:. Open it and you should be able to locate timidityconfig.dev

Changes performed will be stored in ~/.ocp/ocp.ini

criticalsoft commented 1 year ago

Wow, I was thought that setup is just useless information of file chooser. I wasn't cared about that. If you don't tell me i will probably never click that.

mywave82 commented 1 year ago

https://www.youtube.com/watch?v=9iIieRcDeYs Mine is just blank with some spacer text.

This video link is of an .XM file, played back with the original DOS version

criticalsoft commented 1 year ago

Working with XM file. Thanks for the information.

mywave82 commented 1 year ago

Midi files does not display track information, maybe I am able to make something in the future.

Alt + K brings up keyboard overview, which is context aware

criticalsoft commented 1 year ago

Never mind. I was thought that video was MIDI. Maybe i need to change to XM / Mod file in the future. If you want to support MIDI visualizer not bad.

criticalsoft commented 1 year ago

A more important question than that is: XM file seems supports differrent instrument natively. But with MIDI file almost all of my track is Yamaha Grand. Is this a problem of file format itself ? Or problem of player support ? Or problem of plug-in configuration ?

mywave82 commented 1 year ago

The track view (what you adjust with the key t when playing XM/MOD/IT files), is the native view of the music file, and it has the same style as module-tracker software like Schism, pro tracker, Fast Tracker, ...

MIDI files are a list of events on a timeline that in theory can be arbitrary high resolution and any number of events at all given time-slots. MIDI files that are created from sheet-music in an editor can often have resolution that matches a 1/8, 1/16 or 1/32 note in the selected tempo. It is on my TODO list to try to make a track-view for MIDI files, but it is not high up on my list.