Author |
Message |
Frostburn

Joined: Dec 12, 2007 Posts: 255 Location: Finland
Audio files: 9
|
Posted: Mon Jun 02, 2008 6:41 am Post subject:
Sound morphing via amplitude / phase decomposition Subject description: whistling with an edge |
 |
|
I made a little Python script with numpy to do the Hilbert Transform on a signal and decompose it to an amplitude and a phase signal. (Works best with a sinusoid input)
(I didn't use ChucK's FFT for that because it I couldn't get the manual .transform() to work)
Then it was just a simple matter of recomposing the phase and amplitude back together but with a TriOsc twist. :)
Code: | SndBuf a => Gain AM => dac;// => WvOut w => blackhole; "triangle_whistle.wav" => w.wavFilename;
SndBuf p => TriOsc t => AM;
"amplitude.wav" => a.read;
"phase.wav" => p.read;
3 => AM.op;
0.5 => p.gain; //"phase.wav" uses the full range. Scale \
Step shift => t; //and shift it to work as a ChucKian phase.
0.5 => shift.next;
1 => t.sync;
a.samples()::samp => now; |
Posting this because I thought it sounded cool. I think the technique has potential.
Sorry for not posting the Python script part but it's just too hacky because I'm still learning the language.
Description: |
Me whistling a tune to the microphone. Highpassed to get rid of the DC. |
|
 Download (listen) |
Filename: |
whistle.mp3 |
Filesize: |
153.42 KB |
Downloaded: |
808 Time(s) |
Description: |
The same tune after morphing in to a triangle wave. |
|
 Download (listen) |
Filename: |
triangle_whistle.mp3 |
Filesize: |
153.42 KB |
Downloaded: |
859 Time(s) |
_________________ To boldly go where no man has bothered to go before. |
|
Back to top
|
|
 |
ultrasine

Joined: Aug 31, 2006 Posts: 16 Location: Europe
|
Posted: Thu Jun 12, 2008 1:02 am Post subject:
|
 |
|
Dude, I have no idea what youre talking about but the audio clips you posted are cool. |
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Jun 12, 2008 2:22 am Post subject:
|
 |
|
Yeah, the triangle wave whistle sounds like a good effect. By the way, there's an effects collaboration going on, you might like to participate. They are going to send out audio samples and then we send back processed audio files. I'm on the mailing list for that one, but there's very little activity. Seems like an academic crowd. Just thought you might be interested. _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
 |
Frostburn

Joined: Dec 12, 2007 Posts: 255 Location: Finland
Audio files: 9
|
Posted: Thu Jun 12, 2008 3:00 am Post subject:
|
 |
|
Inventor wrote: | By the way, there's an effects collaboration going on, you might like to participate. They are going to send out audio samples and then we send back processed audio files. I'm on the mailing list for that one, but there's very little activity. Seems like an academic crowd. Just thought you might be interested. |
I sure would!
Link please. _________________ To boldly go where no man has bothered to go before. |
|
Back to top
|
|
 |
ultrasine

Joined: Aug 31, 2006 Posts: 16 Location: Europe
|
Posted: Thu Jun 12, 2008 3:03 am Post subject:
|
 |
|
Inventor wrote: | Yeah, the triangle wave whistle sounds like a good effect. By the way, there's an effects collaboration going on, you might like to participate. They are going to send out audio samples and then we send back processed audio files. I'm on the mailing list for that one, but there's very little activity. Seems like an academic crowd. Just thought you might be interested. |
You have a URL for that? I have loads of work but am easily tempted. |
|
Back to top
|
|
 |
Frostburn

Joined: Dec 12, 2007 Posts: 255 Location: Finland
Audio files: 9
|
Posted: Thu Jun 12, 2008 3:28 am Post subject:
|
 |
|
ultrasine wrote: | Dude, I have no idea what youre talking about but the audio clips you posted are cool. |
Thanks.
I plan to work on this, and other cool stuff that can't easily be done with ChucK, more in the future but that'll probable be in Python/C++. _________________ To boldly go where no man has bothered to go before. |
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Jun 12, 2008 4:17 am Post subject:
|
 |
|
Frostburn wrote: | Inventor wrote: | By the way, there's an effects collaboration going on, you might like to participate. They are going to send out audio samples and then we send back processed audio files. I'm on the mailing list for that one, but there's very little activity. Seems like an academic crowd. Just thought you might be interested. |
I sure would!
Link please. |
Frostburn and ultrasine, here is the link to get on the mailing list:
http://iua-mail.upf.es/mailman/listinfo/dafx-eval
There is a link there to read all the prior mailings. I can't seem to locate the original message that notified me of the whole thing. I plan to submit my tube amp model if they have a category for it. Enjoy! _________________ "Let's make noise for peace." - Kijjaz |
|
Back to top
|
|
 |
|