*** Two problems was solved: the first concerning the playback of MIDI files with Rosegarden, and the second concerning printing of scores with LilyPond. If you seek for the solution, read the entire thread ***
I installed four packages using SlackBuilds: fftw, rosegarden, jack-audio-connection-kit, and libsndfile.
At the beginning I run JACK server. I tried two commands: jackd -d alsa and jackstart --driver=alsa. Both display the same result:
JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit little-endian
ALSA: use 2 periods for playback
Then I run Rosegarden. When I load some MIDI file or write own music and try to playback it I hear nothing.
Other applications such as play, mpg321, or timidity play the music.
I tried Rosegarden as a regular user and as root.
Rosegarden displays a huge bunch of information on the console -- I attached it in postscript.
Some highlights of that output are:
Creating device 0 in Play mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
Creating device 1 in Record mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
Composition::getTrackById(0) - WARNING - track id not found, this is probably a BUG /tmp/SBo/rosegarden-1.7.0/src/base/Composition.cpp:1539
On some Russian-language homepage <http://subscribe.ru/archive/comp.soft.linux.discuss/date/681845?682397> I found information: ``Run JACK and then in the control center of KDE select sound system jack'' (Rus. ``Запустить JACK, потом в центре управления KDE выбрать звуковую систему jack'').
There are three problems with that advice...
The first, if I run jackd -d alsa and then KDE it complais ``Error while initializing the sound driver:; device: default can't be opened for playback (Device or resource busy); The sound server will continue, using the null output device'', and if I run KDE and then jackd -d alsa, it complains: ``the playback device "hw:0" is already in use. Please stop the application using it and run JACK again; cannot load driver module alsa; no message buffer overruns''.
The second, I can't find JACK Sound System in KDE Control Center.
The third, I used to use Window Maker.
This is my first experience with JACK and Rosegarden. So far I used Slackware 11.0 with xgmc. I tried to compile xgmc in Slackware 12.1 but without success. So I try now JACK and Rosegarden.
What should I do to force Rosegarden to play the music?
Have a nice day...
w1k0
PS
This is the output of Rosegarden's messages displayed on the console -- I divided it into four sections: Running Rosegarden; Loading Nokia tune.mid; Playing and pausing music; Quitting Rosegarden:
*** Running Rosegarden ***
kbuildsycoca running...
bash-3.1# Rosegarden 1.7.0 - AlsaDriver [ALSA library version 1.0.15, module version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC), kernel version 2.6.24.5-smp]
JackDriver::initialiseAudio - JACK sample rate = 48000Hz, buffer size = 1024
JackDriver::initialiseAudio - creating disk thread
JackDriver::initialiseAudio - found 2 JACK physical outputs
JackDriver::initialiseAudio - connecting from "rosegarden:master out L" to "system
layback_1"
JackDriver::initialiseAudio - connecting from "rosegarden:master out R" to "system
layback_2"
JackDriver::initialiseAudio - found 2 JACK physical inputs
JackDriver::initialiseAudio - connecting from "system:capture_1" to "rosegarden:record in 1 L"
JackDriver::initialiseAudio - connecting from "system:capture_2" to "rosegarden:record in 1 R"
JackDriver::initialiseAudio - initialised JACK audio subsystem
ALSA Client information:
14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362, cap 99]
CREATED OUTPUT PORT 3
ut 1 - MIDI output system device for device 0
done
Creating device 0 in Play mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
Default device name for this device is MIDI output system device
Creating device 1 in Record mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
Default device name for this device is MIDI input system device
AlsaDriver::setCurrentTimer((auto))
extractVersion: major = 1, minor = 0, subminor = 15, suffix = " (Tue Nov 20 19:16:42 2007 UTC)"
AlsaDriver::versionIsAtLeast: is version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC) at least 1.0.14? yes
extractVersion: major = 2, minor = 6, subminor = 24, suffix = ".5-smp"
AlsaDriver::versionIsAtLeast: is version 2.6.24.5-smp at least 2.6.20? yes
Current timer set to "RTC timer" with timer checks
AlsaDriver::initialiseMidi - initialised MIDI subsystem
Composition::getTrackById(0) - WARNING - track id not found, this is probably a BUG /tmp/SBo/rosegarden-1.7.0/src/base/Composition.cpp:1539
Available track ids are:
Renaming device 0 to General MIDI Device
Renamed 128:3 to General MIDI Device
CompositionModelImpl::slotInstrumentParametersChanged()
TrackButtons::slotUpdateTracks
Comparing current version "1.7.0" with latest version "1.7.0"
ALSA Client information:
14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362, cap 99]
*** Loading Nokia tune.mid ***
Composition::getTrackById(0) - WARNING - track id not found, this is probably a BUG /tmp/SBo/rosegarden-1.7.0/src/base/Composition.cpp:1539
Available track ids are:
Renaming device 0 to General MIDI Device
Renamed 128:3 to General MIDI Device
midiBytesToLong(0,0,0,6) -> 6
Parsing Track 0
midiBytesToLong(0,0,0,52) -> 52
Parse track: last track number is 0
MidiFile: new channel map entry: channel 0 -> track 0
MidiFile: track number for channel 0 is 0
Parsing Track 1
midiBytesToLong(0,0,0,234) -> 234
Parse track: last track number is 1
MidiFile: new channel map entry: channel 1 -> track 1
MidiFile: track number for channel 1 is 1
Program change or channel aftertouch: time 0, code 193, data 0 going to track 1
Parsing Track 2
midiBytesToLong(0,0,0,238) -> 238
Parse track: last track number is 2
MidiFile: new channel map entry: channel 2 -> track 2
MidiFile: track number for channel 2 is 2
Program change or channel aftertouch: time 0, code 194, data 4 going to track 2
Parsing Track 3
midiBytesToLong(0,0,0,238) -> 238
Parse track: last track number is 3
MidiFile: new channel map entry: channel 3 -> track 3
MidiFile: track number for channel 3 is 3
Program change or channel aftertouch: time 0, code 195, data 14 going to track 3
Parsing Track 4
midiBytesToLong(0,0,0,245) -> 245
Parse track: last track number is 4
MidiFile: new channel map entry: channel 4 -> track 4
MidiFile: track number for channel 4 is 4
Program change or channel aftertouch: time 0, code 196, data 78 going to track 4
Parsing Track 5
midiBytesToLong(0,0,0,87) -> 87
Parse track: last track number is 5
MidiFile: new channel map entry: channel 15 -> track 5
MidiFile: track number for channel 15 is 5
Program change or channel aftertouch: time 1, code 207, data 124 going to track 5
New Rosegarden track: id = 0, instrument = 2000, name = Imported MIDI
MidiFile: converted MIDI tempo 500000 to Rosegarden tempo 12000000
New Rosegarden track: id = 1, instrument = 2001, name = Imported MIDI
New Rosegarden track: id = 2, instrument = 2002, name = Imported MIDI
New Rosegarden track: id = 3, instrument = 2003, name = Imported MIDI
New Rosegarden track: id = 4, instrument = 2004, name = Imported MIDI
New Rosegarden track: id = 5, instrument = 2015, name = Imported MIDI
DataBlockRepository::clear()
Warning: Composition::~Composition() with 2 observers still extant
Observers are: 0x8a10d6c [N10Rosegarden19SegmentParameterBoxE] 0x8ab1750 [N10Rosegarden20CompositionModelImplE]
CompositionModelImpl::slotInstrumentParametersChanged()
TrackButtons::slotUpdateTracks
*** Playing and pausing music ***
SoundDriver::initialiseAudioQueue -- new queue has 0 files
AudioPlayQueue::~AudioPlayQueue()
JackDriver::stopTransport: resetting m_haveAsyncAudioEvent
SoundDriver::clearAudioQueue
*** Quitting Rosegarden ***
RosegardenSequencerApp::quit()
AudioInstrumentMixer::destroyAllPlugins
done
AudioInstrumentMixer::~AudioInstrumentMixer
AudioInstrumentMixer::removeAllPlugins
AudioInstrumentMixer::~AudioInstrumentMixer exiting
DataBlockRepository::clear()
SoundDriver::~SoundDriver (exiting)
AudioPlayQueue::~AudioPlayQueue()
Toodle-pip.
Warning: Composition::~Composition() with 1 observers still extant
Observers are: 0x8a19908 [N10Rosegarden20CompositionModelImplE]
WARNING: Composition::getSegmentVoiceIndex: segment 0x8bd25a0 not found in composition
WARNING: Composition::getSegmentVoiceIndex: segment 0x8c02938 not found in composition
WARNING: Composition::getSegmentVoiceIndex: segment 0x8c03828 not found in composition
WARNING: Composition::getSegmentVoiceIndex: segment 0x8bc42d8 not found in composition
WARNING: Composition::getSegmentVoiceIndex: segment 0x8be90e8 not found in composition
WARNING: Composition::getSegmentVoiceIndex: segment 0x8beb1e0 not found in composition