Ubuntu HowTo: Building Ardour 5

Original Source Link

I am trying to build ardour 5 on Ubuntu 17.10. When I try to configure it, it displays pkg -config => No How do I get pkg -config to work. I have searched all over but no answers because its not a common problem.

I built Ardour. You will need all the prerequisites (explained later). Python 2.6 should already be on your PC. Build it with:

    ./waf configure
    ./waf
    ./waf install

It will ask for some dependencies, so install those 1 by 1. LIST:
sudo apt install libboost-all-dev gcc g++ pkg-config libasound2-dev libgtk2.0-dev glibmm-2.4-dev libsndfile1-dev libcurl4-nss-dev libarchive-dev liblo-dev libtag1-dev vamp-plugin-sdk librubberband-dev libfftw3-dev libaubio-dev libxml2-dev libjack-dev liblrdf-dev libsamplerate-dev lv2-dev libserd-dev libsord-dev libsratom-dev liblilv-dev libgtkmm-2.4-dev (ONE LINE)

Update: Building Ardour 6 on Ubuntu 20.04

By trial and error, this might include some not needed packages:

This is from the previous answer, but with packages that errored removed:

sudo apt install -y libboost-all-dev gcc g++ pkg-config libasound2-dev libgtk2.0-dev  libsndfile1-dev libcurl4-nss-dev libarchive-dev liblo-dev libtag1-dev vamp-plugin-sdk librubberband-dev libfftw3-dev libaubio-dev libxml2-dev lv2-dev libserd-dev libsord-dev libsratom-dev liblilv-dev libgtkmm-2.4-dev

And this is all the packages installed in by terminal history (there might be some overlap):

sudo apt-get install -y 
libglibmm-2.4-dev libsndfile1-dev libarchive-dev liblo-dev libtag1-dev 
librubberband-dev libfftw3-dev libaubio-dev libxml2-dev liblrdf0-dev 
libusb-1.0-0-dev libcunit1-dev libwebsocketpp-dev 
libpangomm-1.4-dev libsamplerate0-dev lv2-dev libcunit1-dev libcppunit-dev 
libudev-dev libserd-0-0 libcwiid-dev libxwiimote-dev libserd-0-0 
libserd-dev libwebsocketpp-dev libwebsockets-dev libsord-dev libsratom-0-0 
libsratom-0-0 libsratom-dev liblilv-dev liblrdf0 liblrdf0-dev

Then do the normal:

./waf configure
./waf
./waf install

Tagged : / /

Making Game: Can I delete the many AlbumArt_{characters} files?

Original Source Link

my mp3 folder on my hard drive quasi-recently ended up with a bunch of files that are titled like this (for example):

AlbumArt_{C83D5DEA-6EF6-4DD1-8079-0DC35D3CAB2F}_Large

I think these files were created by Windows Media Player, and are causing a glitch in every media player I use that displays one of these files as the default album art for if there is no artwork.

My question is, is it safe to delete these files from my hard drive and hopefully resolve the issue? I ask because when I did this on my phone’s sd card, the playlists (.m3u files) cleared when I restarted my phone to refresh the cache, although that may have been because of a separate glitch with my media player I experienced beforehand. I really hope this isn’t what was causing the issue. Any advice?

Tagged : /

Ubuntu HowTo: Are there any good alternatives to GarageBand available?

Original Source Link

Are there any good Linux alternatives to Garageband?

The most important features would be:

  • Good audio recording, with audio filters
  • Good MIDI editing abilities
  • and a good selection of instrument synthesisers, that can be ‘played’ on a virtual keyboard

Ideally it would be lovely to find all these features in one package but I’m definitely not against using multiple programs.

Audacity (installable in the Software Center) is probably the closest to what you want. It provides most of the functionality you’ve enumerated, with the exception of MIDI editing.

For MIDI editing I’d suggest Aria Maestosa, though it’s not currently packaged for Ubuntu so you’ll probably have to download and build the source.

