Posts Tagged ‘music’

Ubuntu audio with Jack continued

Saturday, November 18th, 2017

Allright, allright, allright, allright, allright, allright. I got the original setup working again (just Timemachine is not working at the moment).

What was wrong?

  • No soundfont installed in Qsynth, so no sound!
  • Mixer not installed via synaptic
  • Timemachine not installed via synaptic
  • Patchbay config file missing
  • Mixer config file missing

Here is the screenshot again

And here is the script

#!/bin/bash

#clientNumOxygen=$(aconnect -i | grep client | grep -i Oxygen | cut -d” ” -f2 | tr -d “:”)

# Start Jack audio server
# Patchbay settings will make sure everything gets connected as is in the config file
# Config file to use is /home/spruit/muziekmaken/patchbaywithQsynthandMixer.xml
/usr/bin/qjackctl -s &
sleep 8

# Start Qsynth.
# You will need to have a sound font selected for the sound engine you use otherwise no sound.
# Select it via setup.
/usr/bin/qsynth -g 6 &
sleep 8

# Start Jack Mixer and load settings
# Can be installed via synaptic
# Points to /usr/share/jack-mixer/jack_mixer.py
/usr/bin/jack_mixer -c /home/spruit/muziekmaken/jack_mixer_settings &
sleep 8

# Start a2jmidid to route keyboard midi to jack_mixer. ALSA to Jack.
/usr/bin/a2jmidid -e &
sleep 8

# Start TimeMachine to record brainwaves
/usr/bin/timemachine &

# Start Patchage to route audio between components
# Basically does the same as Patchbay
/usr/bin/patchage &

# Connect the keyboard. Not needed, can do this with PatchBay
# aconnect $clientNumOxygen:0 130:0 &
# Connect a2jmidid. Not needed, can do this with PatchBay
# jack_connect a2j:”Oxygen 61 [$clientNumOxygen] (capture): Oxygen 61 MIDI 1″ jack_mixer:”midi in”

# Disconnect the default ports where we have put the mixer in between
jack_disconnect “PulseAudio JACK Sink”:front-left system:playback_1
jack_disconnect “PulseAudio JACK Sink”:front-right system:playback_2
jack_disconnect qsynth:l_00 system:playback_1
jack_disconnect qsynth:r_00 system:playback_2

Ubuntu audio with Jack continued

Saturday, November 18th, 2017

Dammit, I had to set up all the audio again in my new version of Ubuntu. The midi keyboard once again produces sound over my laptop. Still need to find out how I can get all the fancy sounds from it.

Below is the Patchbay and Patchage setup.

Here is the start up script:

#!/bin/bash

#clientNumOxygen=$(aconnect -i | grep client | grep -i Oxygen | cut -d” ” -f2 | tr -d “:”)

# Start Jack audio server
# Patchbay settings will make sure everything gets connected as is in the config file
# Config file is /home/spruit/muziekmaken/patchbaywithsynthv1.xml
/usr/bin/qjackctl -s &
sleep 8

# Start Qsynth, this does not seem to work anymore
# /usr/bin/qsynth -g 6 &
# Start synthv1 or yoshimi
/usr/bin/synthv1_jack &
# /usr/bin/yoshimi &
sleep 8

# Start Jack Mixer and load settings
# Points to /usr/share/jack-mixer/jack_mixer.py
# Nog knoppen op keyboard definieren om volume te regelen
# This program is no longer available on the current Ubuntu version
# /usr/bin/jack_mixer -c /home/spruit/muziekmaken/jack_mixer_settings &
# sleep 8

# Start a2jmidid to route keyboard midi to jack_mixer. ALSA to Jack.
/usr/bin/a2jmidid -e &
sleep 8

# Start TimeMachine to record brainwaves
# /usr/bin/timemachine &

# Start Patchage to route audio between components
# Basically does the same as Patchbay
/usr/bin/patchage &

# Connect the keyboard. Not needed, can do this with Patchbay
# aconnect $clientNumOxygen:0 130:0 &
# Connect a2jmidid. Not needed, can do this with Patchbay
# jack_connect a2j:”Oxygen 61 [$clientNumOxygen] (capture): Oxygen 61 MIDI 1″ jack_mixer:”midi in”
# Disconnect the default ports where we have put the mixer in between
# jack_disconnect “PulseAudio JACK Sink”:front-left system:playback_1
# jack_disconnect “PulseAudio JACK Sink”:front-right system:playback_2
# jack_disconnect qsynth:l_00 system:playback_1
# jack_disconnect qsynth:r_00 system:playback_2

