Category Archives: digital audio

Looping setup

The very first post on this blog has been pushed from emacs with org2blog, then I abandoned the idea for a while and posted from within the wordpress interface only.

Now I’d like to get back to the roots, so to say 🙂 so this post will be typed inside emacs

Looping setup

I thought for a while to set up a looping enviroment with my old laptop, a thinkpad t61p which now runs debian jessie. I already used the wonderful sooperlooper application as can be seen in the following video: Some fun with sooperloper | linuxaudiostudio

However, this was only about looping with live played material on a guitar, and I wanted to expand or maybe switch to electronic sounds generated inside the box.

Hardware

Hardware-wise at the time I used only a MIDI pedalboard (proel-ms16-93562.jpg (JPEG Image, 640 × 329 pixels)) to control sooperlooper, now I want to integrate a couple of other MIDI controllers:

Roland PC 300

roland_pc300.jpg

this one I bought used for 40 € and it is a wonderful (although discontinued) MIDI keyboard that has all the features I need with a small footprint and a light weight:

  1. four octaves with octave buttons to play on the entire MIDI range
  2. ability to switch MIDI channels from the keyboard itself. This is very important to control different softwares without touching the computer. I used to use the akai lpk 25, which is a wondeful tiny controller, but it lacks this feature (you can use at most 4 different channels by using the presets)
  3. Modulation/pitch wheel
  4. Sustain pedal input
  5. a programmable slider for sending MIDI CC
  6. USB bus powered (no need for yet another power adapter)

Novation remote Zero MKI

novation-remote-zero-sl_2.jpg

this one is a real beast. It’s also discontinued (now they make the MKII) but I found it in great conditions for only 70 €. It has a lot of physical controls with extensive programming options. It is also bus powered and it works as MIDI interface too, so I’m using it to connect the MIDI only ms-16 pedalboard.

Also great about this controller is the fact that it has two screens where you can see the (configurable) name and value of the controller you are sending.

And it has an editor that runs (with some glitches, but usable) under wine.

Software

Here is where things get complicated.. 🙂 I haven’t sorted out yet the full setup for software but here’s a list of the software that I intend to use:

  • sooperlooper (of course)
  • renoise (the best traker ever made, althoug not free)
  • yoshimi (a great soft synth)
  • mididings (neat MIDI router and processor)
  • qjackctl (for JACK connecions and patchbay persistence)
  • wmctrl (for controlling GNOME via MIDI when combined with mididings)

basically sooperlooper and renoise should be connected and sync’d thru JACK transport, renoise providing its wonderful sampler and its powerful effect chains. Yoshimi to produce synth sounds (multitimbrical, say two or three channels), mididings to route all MIDI data to the appropriate program basing on MIDI channel.

I tried with those softwares and the resulting setup is already quite complex… and this whitout external audio sources like real instruments (which I want to integrate at some point).

Other software that I’m considering:

Tagged , , , , , , ,

Latin ballad speed recording with ardour

Today I recorded this one, it’s an old latin ballad which I heard from the italian singer/icon Mina

It has an awesome melody and a nice chord progression, which took me some hours to grasp completely.

I recorded it in ardour 2.8.14, since I switched from ubuntu to debian stable (FTW!) some months ago. The recording took about an hour, and it’s made of seven tracks plus a bus for reverb:

  • guide percussion (on the left)
  • guitar 1 (on the right)
  • bass
  • brushes (on the right)
  • voice
  • solo guitar
  • guitar 2 (on the left)

This is also the order in which I recorded them: I started with a bar of percussion (made banging on the guitar body) that I duplicated for the length of the song.

I did this because it is very difficult to multritrack all instruments on my own only with the click without sacrificing most of the groove. This trick helps to retain at least part of it.

Then I recorded the guitar (an Alhambra 5P with built in amplification) directly into an humble StudioProjects Vtb-1 and then into my trusty RME hammerfall.