I know it’s a bit too late, but for future users, Ardour seems to be the best option, there’s a free and paid version and it is available in Ubuntu’s repo, you can install it via

sudo apt install ardour

screenshot

Makes me sad to say, but I’ve really tried a lot of different options to replace Garageband on Linux. I just have not found any good options thus far.

Why is Garageband good for me, a musician who plays instruments, and likes to create his own melodies, rhythm, percussion, strings, and other tracks?

It’s dead simple to get started. I plug in my 88 Key USB Midi keyboard (detected automagically), create a new project, add a track, pick a sound (instrument) from a pre-installed list included with Garageband, and start playing / recording. Need another Track, add a track, pick a sound, start playing / recording. Need to switch back, just click the track and done.

Thus far on Linux my experience has not been so smooth. I tried LMMS (which is okay, but getting sounds is not simple or straight-forward. Recording, still haven’t figured out how to record a track. Want to hear the sound on track 2, oh wait, you have to go tell the midi connection that you no longer want track 1, and now want track 2. Rosegarden…nice, but first I had to spend weeks trying to understand JackCTL, then find a synth to connect it to, then figure out why my midi keyboard wasn’t detected, then once I could play a sound, forget about switching tracks…OMG!

And thus far, pretty much everything I’ve tried has had some level of similar complication. Ardour, QTractor, Reaper, Waveform Free from Tracktion, and on, and on.

I love open source software, but it has got to be easier for the average bear. I just want to connect up, sit down, and start playing / recording. I just want to switch tracks, and the system knows…ohhhh you want to record strings now…not brass…ok. If anyone has something that will work with anywhere near the ease of Garageband, but on Linux, please let me know about it.

Tagged : / / / /

Linux HowTo: iTunes – how to create really RANDOM playlist?

Original Source Link

How can I create a smart playlist which would contain REALLY RANDOM songs? Is there any hint how to do it?

I’ve tried to set up in the “Match the following rule” chars like *****, / or ., but it never create a playlist with random songs.

Is there any way to do it?

Without more detail on what you’re seeing in your playlists that make it appear not random, it’s hard to tell you exactly what you might do to remedy it. I’m guessing, though, that you’re experiencing the same thing that myself and others have had, which is that iTunes seems to play the same songs in the same order, or repeats some songs a lot while not playing the others at all. There are two main answers to these problems.

For the first, that iTunes seems to play the same songs in the same order, the answer is that the lists are randomized only whenever iTunes is restarted. So if you randomize a playlist and go back to it without restarting iTunes, you will find the songs are still in the same order. See this question over on AskDifferent for more details.

In the second possibility, that the same songs keep coming up while others seem to get no play time at all, it is especially evident if you have a large playlist. After resetting my playlist counters and then playing the same playlist for a few days, I noted that some songs had been played 3-4 times while hundreds of others had no plays. Apparently, Apple automatically weights the songs you play as more likely to be played again when in a random list. Unfortunately, this means that after it has played 20-30 songs, those become the ones it thinks you want to hear most. Resetting the play counter resets this, but you’d have to do it pretty frequently. The workaround that I have is I make a smart playlist and tell it not to include anything that has played in the last 3 days (you can extend that depending on how much you listen and how big your playlist is). This evens out the plays considerably. It may not be perfect, but to me it has made it so I don’t notice repeating songs anymore.

Tagged : / / /

Making Game: iTunes – how to create really RANDOM playlist?

Original Source Link

How can I create a smart playlist which would contain REALLY RANDOM songs? Is there any hint how to do it?

I’ve tried to set up in the “Match the following rule” chars like *****, / or ., but it never create a playlist with random songs.

Is there any way to do it?

Without more detail on what you’re seeing in your playlists that make it appear not random, it’s hard to tell you exactly what you might do to remedy it. I’m guessing, though, that you’re experiencing the same thing that myself and others have had, which is that iTunes seems to play the same songs in the same order, or repeats some songs a lot while not playing the others at all. There are two main answers to these problems.

For the first, that iTunes seems to play the same songs in the same order, the answer is that the lists are randomized only whenever iTunes is restarted. So if you randomize a playlist and go back to it without restarting iTunes, you will find the songs are still in the same order. See this question over on AskDifferent for more details.

In the second possibility, that the same songs keep coming up while others seem to get no play time at all, it is especially evident if you have a large playlist. After resetting my playlist counters and then playing the same playlist for a few days, I noted that some songs had been played 3-4 times while hundreds of others had no plays. Apparently, Apple automatically weights the songs you play as more likely to be played again when in a random list. Unfortunately, this means that after it has played 20-30 songs, those become the ones it thinks you want to hear most. Resetting the play counter resets this, but you’d have to do it pretty frequently. The workaround that I have is I make a smart playlist and tell it not to include anything that has played in the last 3 days (you can extend that depending on how much you listen and how big your playlist is). This evens out the plays considerably. It may not be perfect, but to me it has made it so I don’t notice repeating songs anymore.

Tagged : / / /

Ubuntu HowTo: What is the best way to control music on my PC from my iphone or android?

Original Source Link

Apple has a very slick tool, called “Remote.app” that allows you to control music playback on a PC running iTunes, see.

It lets you quickly select and queue songs for playback, and adjust the volume among other things. What’s the best linux-compatible alternative? I’m not married to a particular music player on my PC – Banshee, Rhythmbox, whatever, I’m open.

My ideal vision is laying on the couch queuing up songs without having to turn on a monitor. Wow.. putting it like that makes me feel lazy.

Anyway…VNC is cumbersome…surely there’s a better way?

You can do it with mpd.

You have to set up the daemon such that it allows ssh connection (basically comment the line bind to adress: 127.0.0.1 in the config file /etc/mpd/), then it will play in the background. You can then control it from any client (i.e. from any device which can connect to your PC) there is a list there:

http://mpd.wikia.com/wiki/Clients

Some of them are particuliarly designed for Iphone. Some are php clients also, which can be fun.

This is what I’m using at home and it works perfectly!

If you have an iPhone/iPod touch that you want to use you can install Songbird – although it is not under developement for Linux you can still get an unsupported version.

https://wiki.songbirdnest.com/Developer/Articles/Builds/Contributed_Builds#Linux

iTunes has an app for songbird that you can use to do exactly the same as it’s remote – I’ve tried it and it works fine on Linux.

I think you should take a look on this list: http://www.techdrivein.com/2011/08/5-android-apps-for-remotely-controlling.html

Tagged : / / /

Linux HowTo: How to separate voice and background music from a video file

Original Source Link

Is it possible to separate voice and background music from a video file?

I only need the background music.

Type of video: MP4

Working on Windows XP 32 bit SP3

Unless they’re separate audio tracks in your video, not easily. What you’ll probably have to do is extract the audio track from the video into a separate file, edit the audio file with a dedicated tool, then remux the result back into the video.

The demux/remux part is easy. What’s going to be difficult is attempting to isolate the background music. You’ll probably have to experiment with different effects, all of which will most likely result in either a significant loss of fidelity in the audio or not entirely removing the dialogue, if not both. What’s more is that you’re going to be re-encoding that output into a new mp3/aac file, and between the re-encoding and audio processing, your output is going to sound much worse than the original.

You may have better results by trying to re-master the background music and replacing the audio track in the movie file entirely.

Spleeter

Spleeter is a Python library that can extract music and vocals from a joint audio source. It is machine-learning based and can provide different output types (the number of stems extracted).

It provides the following output:

  • Vocals (singing voice) / accompaniment separation (2 stems)
  • Vocals / drums / bass / other separation (4 stems)
  • Vocals / drums / bass / piano / other separation (5 stems)

Audacity

Audacity – a free and open-source cross-platform audio editor – can do this, using the Vocal Reduction and Isolation effect. You should first extract the audio from the video file, e.g. using ffmpeg:

ffmpeg -i video.mp4 -c:a pcm_s16le audio.wav

And then load the audio.wav file into Audacity:

If you only want to get background music, select the Remove Vocals option; if you want the opposite, choose Isolate Vocals.

Note that this is never going to sound perfect. Vocal isolation is a hard task, as everything you hear is basically mixed into two tracks. An algorithm will never be as good as your brain in isolating different sound sources. Your audio source should be a stereo file with the vocals being panned dead-center. It might also produce false-positives, removing other instruments in the process.

I managed to remove background conversation/noise from a video by running a low-pass filter that was built in to the editor that I was using. The whirrs of my robot, which was the target of my video, remained.

Note that I am not an audio expert, and I cannot guarantee this will work for your particular case, but it’s worth a try.

Tagged : / /

Making Game: How to separate voice and background music from a video file

Original Source Link

Is it possible to separate voice and background music from a video file?

I only need the background music.

Type of video: MP4

Working on Windows XP 32 bit SP3

Unless they’re separate audio tracks in your video, not easily. What you’ll probably have to do is extract the audio track from the video into a separate file, edit the audio file with a dedicated tool, then remux the result back into the video.

The demux/remux part is easy. What’s going to be difficult is attempting to isolate the background music. You’ll probably have to experiment with different effects, all of which will most likely result in either a significant loss of fidelity in the audio or not entirely removing the dialogue, if not both. What’s more is that you’re going to be re-encoding that output into a new mp3/aac file, and between the re-encoding and audio processing, your output is going to sound much worse than the original.

You may have better results by trying to re-master the background music and replacing the audio track in the movie file entirely.

Spleeter

Spleeter is a Python library that can extract music and vocals from a joint audio source. It is machine-learning based and can provide different output types (the number of stems extracted).

It provides the following output:

  • Vocals (singing voice) / accompaniment separation (2 stems)
  • Vocals / drums / bass / other separation (4 stems)
  • Vocals / drums / bass / piano / other separation (5 stems)

Audacity

Audacity – a free and open-source cross-platform audio editor – can do this, using the Vocal Reduction and Isolation effect. You should first extract the audio from the video file, e.g. using ffmpeg:

ffmpeg -i video.mp4 -c:a pcm_s16le audio.wav

And then load the audio.wav file into Audacity:

If you only want to get background music, select the Remove Vocals option; if you want the opposite, choose Isolate Vocals.

Note that this is never going to sound perfect. Vocal isolation is a hard task, as everything you hear is basically mixed into two tracks. An algorithm will never be as good as your brain in isolating different sound sources. Your audio source should be a stereo file with the vocals being panned dead-center. It might also produce false-positives, removing other instruments in the process.

I managed to remove background conversation/noise from a video by running a low-pass filter that was built in to the editor that I was using. The whirrs of my robot, which was the target of my video, remained.

Note that I am not an audio expert, and I cannot guarantee this will work for your particular case, but it’s worth a try.

Tagged : / /

Ubuntu HowTo: How to find (and delete) duplicate files

Original Source Link

I have a largish music collection and there are some duplicates in there. Is there any way to find duplicate files. At a minimum by doing a hash and seeing if two files have the same hash.

Bonus points for also finding files with the same name apart from the extension – I think I have some songs with both mp3 and ogg format versions.

I’m happy using the command line if that is the easiest way.

I use fdupes for this. It is a commandline program which can be installed from the repositories with sudo apt install fdupes. You can call it like fdupes -r /dir/ect/ory and it will print out a list of dupes. fdupes has also a simple Homepage and a Wikipedia article, which lists some more programs.

FSlint has a GUI and some other features. The explanation of the duplicate checking algorithm from their FAQ:

1. exclude files with unique lengths
2. handle files that are hardlinked to each other
3. exclude files with unique md5(first_4k(file))
4. exclude files with unique md5(whole file)
5. exclude files with unique sha1(whole file) (in case of md5 collisions).

fslint Install fslint

List of programs/scripts/bash-solutions, that can find duplicates and run under nix:

  1. dupedit: Compares many files at once without checksumming. Avoids comparing files against themselves when multiple paths point to the same file.
  2. dupmerge: runs on various platforms (Win32/64 with Cygwin, *nix, Linux etc.)
  3. dupseek: Perl with algorithm optimized to reduce reads.
  4. fdf: Perl/c based and runs across most platforms (Win32, *nix and probably others). Uses MD5, SHA1 and other checksum algorithms
  5. freedups: shell script, that searches through the directories you specify. When it finds two identical files, it hard links them together. Now the two or more files still exist in their respective directories, but only one copy of the data is stored on disk; both directory entries point to the same data blocks.
  6. fslint: has command line interface and GUI.
  7. liten: Pure Python deduplication command line tool, and library, using md5 checksums and a novel byte comparison algorithm. (Linux, Mac OS X, *nix, Windows)
  8. liten2: A rewrite of the original Liten, still a command line tool but with a faster interactive mode using SHA-1 checksums (Linux, Mac OS X, *nix)
  9. rdfind: One of the few which rank duplicates based on the order of input parameters (directories to scan) in order not to delete in “original/well known” sources (if multiple directories are given). Uses MD5 or SHA1.
  10. rmlint: Fast finder with command line interface and many options to find other lint too (uses MD5), since 18.04 LTS has a rmlint-gui package with GUI (may be launched by rmlint --gui or from desktop launcher named Shredder Duplicate Finder)
  11. ua: Unix/Linux command line tool, designed to work with find (and the like).
  12. findrepe: free Java-based command-line tool designed for an efficient search of duplicate files, it can search within zips and jars.(GNU/Linux, Mac OS X, *nix, Windows)
  13. fdupe: a small script written in Perl. Doing its job fast and efficiently.1
  14. ssdeep: identify almost identical files using Context Triggered Piecewise Hashing

If your deduplication task is music related, first run the picard application to correctly identify and tag your music (so that you find duplicate .mp3/.ogg files even if their names are incorrect). Note that picard is also available as an Ubuntu package.

That done, based on the musicip_puid tag you can easily find all your duplicate songs.

Another script that does this job is rmdupe. From the author’s page:

rmdupe uses standard linux commands to search within specified folders for duplicate files, regardless of filename or extension. Before duplicate candidates are removed they are compared byte-for-byte. rmdupe can also check duplicates against one or more reference folders, can trash files instead of removing them, allows for a custom removal command, and can limit its search to files of specified size. rmdupe includes a simulation mode which reports what will be done for a given command without actually removing any files.

For Music related duplicate identification and deletion Picard and Jaikoz by http://musicbrainz.org/ is the best solution. Jaikoz I believe automatically tags your music based on the data of the song file. You don’t even need the name of the song for it to identify the song and assign all meta data to it. Although the free version can tag only a limited number of songs in one run, but you can run it as many times as you want.

Have you tried

finddup

or

finddup -l

I guess it works fine.

I use komparatorsudo apt-get install komparator (Ubuntu 10.04+ ) – as GUI-tool for finding duplicates in manual mode.

Tagged : /

Linux HowTo: How can I stream music through VoiP?

Original Source Link

What I want is: Stream a music through Teamspeak/Skype/Mumble… while I can talk also.
Using Stereo mix is not an option. If I use that, I can’t speak, and everyone will just hear themselves.

OS: Windows 7 x64

(The question is rather brief. If you can extend it with anything, please do so.)

Virtual Audio Cable does the thing. It can mix several sources, so you can talk, and stream music at the same time. (And much, much more.) There is a free version available, the V3.

Tagged : / / / /