Rosegarden linux нет звука

Обновлено: 03.07.2024

Звуковуха SBLive! и также присутствует встроенный звук (причем, вероятно, лучшего
качества, но rosegarden вообще как MIDI-устройство его не видит).

Итак, в установках секвенсера читаю:
"MIDI доступен, звук не доступен"

Смотрю подробности, а там вот что:
"Rosegarden 1.2.4 - AlsaDriver - alsa-lib version 1.0.12rc2

JackDriver::initialiseAudio - JACK server not running

ALSA Client information:

14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362,
cap 99]
16,0 - (SB Live 5.1, EMU10K1 MPU-401 (UART)) (DUPLEX) [ctype 2, ptype 589826,
cap 127]
17,0 - (Emu10k1 WaveTable, Emu10k1 Port 0) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,1 - (Emu10k1 WaveTable, Emu10k1 Port 1) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,2 - (Emu10k1 WaveTable, Emu10k1 Port 2) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,3 - (Emu10k1 WaveTable, Emu10k1 Port 3) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]

Creating device 0 in Play mode for connection 17:0 Emu10k1 Port 0 (write)
Default device name for this device is MIDI soundcard synth
Creating device 1 in Play mode for connection 17:1 Emu10k1 Port 1 (write)
Default device name for this device is MIDI soundcard synth 2
Creating device 2 in Play mode for connection 17:2 Emu10k1 Port 2 (write)
Default device name for this device is MIDI soundcard synth 3
Creating device 3 in Play mode for connection 17:3 Emu10k1 Port 3 (write)
Default device name for this device is MIDI soundcard synth 4
Creating device 4 in Play mode for connection 16:0 EMU10K1 MPU-401 (UART) (duplex)
Default device name for this device is MIDI external device
Creating device 5 in Record mode for connection 16:0 EMU10K1 MPU-401 (UART) (duplex)
Default device name for this device is MIDI hardware input device
Creating device 6 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 7 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
System timer is only 250Hz, sending a warning
Current timer set to "system timer"
WARNING: using system timer with only 250Hz resolution!
AlsaDriver::initialiseMidi - initialised MIDI subsystem

System timer is only 250Hz, sending a warning
Current timer set to "system timer"
WARNING: using system timer with only 250Hz resolution!

ALSA Client information:

14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362,
cap 99]
16,0 - (SB Live 5.1, EMU10K1 MPU-401 (UART)) (DUPLEX) [ctype 2, ptype 589826,
cap 127]
17,0 - (Emu10k1 WaveTable, Emu10k1 Port 0) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,1 - (Emu10k1 WaveTable, Emu10k1 Port 1) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,2 - (Emu10k1 WaveTable, Emu10k1 Port 2) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,3 - (Emu10k1 WaveTable, Emu10k1 Port 3) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]

AlsaDriver::setPlausibleConnection: connection like 65:0 Emu10k1 Port 0 (write)
requested for device 0
AlsaDriver::setPlausibleConnection: nothing suitable available
AlsaDriver::setPlausibleConnection: connection like 65:1 Emu10k1 Port 1 (write)
requested for device 1
AlsaDriver::setPlausibleConnection: nothing suitable available
AlsaDriver::setPlausibleConnection: connection like 65:2 Emu10k1 Port 2 (write)
requested for device 2
AlsaDriver::setPlausibleConnection: nothing suitable available
AlsaDriver::setPlausibleConnection: connection like 65:3 Emu10k1 Port 3 (write)
requested for device 3
AlsaDriver::setPlausibleConnection: nothing suitable available
AlsaDriver::setPlausibleConnection: connection like 64:0 EMU10K1 MPU-401 (UART)
(duplex) requested for device 4
AlsaDriver::setPlausibleConnection: nothing suitable available
Creating device 8 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 1
Creating device 9 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 2
Creating device 10 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 3
Creating device 11 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 4
Creating device 12 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 5
Creating device 13 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 6
Creating device 14 in Play mode -- no connection available
Default device name for this device is Anonymous MIDI device 7

ALSA Client information:

14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362,
cap 99]
16,0 - (SB Live 5.1, EMU10K1 MPU-401 (UART)) (DUPLEX) [ctype 2, ptype 589826,
cap 127]
17,0 - (Emu10k1 WaveTable, Emu10k1 Port 0) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,1 - (Emu10k1 WaveTable, Emu10k1 Port 1) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,2 - (Emu10k1 WaveTable, Emu10k1 Port 2) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]
17,3 - (Emu10k1 WaveTable, Emu10k1 Port 3) (WRITE ONLY) [ctype 2, ptype
327710, cap 66]"