The bass is a 90’s squier II precision bass through the same signal chain.

Then for the “brushes” I used a somewhat muted darbouka with a clothes brush, miked with a nice sennheiser md-421: the same one I used for the voice.

The preamp was again the Vtb-1. It’s not the best I have but is always plugged and very handy.

As for plugins, I used my preferred trio: Invada mono compressor on voice and bass, triple band parametric to cut some frequencies on the voice, and Gverb on a bus on its own as a global reverb. I sent mainly voice and solo guitar to the reverb, and also a bit of the two guitars, which are otherwise panned hard L and R.

I replaced some bad notes here and there, exported the file and opened it with mhwaveedit to cut the start and tail, and to boost a little the volume with a gently (I hope) touch of Barry Satan Maximizer.

The whole process take little more than one hour and a half, and the software behaved beautiffully without a single xrun. I feel that now I have reached a very fast workflow with ardour and Linux. Effective!

I hope you enjoy it, and if you are spanish-speaking, please forgive my pronunciation. 🙂

Tagged , , , , ,

Ardour 3.0 released !!!

Finally it arrived! The long awaited, award winning DAW for GNU/linux reaches a new historical milestone. The major new feature of this version is the introduction of MIDI track recording and editing, but there are LOTS of new features in other departments too.

Also the website has changed a lot, and for the better:

ardour new website

ardour new website

 

 

 

 

 

 

 

 

 

 

Check out the announcement and the “what’s new” page:

https://community.ardour.org/node/6908

https://www.ardour.org/whatsnew.html

Big kudos to Paul Davis and all the ardour crew for this wonderful product.

 

Tagged , , , , , ,

Linux digital audio editors roundup [part one]

mhwaveedit

mhwaveedit

Today I came across this list of “25 free digital audio editors” (and that definition has been stretched a lot here) where I’ve been pleased to find many of our beloved linux applications.

Some don’t even fall in the category, in my opinion: for example I would define hydrogen as a drum machine, and rosegarden a notation editor or a MIDI sequencer, like qtractor.

I take the chance to resume the current situation in GNU/Linux about digital audio editors, which is not a bed of roses compared to other systems/proprietary applications, there are some corners that can be smoothed. Some editors however can be used in real life with good results.

First of all, I leave ardour out because it is much more than a simple audio editor, it’s a full fledged DAW. It can for sure be used as a simple editor but for the task is overkill. For one, you have to create a new project before you can even think of opening an audio file.

audacity

One of the most known and succesful editors in the scene is audacity, an almost complete solution that is cross platform, easy to use, actively mantained and not too buggy.  There are lots of documentation and tutorials around for using it, coming from the huge user base that audacity has, thanks in part to the cross-platform nature of the program.

The problem with audacity is that it plays not so well with JACK, the low latency sound server that is almost a must if you want to make music professionally on Linux. JACK is supported, but through portaudio, a middleware library that makes things a little confusing on JACK side: for example it creates a JACK client on the fly when the user presses “play” on the interface of audacity, and then destroy it when the user presses “stop”. This almost always lead to problems and unwanted clicks (xruns, in JACK lingo) that make audacity not the best choice in a setup that relies heavily on JACK.

Instead, audacity plays well in a desktop system (without low latency audio) and it’s quite useful indeed. It plays nicely with pulseaudio and would be the perfect choice for the user willing to make podcasts, simple audio cuts, simple voice-overs (audacity supports multitrack, to some extent), audio cleaning, and so on.

mhwaveedit

One of the audio editors that performs better in a JACK environment  is mhwaveedit (not listed among the “25”),  a one person effort that is much less advanced than audacity and has a far smaller user base but is stable, useable, actively mantained and performs the basic editing operations quite well.

In mhwaveedit many functions of the program are bound to shortcuts, to speed up common operations such as navigation into the wave file. Horizontal zoom in/out is conveniently bound to the mouse wheel.