Jack issue after upgrading to Ubuntu 14.04

Saturday, September 20th, 2014

After upgrading Ubuntu to 14.04 I had two problems.

– No sound from Spotify via webbrowser anymore.

Solved by: Installing pulseaudio-module-jack (4.0-0ubuntu11). This caused my PulseAudio JACK Sink to be available again. In PulseAudio Volume Control I then had to set the ALSA plug-in (under tab Afspelen/Play) to Jack sink.

– No connection anymore between my midi keyboard and the Jack Mixer. I could not control the volume in Jack Mixer via my keyboard anymore. The connection was visible in the JACK Audio Connection Kit via Patchbay (loaded via my patchbay configuration file patchbaydefault.xml), but did not get propagated to my connections in the JACK Audio Connection Kit. This was caused by a change in the name of the plug for my midi keyboard. Probably due to some previous re-installing.

Old value in patchbaydefault.xml:

<socket exclusive=”off” client=”a2j” type=”jack-midi” name=”a2j_Oxygen_61″><plug>Oxygen 61 \[20\] \(capture\): Oxygen 61 MIDI 1</plug></socket>

New value that worked:

<socket exclusive=”off” client=”a2j” type=”jack-midi” name=”a2j_Oxygen_61″><plug>Oxygen 61 \[24\] \(capture\): Oxygen 61 MIDI 1</plug></socket>

Solved by: Deleting the plugs via Patchbay and re-creating the connection. I probably also could have changed the xml file directly.

Old song text

Friday, May 24th, 2013

I found an old song text that I wrote when I was studying.

There is a bug on the wall of my room
It’s staring at me what is it gonna do?
It’s sure looking hungry. I don’t hope he’ll eat me.
Scary little bug is looking at me
Scary little bug is gonna get me
Scary little bug is gonna eat me
I aim with my shoe at the beast on the wall
Still looking scary I’d better not stall
There goes my shoe. It’s flying. It’s airborne.
Scary little bug is looking at me
Scary little bug is gonna get me
Scary little bug is gonna eat me
Shoe’s doing good it is nearing the beast
The insect is scared now or worried at least
But it’s too late and my shoe hits it’s ugly little head
Scary little bug was looking at me
But it’s pretty sure that he won’t get me
I relieved him of his being ugly
But the f*cking insect stained my wall
I think that’s the worst of it all

Chords
A Bbes (slide down) A D D7 Am
A Bbes (slide down) A D D7 Am
A Bbes (slide down) A D D7 Am
A Bbes (slide down) D E G E

Sunday Afternoon

Sunday, November 18th, 2012

Made this this afternoon with Linux Multi Media Studio: sunday afternoon.

 

Ubuntu audio with Jack

Saturday, October 27th, 2012

Below is an overview of my current audio set up in Ubuntu with Jack. I mainly use it to fiddle along with internet radio on my midi keyboard. TimeMachine can record anything interesting from up to 10 seconds ago and onwards. The script in the lower screen does the set up. Mixer slides and qsynth channels with different instruments are controlled from the keyboard.

Midi keyboard in Ubuntu

Monday, April 9th, 2012

There aren’t a lot of good tutorials on how to set up your midi keyboard in Ubuntu. Here is how I did it.

  • Get a midi keyboard (duh!). Mine is an M-AUDIO Oxygen 61.
  • Install Jack Audio, it connects your keyboard with your synthesizer software.
  • Install Bristol, it provides a good set of synthesizers.
  • OPTIONAL install monoBristol, it provides a GUI to Bristol to start up other instruments.

This should give you all you need to start playing your keyboard. However, you would need to start up Jack Audio and Bristol separately every time and also connect your midi keyboard to your synthesizer software and your software to your speakers via Jack Audio each time. Fortunately it is easy to script this in Linux, since there are command line equivalents for all steps.

Here is my script that fires up a Hammond Organ and a Rhodes Bass Piano at the same time 🙂

start_hammond_and_rhodes

O, and off course all this costs EUR 0,00 because the software is open source…