I can't get any sound from Rosegarden when I write something in the notation editor. The Rosegarden start-up screen says to install a synth app. I installed Qsynth but don't know how to use it with Rosegarden.

The start-up screen also says to install Jack for audio. I have done so but am not sure how to start Jack or check to see if it is running. I also don't know how to tell Rosegarden to use Jack for audio input and output. Any help would be appreciated.

76k 50 50 gold badges 225 225 silver badges 261 261 bronze badges Thanks for your response! Do I need to install Ubuntu Studio on another computer or can I install it along side of my stock Ubuntu installation on one computer? Thanks for the information! I am going to borrow a computer from a friend and check it out.

2 Answers 2

You can ignore the warnings about needing Jack running.

What I now have running is MIDI file playback via Rosegarden and QSynth.

The process as of Ubuntu 17.10 is largely the same as here, but follow these steps:

  • install QSynth apt-get install fluidsynth
  • install a soundfont library apt-get install fluid-soundfont-gs
  • configure QSynth to Enable MIDI Input by checking the box in Setup > MIDI
  • configure QSynth to use alsa Audio Driver under Setup > Audio
  • configure QSynth to use the soundfont under Setup > Soundfonts ; point to /usr/share/sounds/sf2/FluidR3_GM.sf2 or your soundfont location
  • allow QSynth to restart when it prompts you
  • install Rosegarden apt-get install rosegarden
  • with QSynth open, launch Rosegarden
  • Tell Rosegarden to play through QSynth Studio > Manage MIDI Devices and set the General MIDI Device to whatever QSynth broadcasts as its MIDI input option, ie 129:0 Synth input port or similar.


1,111 1 1 gold badge 9 9 silver badges 20 20 bronze badges This worked for me once. But now, checking over the same config I get no sound - with or without pulseaudio running.
  • Tested on Ubuntu Mate 20.04.1 x86_64, from the live CD.
  • This guide looks rather long but it's very screenshot heavy
  • This can be done almost entirely through the GUI after the initial setup is done, hopefully this will help people get more familiar with all the "moving parts" involved.

A window showed up asking me if I wanted to run jackd with realtime priorities, I selected "Yes". I am not sure if this setup will work if I would have selected "No".

Why this is necessary

  • When you run Jack, it will pretty much take over the audio system on your OS.
  • Most of the sounds in Ubuntu (e.g., system sounds, your browser, etc.) use PulseAudio
  • If you want any program on your computer to make sounds while Jack is active, I suggest running this step.
  • There are other ways to work around this like having a second sound card, but this can get cumbersome (I can only wear one pair of headphones at a time)

Process

Run these commands

(it will run and end displaying no message)

At this point we need to start QSynth, but I think this is a good time to provide a bit of background information:

What is QSynth

  • QSynth is a GUI frontend to FluidSynth.
  • FluidSynth is a SoftSynth
  • A SoftSynth is basically a piece of software that interprets MIDI events as sounds.
  • A midi event is basically a note being played on a given instrument.

So basically QSynth is what actually "makes the instrument noises" to be played back through your speakers.

What would somebody use instead of FluidSynth?

  • There have been a lot of other output devices than a SoftSynth that can interpret MIDI events as sound
  • For example, the Roland MT-32 can accept MIDI events and play it in its own (built in to the hardware) soundfont.
  • If you had one of these devices, you could have Jack send MIDI output to one of these instead, e.g., over a MIDI cable or USB cable.

For me, this program is in Sound & Video -> QSynth.

You can also start it from command line, starting it with the qsynth command.

qsynth main window screenshot

qsynth setup window

qsynth soundfonts

There are some soundfonts in /usr/share/sounds/sf2, you can use these, or provide your own.

Personally I selected FluidR3_GM.sf2 for this test for convenience's sake, because it appears to be downloaded with Fluidsynth but for my own use I use SGM-v2.0.1.sf2

In Ubuntu 19, a user LKTS points out that you may need to also do this step:

Click OK, and let it restart the fluidsynth engine. You're done with QSynth but leave it open.

What is Jack?

Jack stands for JACK Audio Connection Kit.

  • If you are trying to search for documentation / help on this online something I would recommend searching for "jack audio connection kit . "
  • There are quite a lot of unrelated search hits for "jack"
  • In this setup Jack is responsible for connecting our input (RoseGarden) to our output (QSynth)

Setting up Jack

