LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lilypond/Rosegarden/midi problem (https://www.linuxquestions.org/questions/linux-software-2/lilypond-rosegarden-midi-problem-136927/)

Icarus56 01-20-2004 09:13 PM

Lilypond/Rosegarden/midi problem
 
I'm having a small problem with lilypond and rosegarden (both programs have the same problem) I can't get either program to make any sound. My soundcard works ,the Alsa program works, I have what seems to be the proper configuration selected , but still no sound at all. What could be the solution. I really like to stop using noteworthy composer and use one of these linux program, but without midi playback I'm stuck using a mickeysoft program ,instead of running straight linux (SuSE 8.2).

thegnu 09-15-2004 09:08 AM

Is the jack audio connection kit running? What I did is in Configure Rosegarden >> Sequencer >> Startup I made sure that the autoloading of the jack daemon was pointing to the right program (in my case /usr/bin/jackd, could be jackstart, or something else)

If you don't know where jack daemon is, as root type:
Code:

updatedb
[wait till it finishes]
locate jack

It will show you any file with jack in the path.

Also in Rosegarden I had to click the "Manage MIDI Devices" button (keyboard with green over it" and under Record devices click the box next to my cards MIDI device so it says YES.

If any of this doesn't show up:
1. Install JACK, you need it.
2. http://www.alsa-project.org/ has manual alsa configurations.
3. http://www.djcj.org/LAU/guide/index.php has the MIDI HOWTO (read it) and the JACK setup howto (read it, it's really short)

I installed qjackctl, a graphical jack front-end, it helps when trying to find the jack configuration that works. If you run the jack daemon from a virtual terminal then exit, it will kill the jack daemon, even if you end the line with &

Even I only got MIDI working in Rosegarden, but as I was only working with MIDI, it would play back via the keyboard.

----[EDIT]
I just found this:
http://www.alsa-project.org/alsa-doc...neric#jackplug

ocasta 09-28-2004 06:03 PM

Quote:

If you don't know where jack daemon is, as root type:
Code:

updatedb
[wait till it finishes]
locate jack


What if updatedb doesn't work? Command not found or something of the like.

gloriant 09-29-2004 06:35 AM

Quote:

Originally posted by ocasta
What if updatedb doesn't work? Command not found or something of the like.
Then you should first install findutils-locate (in YaST installation section), or (if you don't have distribution copy) you can find it at
ftp://ftp.suse.com/pub/suse/i386/8.2/suse/i586/findutils-locate-4.1.7-545.i586.rpm
in which case you'll have to execute
Code:

$ downloadpath=/tmp
$ sudo rpm -i ${downloadpath}/findutils-locate-4.1.7-545.i586.rpm
$ sudo /usr/bin/updatedb

After which you should be able to execute prior given command
Code:

$ locate jackd
And if you can't find jackd, you haven't got it installed either :P, look for jack an qjackctl in YaST (or on the mentioned SuSE ftp-site or a mirror).

gloriant 09-29-2004 09:15 AM

But to return to the original problem... rosegarden won't audio out...

I have installed jackd 0.99 from source
I launch jackd through qjackctr which states:
<pre>
loading driver ..
apparent rate = 48000
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, buffer = 2 periods
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead
Couldn't open hw:0 for 32bit samples trying 24bit instead
Couldn't open hw:0 for 24bit samples trying 16bit instead
**** alsa_pcm: xrun of at least 18.497 msecs
...
</pre>

Then I launch rosegarden. At startup I see:
<pre>
rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
rosegarden: RosegardenGUIDoc::syncDevices - devices = 1
rosegarden: RosegardenGUIDoc::syncDevices - i = 0
rosegarden: RosegardenGUIDoc::getMappedDevice - adding MIDI Device "MIDI software device" id = 0 direction = 0 recording = false
rosegarden: RosegardenGUIDoc::getMappedDevice - got "128:0 KAMix: qamix (write)", direction 0 recording false
</pre>

As suggested by thegnu
Quote:

Also in Rosegarden I had to click the "Manage MIDI Devices" button (keyboard with green over it" and under Record devices click the box next to my cards MIDI device so it says YES.
I opened Rosegarden settings, end selected sequencer, BUT the startup-tab is empty. so no -jackd to be set there. Furthermore, the General-tab (under sequencer) states "Sequencer status: midi ok, no audio"

And the "show detailed status" button returns
<pre>
Rosegarden 4-0.9.9 - AlsaDriver - alsa-lib version 0.9.6

ALSA Client information:

128,0 - (KAMix, qamix) (WRITE ONLY) [ctype 1, ptype 1048576, cap 66]

Creating device 0 in Play mode for connection 128:0 KAMix: qamix (write)
Default device name for this device is MIDI software device
Current timer set to "system timer"
AlsaDriver::initialiseMidi - initialised MIDI subsystem

AlsaDriver::setRecordDevice - attempting to set play device (0) to record device

</pre>

Does anybody (thegnu maybe) have any idea how to proceed here ?

ocasta 09-29-2004 05:35 PM

Launch Jack via Rosegarden. Go to Settings>Configure Rosegarden>Sequencer>Startup and you'll have the option of starting Jack from Rosegarden. Now that I've done that, I've gotten wav sound out. I'm working on MIDI sound now...

gloriant 10-01-2004 09:49 AM

I'd love love to.
 
Quote:

Originally posted by ocasta
Launch Jack via Rosegarden. Go to Settings>Configure Rosegarden>Sequencer>Startup and you'll have the option of starting Jack from Rosegarden. Now that I've done that, I've gotten wav sound out. I'm working on MIDI sound now...
I'd *love* to do that, but unfortunately
Quote:

I opened Rosegarden settings -> Configure Rosegarden -> Sequencer BUT the startup-tab is completely empty. so no jackd to be set for launching by rosegarden here. Furthermore, the General-tab (under sequencer) states "Sequencer status: midi ok, no audio"
This is in Rosegarde R4 0.9.9 with KDE 3.1.4

More hints ?

thegnu 10-01-2004 01:57 PM

Quote:

Originally posted by gloriant
Does anybody (thegnu maybe) have any idea how to proceed here ?
I've successfully tricked someone into thinking I know something!!! YES!!! :D

In seriousness, launching jack outside of Rosegarden isn't really a problem, just to me it was more hassle. With qjackctl, you can connect Input and Output MIDI devices, but Rosegarden has to be open for it to show up. The Manage MIDI Devices button isn't in Settings (which is kind of confusing), it's on a toolbar. See if you can enter that section, and enable your Keyboard.

Like I said, I was only able to get MIDI working. At one point, I actually had it say "MIDI OK, audio OK", but that only lasted a minute and I can't remember what I did.

The results I was able to get were:
MIDI in from keyboard
MIDI out to keyboard (on playback)
no audio in
no audio out

If this is what you need, it sounds like all you need to do is:
a) run qjackctl while Rosegarden is running and enter the Connect dialog and connect your audio device on the left side to Rosegarden on the right side (and maybe vice versa).
b) Enter the Manage MIDI Devices dialog and enable your keyboard.

Stat- do you find the Manage MIDI Devices dialog? It's on the EDITOR'S TOOLBAR.


All times are GMT -5. The time now is 11:57 PM.