Integrated effects are not many: only basic facilities like fade in/fade outs, normalization, and sample rate/format conversion. A lot of other effects are available through the “effects window” where you can find a host of LADSPA plugins and sox algorithms in a long list (not very user friendly for a newbie, I admit) that you can organize to your liking, e.g. put your favourites on top.

Audacity and mhwaveedit are so far (in my opinion) the most reasonable choices for an audio editor on Linux, next time I will explore other (more exotic or unmantained) options for destructive, simple audio editing.

Tagged , , ,

Cavaco vou levar – another track made with GNU/Linux

The new album cover

The new album cover

Here you can listen to a sneak preview of th 6th track of the upcoming album “Il capitan Pepito Amarilla e altre storie samba” by Orchestra Rosichino , an italian band where I play guitar that does a strange genre that we call “spaghetti samba”, because we would like it to sound like samba… but with a touch of spaghetti western.

The album backing tracks have been recorded onto analog tape with a tascam TSR-8 recorder. It is one of the latest analog recorders produced; it records eight tracks into half inch tape.

With it I recorded all the band toghether (drums, bass, fender rhodes piano, electric guitar and cavaquinho) into a small room with some acoustic treatment. I used three microphones on the drums (kick and two “overheads”) and one mic for every other instrument.

Playing toghether greatly improves the groove. In the previous album we recorded every instrument alone and while this approach gives the best separation, the interplay between musicians is negatively affected. This time we choose the opposite and played almost everything (except voices and trumpets) toghether. I think the result is far superior in terms of groove.

Then I trasferred all the analog tracks directy from the recorder to the ardour DAW using the excellent RME hammerfall/multiface soundcard. The tracks sounded already very good with no effects or processing, but I added some compression and eq (invada mono compressor and the LADSPA triple band parametric eq).

At this point we recorded the trumpets (two trumpets with a ribbon EHX  microphone, for the most part) and then the main vocal part, with a sennheiser MD441 through a TC helicon Voiceworks processor. Finally we added some backing vocals (again, two voices into a single microphone).

The mixing has been done all inside ardour, and we exchanged some three versions via internet until we found the good balance that everyone liked.

Mastering has been done with mhwaveedit recording the L+R sum which passed throug a FMR Really Nice Compressor.

Here is the final result, all the process has been very quick; we recorded, mixed and mastered 7 tracks in little more than two weeks:

Hope you like it.

Tagged , , , , , , , ,

Some python code for calculating BPM and delay times

Some time ago I wrote this little script (I called it beatcalculator).

Pretty straightforward command line utility, use the switch –help to get help.

Here is the script, exported from emacs with htmlize-buffer: beatcalculator.

Copy and paste this code into a file called beatcalculator, put that file in your $PATH and give it execution privileges with chmod +x.

Then you can use it on the command line as simple calculator, providing the bpm you want to examine, or you can ask to analyze a wave file. you have to specify the number of bars contained in the wav file and optionally the meter (defaults to 4/4)

Here’s an example of the output you get (with a file with 2 bars of music):


$ beatcalculator -f afroeira123.6.wav -B 2

Meter is 4/4
--------------------------------------------------------------------------- 

afroeira123.6.wav is 3883 milliseconds
Bpm of afroeira123.6.wav is 123.62

123.62 beats per minute (bpm):

Note                            Delay time                       LFO freq
---------------------------------------------------------------------------
Whole                          1941.433 ms                        0.52 Hz
Dotted Half                    1456.075 ms                        0.69 Hz
Half                            970.717 ms                        1.03 Hz
Dotted Quarter                  728.038 ms                        1.37 Hz
Quarter                         485.358 ms                        2.06 Hz
Dotted Eight                    364.019 ms                        2.75 Hz
Quarter Triplet                 323.579 ms                        3.09 Hz
Eight                           242.679 ms                        4.12 Hz
Dotted Sixteenth                182.009 ms                        5.49 Hz
Eight Triplet                    161.78 ms                        6.18 Hz
Sixteenth                        121.34 ms                        8.24 Hz
Dotted Thirty Second             91.005 ms                       10.99 Hz
Sixteenth Triplet                  80.9 ms                       12.36 Hz
Thirty Second                     60.67 ms                       16.48 Hz