This tutorial will use QJackCtl. For me this program was found in Sound & Video -> QJackCtl, but you can also start it command line with qjackctl .

The main window of the UI will look like this:

jack main window screenshot

Click the Connect button to show connectable devices.

Expand All Nodes, your Audio tab should look something like this:

jack connections: audio tab

Notes about the audio tab

ALSA Tab: Connecting FluidSynth

  1. Switch to the ALSA tab and expand all nodes, it should look something like this:

jack connections: alsa tab, before connection

The numbers on these entries may be different on your system.

After you do that, it should look like this:

jack connections: alsa tab, after connection

We're done in this window, close the connections window, but leave the Jack window open.

For me the menu entry was just in Sound & Audio -> RoseGarden

If for some reason it's not there, you can run it with just the rosegarden command.

1. Configure Midi Devices

In the main menu, click Studio -> Manage MIDI Devices

Your setup should look something like this:

RoseGarden Manage Midi Devices window screenshot

2. To test our setup, using the pencil tool, just draw a track somewhere

RoseGarden showing drawn track

3. Double click on that track

4. Click to insert notes on the staff

You should hear piano sounds coming from your speakers when you click to insert a note.

Rosegarden staff editor screenshot

This is a bit off topic from the setup, but I figured I'd include it here.

  1. If you are adding a drum track, you should set the track to use the D channel.

I guess the "D" stands for "Drums"?

Rosegarden "D" track for drums

  1. Then you can right click on the track and use the Percusson Matrix Editor, which will give you a nice labeled interface so you can see which instrument is which.

At this point I think it is a good idea to verify that the sound on your PC still works.

You should be able to go to a youtube video or play some music on your PC and it should work without shutting down Jack or closing RoseGarden.

If you want to start RoseGarden after the initial setup, here's what you need to do:

vgololobov аватар

Не надо думать, что «танцы с бубном» — привилегия Linux. В Windows этого милого шаманства не меньше. Конечно, при использовании штатного набора программ, включенных в операционную систему, при условии, что установку производил продавец компьютера, особенных проблем может и не возникнуть. Но то же можно сказать и о Linux.

В этой связи мне вспомнилось, что года два назад меня заинтересовала программа Rosegarden — программа, позволяющая работать с музыкой, но не в плане прослушивания, а в плане сочинения и исполнения музыкальных произведений. Я потратил несколько дней, пытаясь извлечь хотя бы звук, но безуспешно. Возможно, программа работала, не знаю, но не «играла» даже те файлы, что пришли вместе с программой. И сейчас, когда речь зашла о необходимости «шаманства», об этом говорят довольно часто, я решил использовать Rosegarden как пример, если получится, то успешной, если нет, то безуспешной попытки «танцев с бубном».

Загрузка программы Rosegarden, ее называние напомнило мне некогда слышанную песню со словами: «Прости, но розового сада я не обещал», — так вот, загрузка в Fedora 9 прошла без приключений, а в Ubuntu 8.04, так еще и в таком комплекте, что не пришлось, как в Fedora, пытаться что-то еще загружать. Но это только до первого запуска программы.

В том, что касается jack-сервера с помощью поиска в Yandex удается разобраться с помощью загрузки программы qjackctl. Я допускаю, что это может оказаться лишним ингредиентом в кушанье, но мне легче справится с графическим представлением нужной программы, чем с запуском службы из терминала. Но если в Ubuntu этот этап прошел без осложнений, то в Fedora потребовалось, вопреки советам, добавить себя с помощью раздела администрирования «Пользователи и группы» в группу jackuser: без данной операции мои права не распространялись на работу с этим приложением.

Запуск jack-сервера


Рис. 10.1. Запуск jack-сервера

Кстати, запуск сервера в Ubuntu никак не повлиял на появление звука в Rosegarden. Но наличие клавиши Setup на панели обещало многие возможности настройки, настолько многие, что я не рискнул на большее, чем задать опцию запуска сервера при запуске приложения на последней вкладке Misc, которая выглядела как Start JACK. и т.д.

Я почти уверен, что и в этот раз не добился бы от программы ни одного звука, если бы ни статья в Интернете. Мне очень жаль, что я не разобрался, кто автор этой статьи, но без нее, я уверен, я не продвинулся бы ни на шаг.

Статья о настройке Rosegarden в Интернете


Рис. 10.2. Статья о настройке Rosegarden в Интернете

Первое, что я понял из статьи, это необходимость загрузить еще и qsynth, еще одно приложение. Это приложение оказалось и в доступном наборе пакетов Fedora, и в Ubuntu. Далее, и да простит меня автор статьи, я хочу привести некоторые выдержки, которые и придали мне сил в «танцах с бубном»:

