electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Supercollider
OMG! Vocoder + Rapid-fire samples = neat spectra
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Fri Dec 29, 2006 8:18 pm    Post subject: OMG! Vocoder + Rapid-fire samples = neat spectra Reply with quote  Mark this post and the followings unread

I've been working on a technical study of very rapid sample events. Tonight I sat down and thought, what would this sound like through a vocoder?

Actually it was f'in cool. I'm definitely going to use it.

I'm so completely psyched I couldn't even wait until tomorrow to share.

Yes, folks, this is my Friday night. I gave up having a life long ago Razz (don't worry, I'm happily coupled -- I'm really not desperate!)

James

PS Let me also give away my vocoder patch. Just a simple bank of bandpass filters. I need to work on its amplitude scaling... currently it reduces the level of the input signal by a LOT. The number of bands is controlled by the "bands" argument -- this code will produce 10, 20 or 50 bands with no extra effort.

Oh, and I haven't tested a stereo vox signal yet...

Code:
Instr("busfx.vocoder", { |vocbus, vocChannels, bus, inChannels, bands, lowBand, hiBand, rq|
   var   sig, centerFreqs, splitFilt, amp;
   var   sig2, inSplit;

      // analysis phase
   sig = In.ar(vocbus, vocChannels) / rq;   // when bandwidth is small, need higher amplitude
   centerFreqs = Array.geom(bands, lowBand, (hiBand / lowBand) ** (bands-1).reciprocal);
   splitFilt = BPF.ar(sig, centerFreqs, rq);
   amp = Amplitude.ar(splitFilt);
   
      // resynthesis phase
   sig2 = In.ar(bus, inChannels);
   inSplit = sig2.asArray.collect({ |channel| BPF.ar(channel, centerFreqs, rq, amp) });
   Mix.ar(inSplit.flop)
}, [\audiobus, \numChannels, \audiobus, \numChannels, StaticSpec(1, 50, \linear, 1, 30), \freq, \freq, #[1, 0.005, \exponential, 0, 1]]);

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24079
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Fri Dec 29, 2006 8:52 pm    Post subject: Re: OMG! Vocoder + Rapid-fire samples = neat spectra Reply with quote  Mark this post and the followings unread

Nice toned clicks in that mp3

dewdrop_world wrote:
IThe number of bands is controlled by the "bands" argument -- this code will produce 10, 20 or 50 bands with no extra effort.


How many bands did you actually use for the posted track ? And what were your input signals like (apart from one input aparently being "very rapid samples") ?

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Sat Dec 30, 2006 7:00 pm    Post subject: Reply with quote  Mark this post and the followings unread

The source sound is based on a field recording I took in Washington DC a few months ago. I denoised it in Amadeus, then used an onset detector to identify 327 points of interest. I analyzed them for spectral similarity (more or less) -- that's all preliminary work that I did for an earlier track.

For this sound, I'm taking one row of the analysis matrix, sorting it based on the similarity metric, then overlapping six adjacent points. Every few seconds, I crossfade one of the samples out and replace it with the next one in the row, so the overall spectrum is always changing. There are also periodic accents and other embellishments. That's the sound that gets filtered.

The other vocoder input is a live signal from my voice.

I used 20 bands for that run. It was about 5 percent CPU on my MacBook Pro!

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
elektro80
Site Admin


Joined: Mar 25, 2003
Posts: 21959
Location: Norway
Audio files: 14

PostPosted: Sat Dec 30, 2006 8:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Very nice! Very Happy
_________________
A Charity Pantomime in aid of Paranoid Schizophrenics descended into chaos yesterday when someone shouted, "He's behind you!"

MySpace
SoundCloud
Flickr
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24079
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Sat Dec 30, 2006 9:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks James, the link you gave was an interesting read as well.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Jason



Joined: Aug 12, 2004
Posts: 466
Location: Los Angeles, CA. USA

PostPosted: Fri Jun 22, 2007 6:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

clips are gone can you fix links please if not too much work?
Back to top
View user's profile Send private message Visit poster's website
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Sat Jun 23, 2007 7:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

Which clip exactly is gone?

The audio clip is in an attachment to the first message on this thread. The attachment is still available from electro-music.com.

The link to the tutorial on my website is still good.

The code file linked from the tutorial is wrong, but I'm out of town using an unsecured wifi network -- so I don't want to log into my webserver to fix it until I get home (tomorrow late).

James

_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
Jason



Joined: Aug 12, 2004
Posts: 466
Location: Los Angeles, CA. USA

PostPosted: Sat Jun 23, 2007 7:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

Sorry when I tried initially to just stream it gave me an error, I had to save. Works fine when I save, thanks. Thought I used to be able to just stream.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: v-un-v
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Supercollider
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use