QMidiRoute, and CPU Scaling In Ubuntu Studio

How many of you are aware of the program “QMidiRoute”? It lets you transform any kind of MIDI input into any other… it doesn’t have the power of something like Mididings, but it’s got a GUI and is very easy to use. What do I use it for?

On my live looping guitar setup, I wanted to be able to control three programs with one MIDI foot controller, an old ART X-15. The pedal isn’t programmable, so for me to split up messages, I use QMidiRoute. It goes something like this:

I’m using Rakarrak for guitar sounds (I also use Guitarix, which sounds better), and I’m pretty much using it in stompbox mode, i.e. just turning single effects on and off. The mapping uses a single CC# and different distinct values to turn individual fx on/off (which is dumb). I can put the pedal in CC mode, but I can’t make it do that… qmidiroute can do that for me. Also, any PC signals automatically change presets in Rakarrak, which I don’t want… so I have qmidiroute discard anything it doesn’t have a specific rule for.

For SooperLooper, I want to be able to use PC messages 1-10 to record, dub, change loops, and so on. It doesn’t need any translations, so I have my MIDI messages going straight to it. It only does what you map it to, so no other changes are needed for it.

For Hydrogen, I want to use my second bank of PC messages (11-20) to control it, but Hydrogen doesn’t recognize PC signals, only notes or CC values. Once again, qmidiroute to the rescue… I can make specific PC changes translate into an actual note, which I can then use to trigger controls or one-shots from Hydrogen.

You can also have multiple configurations, and make a shortcut that loads that particular file on startup, which makes it easy to use in a live performance setting! You just add it to your Jack patch panel, save it, and the next time you fire it up, it’s automatically configured and patched in.

Check it out! It can also route signals to two different output ports, which lets you split notes or note ranges (or PC and CC ranges) to two different outputs.

qmidiroute

This leads me to my next problem to tackle… I hadn’t been able to run guitar effects very well, due to random CPU spikes and latency issues. In my research to build my laptop into a live performance machine, I stumbled across some interesting information about CPU frequency scaling, and how in XFCE it is extremely wonky… I did some research, and discovered how to manually override the wonky settings with a program called “cpufreq-set” (in package “cpufrequtils”).

I also noticed how my laptop would go out of performance mode whenever I started Jack, which caused all kinds of problems with latency. So, I added a couple of scripts in the Jack configuration tab, which forces the CPUs into Performance Mode when Jack starts, and puts them back in economy mode when Jack stops. (I had to add superuser rights to the program cpufreq-set to do this).

Here’s the page with all the info on cpufrequtils, and a screenshot of my Jack startup/shutdown scripts.

http://www.pantz.org/software/cpufreq/usingcpufreqonlinux.html

Screenshot - 06222013PM

You can see the numbers, those are forcing the CPUs to run at a max of 2.2Ghz and a min of 800Mhz, respectively.

The Survivor

Here’s an ’86 Raleigh Capri I rescued from the dumpster. I changed out the wheels, tires, and cranks, but otherwise, it’s all original… including the squeaky chain! Rides fine, though. Just needs some loving. Do you have a favorite old bike that you just can’t get rid of?

2013-05-27 17.44.05

Corporate Emo Poetry Monday (Five Iron Frenzy Edition)

Today’s “Corporate Emo Poetry” is brought to you by a Five Iron Frenzy song called Giants. 

When no one looks the clouds come rolling in,
And under darkened skies the buildings grow big teeth and eyes.
They breathe and walk through unending doors,
Eating restaurants, and barbershops, and hardware stores.
With catch phrases and jingles stealing,
Steel and concrete lies,
The corridors of Babylon are craning for the skies.

Who’s behind the curtain anyway,
Who pulls the levers and tells the lies?
Giants roam the land today,
Gaining dominance with every stride.

Oh don’t you cry for the mom and pops,
Nothing but dry eyes for integrity’s demise.
Hulking machines grind as whistles blow,
Corporate Darwinism crushes everything below.
Advances in efficiency increasing productivity,
Are narrowing the margin for liberty.

This house is haunted by the ghost of Adam Smith,
The Wealth of Nations and the further death of innocence.
To rule the world, the desire of every man,
The earth is shaking,
There are giants in the land.

See the blood red sun is rising,
On the broken carnage from the darkest days.
Giants locked together arm and arm,
Pushing all the meek out of the way.

[youtube_sc url=”http://www.youtube.com/watch?v=iH8SIql08l4″ title=”Giants”]

Corporate Emo Poetry Monday

from the cubicle wasteland, the day is filled
with countless TPS reports to be killed
vicariously living from break to break
deriving my value from slideshows I make

a foregone conclusion is all that I need
to fatten the unspoken goddess of greed
whatever it takes to surpass the line
there’s no inefficiency I cannot find

I press on until at last I am done
convincing myself that big business is fun
and yet there’s one thing that fills me with sorrow;
I have to get up and start over tomorrow

Corporate Emo Poetry Monday

flourescent flickering in the boardroom
forever humming, never going
the uneasiness hangs in the air
like so much moss on a tree
I think I may grow roots here

beneath the flaking veneer is rot
that cannot be stopped by conventional wisdom
centuries of knowledge washed away
by simple charts and graphs
and a bottom line that never goes away

Corporate Emo Poetry Monday

A plastic surgeon of words
I craft and shape raw flesh into appealing curves
But when I drop the scalpel,
no matter how pleasant the poem appears,
the inner poet remains the same
They are simply free to express themselves anew
without the constraints of preconcieved predjudices
Will they go on to shake the very foundations of the world?
Only they can answer that question
More coffee?

Emo Poetry for Corporate Lackeys

Flummoxed by the emptiness, Raging into the corporate abyss
Only to be answered by a complete lack of an answer
Urged to continue on by an unseen taskmaster,
Which is my own mind forcing me to comply
I take a swig of coffee, bittersweet as life
And I smile to myself
As my spirit slowly withers

Caustic 2 on Android, Windows, and Linux

Okay, had some fun tonight! I found a great app for quick techno/dance track creation called Caustic. It’s available as an Android app, and works fantastically on my Galaxy Tab 2. It uses pattern blocks to build songs (similar to FrootyLoops and LMMS) and comes with pretty robust effects and synths. So I checked into it, and turns out the programmer has the Windows desktop version of the app available free on his site! Completely functional, too. This means you can build drumkits, synths, and presets on the desktop first, and then load it on your mobile device and rock it out.

[youtube_sc url=”http://www.youtube.com/watch?v=yJOT3kgkgYc”]

Continue reading “Caustic 2 on Android, Windows, and Linux”