Итак, самое главное - хотя Rosegarden и умеет работать без JACK, но при этом не будет играть. То есть без JACK Rosegarden работает лишь как редактор музыки, но не умеет ее проигрывать.

Поэтому перед запуском Rosegarden обязательно запустите JACK. Крайне рекомендую пользоваться для этого программой QjackCtl. В самом простом случае Вам не нужно редактировать соединения для того, чтобы пользоваться Rosegarden (секвенсер сам создаст все необходимые соединения), однако в дальнейшем у Вас, вероятно, иногда будет возникать в этом необходимость.

Далее Вам необходимо позаботиться о MIDI синтезаторе. Если у Вас SoundBlaster со встроенным MIDI синтезатором Вы, возможно, захотите им воспользоваться. Тогда картинка в QJackCtl будет немного отличаться от той, которая приведена выше - у Вас появятся дополнительные выходные MIDI порты, и Rosegarden к ним автоматически создаст связи. Однако большинству остальных смертных придется воспользоваться программными синтезаторами (к слову сказать, их оценят даже счастливые владельцы SoundBlaster'ов).

Если Вы не знаете еще, как настроить программный синтезатор, смотрите секцию FluidSynth. Для начала его вполне достаточно; в дальнейшем Вы можете захотеть использовать другие специализированные синтезаторы.

Теперь запустите Rosegarden (если Вы ещё этого не сделали) и настройте его для использования программного синтезатора. Для этого нажмите кнопку на тулбаре с нарисованной фортепианной клавиатурой, наполовину накрытой полупрозрачным зеленым квадратом (настроить MIDI-устройства) и назначьте выходу General MIDI device вход нашего синтезатора - Synth input port. Теперь Вы можете загрузить либо любой из примеров, идущих в комплекте Rosegarden, либо готовый MIDI файл (стандарта General MIDI) в редактор, и запустить его на проигрывание.

Кроме загрузки qsynth, не мудрствуя лукаво и следуя советам автора, я сразу загрузил весь набор:

И даже, вопреки обыкновению, сделал это в терминале. Далее в статье автор рассказывает о настройке программного синтезатора:

Самый универсальный программный синтезатор - FluidSynth. Сам fluidsynth это демон, который запускается из командной строки. Однако к радости всех любителей графического интерфейса для FluidSynth существует графическая оболочка весьма похожая на QJackCtl. Она называется QSynth.

Запустите QSynth (после JACK) и перейдите на страницу настроек параметров аудио. На этой странице Вы можете задать параметры выходного цифрового аудиопотока - частоту дискретизации (установите 48000 герц - частоту JACK), количество каналов и так далее.

После этого перейдите на страницу Soundfonts (звуковые шрифты?), на которой задаются банки инструментов, которыми будет играть музыку наш синтезатор. К счастью, FluidSynth использует банки инструментов в формате SoundFont2 (расширение .sf2) - этот формат используется во всех аппаратных синтезаторах фирмы Creative (то есть тех самых SoundBlaster'ов). В Интернете существует огромное количество банков инструментов в этом формате, но Вам понадобятся для начала несколько банков, реализующих стандарт General MIDI (базовый набор всяких инструментов типа пианино, аккордеона, гармошки, гитар, флейт, барабанов и так далее).

Загрузите какой-нибудь из этих банков. Если Вы не знаете, с какого начать, рекомендую банк Airfont. Теперь нажмите OK и ответьте утвердительно на вопрос, рестартовать ли синтезатор. Теперь Ваш программный синтезатор готов к работе!

Картинки, которыми сопровождается статья, не только помогли разобраться, что где искать, но и позволили настроить все в соответствии с рекомендациями. Я не знаю, не изменится ли со временем ссылка на найденную мною статью, но не могу не привести ее отдельной строкой:

Из проблем, оставшихся у меня после загрузки, оставалась только проблема Soundfonts. Ссылка, указанная в статье для загрузки Airfont (airfont 340), не позволила выполнить загрузку, а поиск в Интернете привел меня к архиву zip, в котором я обнаружил нечто похожее, но не с расширением sf2, как я ожидал бы, а с расширением sfArk. С этим тоже пришлось разбираться, хотя быстро выяснилось, что это еще один архив, для которого понадобился архиватор sfark. Последний обнаружился в свободном распространении, но для Windows. Не буду утверждать, что это так, и только так, возможно есть версия для Linux, но под Wine архиватор не только установился, но и прекрасно распаковал мне нужные звуковые шрифты. Добавив их (с правами root) в папку /usr/share/soundfonts, оказалось, что в Fedora 9 эта папка существует и имеет уже один набор шрифтов, я смог завершить установки синтезатора, добавив это шрифт на соответствующей странице настроек.

Программа Rosegarden, полагаю, больше для профессионального использования, чем для любительского. Я не помню, зачем она мне понадобилась несколько лет назад, но почти уверен, что не буду ею пользоваться. В детстве я играл на нескольких музыкальных инструментах, а повзрослев понял, что любить музыку и любить исполнительское искусство или быть композитором — все это совсем разное. Если я люблю музыку, то совсем не обязательно любить собственное исполнение и играть на чем-либо. С тех времен моим любимым музыкальным инструментом стал магнитофон, и сегодня я не хочу вспоминать, как не хочу вспоминать забытую со студенческих времен математику, вспоминать нотную грамоту и пытаться сочинять музыку. Так что, едва ли я буду использовать программу по прямому назначению, но мне приятно, что с помощью автора статьи мне удалось оживить эту программу.

Успешный запуск программы Rosegarden


Рис. 10.4. Успешный запуск программы Rosegarden


A Carafe of Ubuntu

Timidity works great - no sound in Rosegarden

Exactly as the topic says; running a MIDI file through Timidity in command-line works fine, but doing it in Rosegarden just outputs silence.

Any help is appreciated.


Ubuntu and Slackware fan and user Join Date Jul 2009 Location Hippiesoldierstan Norwich Beans 2,289 --> Beans 2,289 Distro Ubuntu 20.04 Focal Fossa

ok this is kinda my special area of interest see if if we can get that going

First thing is to enter after you have opened Rosegarden

into your terminal you will see something of the sort

then to go back to rosegarden

and do what it shows on the attached image
1. click on keyboard (manage midi devices)
2. then click on first item in midi playback box (0) and link with (0) in Midi Outputs box (0)


make sure you pick the one furthest down the list

do same for other midi(s)


hope this helps

bonus info
( if you already know simply ignore this )


if you wish to turn your midi to wav later use

i have included -A120 to hike the sound a little since midi is usually low but it can be omitted

also change -Ow2 to -Ow if you want 16-bit wav and not 24-bit

wav can be changed to flac

Linux is Latin for off-the-beaten-track
what I like MOST about our Ubuntu . The Community
Playing with Slackware too now .
ShanArt


A Carafe of Ubuntu Originally Posted by shantiq

ok this is kinda my special area of interest see if if we can get that going

First thing is to enter after you have opened Rosegarden

into your terminal you will see something of the sort

then to go back to rosegarden

and do what it shows on the attached image
1. click on keyboard (manage midi devices)
2. then click on first item in midi playback box (0) and link with (0) in Midi Outputs box (0)


make sure you pick the one furthest down the list

do same for other midi(s)

Yup it works great. Boy do I feel silly for not checking that. Strange, though, because it worked for a short time a while ago.. No idea how the devices got unset.


Just Give Me the Beans! Join Date Sep 2007 Beans 74 --> Beans 74 Distro Ubuntu 10.10 Maverick Meerkat

Like nearly all Rosegarden commentators, I get no sound! Your instructions above are all good until this:

2. then click on first item in midi playback box (0) and link with (0) in Midi Outputs box (0) I only have one item in the playback box, so I don't know what your "(0)" means. I have many items in the output box, from Timidity ports with different numbers to "No port." Trial and error has gotten me nowhere. This is especially annoying because I have gotten Rosegarden to produce sound before on older Ubuntu versions. All I need Rosegarden for is to playback scores that I write.


Ubuntu and Slackware fan and user Join Date Jul 2009 Location Hippiesoldierstan Norwich Beans 2,289 --> Beans 2,289 Distro Ubuntu 20.04 Focal Fossa

Alfred if you only have one midi there

open your terminal and enter

then go to manage midi devices

and click on your only channel which numbers 0; and click on the lowest 0 on the right panel . Indeed numbers 0 1 2 3 will all work picked from the midi output box which have just been added by doing

added tool: once you have done all that if you still get no sound shut rosegarden (you may hear sound as it shuts) reload and do not do the timidity thing it is already there simply load up your midi file and play ( sometimes it takes that to get it to start)


see attached image


PS i also have ubuntustudio-audio installed from synaptic i think but i am not totally sure that it is required for rosegarden but maybe go for that too.

Читайте также: