You are not logged in.

#1 2008-04-29 13:33:02

mrbug
Member
Registered: 2007-07-17
Posts: 221

slice audio at zero crossings

I would like to be able to slice audio at zero crossings. Are there any programs available to do this? I know that the closed-source Win/OSX program ReCycle will do it, but I'm looking for something that's F/OSS.

If there are no available programs, would it be possible to do this with a Perl script? If so, how would it (generally) be done? I'm pretty decent with bash scripting and I'm learning Perl. If there's another language that's better suited to this type of thing, I'm willing to learn.

I don't want to create a slice for every zero-crossing, though, as that would create tens of thousands of slices for a single audio file. If this is even possible, would there be a way to base it on some kind of adsr envelope/template? (In other words, based on spoken words or instrument wave patterns)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#2 2008-04-29 13:58:20

chimeric
Member
From: Munich, Germany
Registered: 2007-10-07
Posts: 254
Website

Re: slice audio at zero crossings

Heh, that just reminded me that I was looking for something like that as well smile. I did a little google research and found freecycle [1]. It seems it might do the job, though I have never used it, so I can't tell for sure. However, it's in the AUR [2]. In case you plan to give it a try I'd be happy if you'd share your experiences here smile.

[1] http://www.redsteamrecords.com/freecycle/index.php
[2] http://aur.archlinux.org/packages.php?ID=11636

Offline

#3 2008-04-29 14:05:41

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: slice audio at zero crossings

Pending a test tonight, that's perfect! The funny thing is that I actually saw that months ago before I thought about this...

This looks like it will work perfectly =-) I think that I also plan on taking a look at the source to see if I can isolate the algorithm to another program that slices the input file and saves as a specified number slices automatically.

Thanks for finding Freecycle! I would put [SOLVED] in the topic, but I'm not sure how...


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#4 2008-04-29 14:21:47

chimeric
Member
From: Munich, Germany
Registered: 2007-10-07
Posts: 254
Website

Re: slice audio at zero crossings

mrbug wrote:

Thanks for finding Freecycle! I would put [SOLVED] in the topic, but I'm not sure how...

You're welcome. Editing the first post of the thread should allow you to change the thread subject I think wink.

Looking forward to your test results smile.

Last edited by chimeric (2008-04-29 14:21:59)

Offline

#5 2008-05-01 12:02:28

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: slice audio at zero crossings

Figures... The newest version (6.1.1alpha) crashes within seconds of starting and previous versions won't compile. I'm not sure exactly why they won't, though. Perhaps there are some missing dependencies?

I know that this program will probably do what I want, but it's not wanting to cooperate! =-)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#6 2008-05-03 13:37:31

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: slice audio at zero crossings

Does it need qt3 rather than qt?

Offline

#7 2008-05-04 12:42:41

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: slice audio at zero crossings

It uses QT3, but that part is already configured in the PKGBUILD. I can't get JACK to work for some reason (it claims that the device files already exist), so I'm going to try to rebuild it without JACK support.

Here's what currently happens when I run it from a terminal (before rebuilding without JACK support):

(The terminal buffer is not long enough to get the beginning, but it shows that a lot of (LADSPA?) plugins load correctl)
-----------file: triple_para_1204.so
Triple band parametric with shelves loaded
-----------file: valve_1209.so
Valve saturation loaded
-----------file: valve_rect_1405.so
Valve rectifier loaded
-----------file: vynil_1905.so
VyNil (Vinyl Effect) loaded
-----------file: wave_terrain_1412.so
Wave Terrain Oscillator loaded
-----------file: xfade_1915.so
Crossfade loaded
Crossfade (4 outs) loaded
-----------file: zm1_1428.so
z-1 loaded
...End.
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
QSettings::sync: filename is null/empty
ALSA sequencer successfully opened.
created the MIDI port 128:0 Freecycle
A:0.1,0.05,0.5,H:0.1,D:0.1,0.25,1,S:1,R:0.1,0.95,0.5,Dur:1000,Res:100,M:1
Querying Jack...
Can't connect to JACK
Querying Alsa...
Initialised ALSA -  device: plughw:0,0 rate: 44100 channels: 2 periods: 2 buffer size: 2048 frames: 1024 period size: 4096 latency: 23.2727 ms
Segmentation fault

Last edited by mrbug (2008-05-04 15:29:20)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

Board footer

Powered by FluxBB