Hope you enjoy it.
Send me comments and suggestions to improve it.

Tagged , , , ,

Track recorded with ardour

Sbanda Ballet CD cover

This is a traditional song from Salento, performed by Sbanda Ballet, a band from Bologna that plays lot of folk tunes from all over the world (Ireland, Romania, Italy, Israel, France, Bretagne, etc..). Their main focus is making people dance.

This song is part of a CD called “Stradelli Guelfi” and was recorded in June 2011 at Cricketstudios, Bologna (my project studios), with open source software (ardour on ubuntu).

Recording was made “live in studio” with no overdubbing. Microphones used are sennheiser md441 and md421, and oktava mk012.

The cd features 17 tracks total.

Enjoy!

Tagged , , , , , , , , ,

Some fun with sooperloper

Today I was looking at the new boss rc-30 loopsation and I found its features quite good, in particular I like the portability and the fact that it can run on batteries (good for busking around with a battery powered amplifier), but the cost still kept me away.

In addition I don’t know if all the features related to USB connection with the computer can work with Linux.

So I decided to give a try to my computer-based looping setup, which involves an old MIDI pedal board from proel (model MS-16), a laptop with arch linux and the wonderful sooperlooper from Jesse Chappel, an often overlooked software but very powerful and inspiring.

So I hooked my alhambra classical guitar to a little soundtracs topaz mixer that I use for reharsal with the band, feeding the input of the laptop soundcard with the aux pot of the guitar channel on the mixer.

The audio output of the soundcard was then plugged as well into the mixer that in turn is attached to a small PA.

I find loopers a very creative tool for sketching musical ideas on the fly without having to reach for a big DAW program, creating a new project, and so on. Sooperlooper, once set is an instant gratification tool and today took me to this little latin-american divertissement.

Sorry for the quality of the video, it was taken from a small photocamera and the ligthing was not that good. The audio was captured with the yamaha pocketrak 2G and joined together with the video with avidemux syncing with a little trial and error, so it may be also not perfectly synced.

All in all, I like a lot this setup but I reckon that it is a bit complex to put together compared with the compactness and smallness of the boss pedal. Of course my solution cost me nothing and offers more flexibility (more tracks, more rounting options with JACK) but I’m still looking at the rc-30 with lush desire 🙂

Being an improvisation there are also bad spots so be forgiving… 😀

Tagged , , , ,

New Balafon soundfont

A friend of mine lent me a fantastic african instrument: a Balafon.

I took the opportunity to sample it and make a soundfont to be used in GNU/Linux with qsynth.

The Balfon from which I take the samples for the soundfont

Balafon

To record it I used my trusty yamaha pockettrack 2G (best buy of 2011), I then cropped the single notes with mhwaveedit and put toghether the soundfont with swami.

I don’t have the latest version of swami and there are some oddities in it, but at least I’ve been able to make it into a usable soundfont (I hope).

Please feel free to use it under the term of the CC BY-SA 3.0 license ( with the following exception:
The “share alike” condition is imperative if you modify the samples themselve or create new sample libraries with this licensed product. However, produced music and other non-sample-library works can be licensed at will).

The instrument itself is gorgeous, too bad I have to gave him back soon… I only sampled one layer for each note, basically there are three octaves of a C scale from G2 to F5 (I don’t know for shure those are the actual pitches, maybe I missed an octave in positioning notes).

The whole process took me about 2 hours to complete.

Hope you enjoy it!!

Click here for the soundfont balafon.sf2

Here’s some fiddling with the soundfont, recorded again into mhwaveedit:

Tagged , , , , , , , , ,