You are not logged in.

#1 2008-10-14 20:04:25

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Piping audio output?

I heard this rumor that playing the two cd's from the album 'drukqs' by Aphex Twin would make a 'new' album drukqs 3.  So far I've listened to it with

alsaplayer CD1/* & alsaplayer CD2/*

This would make them play at pretty much exactly the same time. If I run them in their own terminal the progress timer is exactly the same. So I'm happy with the output. And miraculously, it does sound good;) Although for the those unfamiliar with Aphex Twin: it can be pretty chaotic by itself:P

However, now I would like to pipe the audio output (i.e. 'drukqs 3')  to a new mp3 file. For example

alsaplayer CD1/* & alsaplayer CD2/* > drukqs\ 3.mp3

This of course doesn't work. Anybody have any idea to achieve something like this? It just seems so non-kiss to install a app like audacity just to make a file I can essentially already listen to:)

Last edited by lldmer (2008-10-14 20:07:03)


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

#2 2008-10-14 22:46:48

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Re: Piping audio output?

I ended up catting the two CD's to one file per CD, and mixed them with Audacity.

Would be nice if anybody knew of a way to somehow pipe audio output though:) Maybe with some kind of virtual sound device.


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

#3 2008-10-14 23:21:07

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Piping audio output?

I am not familiar with alsaplayer, but it looks like (alsaplayer CD1/*; alsaplayer CD2/*) > drukqs\ 3.mp3 would do, if it's anything like plain cat.

And (again) I'm not familiar with jack (jack-audio-connection-kit), but I think it can do audio piping (the site suggests so, but I never tried it).

Offline

#4 2008-10-15 01:04:49

lldmer
Member
From: Amsterdam
Registered: 2008-05-17
Posts: 119

Re: Piping audio output?

That would first play CD1/* and then CD2/*. What I meant was that drukqs 3 get's created when you play CD1/* at the same time as CD2/*.
Unfortunately it also doesn't seem to work like cat. I will look into jack in the future though. Read some nice things about it:)


For lack of better words: chair, never, toothbrush, really. Ohw, and fish!

Offline

#5 2008-10-15 01:15:16

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Piping audio output?

FFmpeg and Mplayer can both read from named pipes and mix multiple signals to a new output.

Offline

#6 2008-10-15 19:47:36

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: Piping audio output?

other then what's already said, pulseaudio might help too (they are similar, but jack is aimed for low-latency pro-audio, pulseaudio is meant for desktop users.)
Although if you can find a tool that just records the same as what you hear, you could use that in combination with the alsaplayer trick.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB