real-time harmonization of your voice in supercollider

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
shimpe
Established Member
Posts: 39
Joined: Mon Jan 09, 2012 8:11 pm
Contact:

real-time harmonization of your voice in supercollider

Post by shimpe »

Here's something I've had too much fun with the past 2 days.

The idea is this: you sing (or whistle, play, ...) monophonic notes into a microphone, and the computer
in (nearly) real-time adds pitch-shifted versions of your singing as to create a polyphonic choir piece. Each note
can be harmonized differently based on what you define in the UI. The harmonization can be adapted in the UI on the fly.

For a better explanation, a sound sample and the full code, head over to
http://a-touch-of-music.blogspot.be/201 ... voice.html

This works with the current version 3.6.6 of supercollider http://supercollider.github.io/archive.html.

Have fun, feel free to fork and improve, but beware... highly addictive!
ssj71
Established Member
Posts: 1294
Joined: Tue Sep 25, 2012 6:36 pm
Has thanked: 1 time

Re: real-time harmonization of your voice in supercollider

Post by ssj71 »

Looks like fun! If you want to up the anti, Harmon International did a demo when I was in school and showed us a tool they had that did this, but it would automatically voice harmonies according to the chords you play on a second audio input! I haven't dug into supercollider enough to try such a thing, but it would be even more addicting if it did that (for me at least). Its definitely not a task for the faint of CPU though. Not sure how plausible it is for RT without some specialized DSP hardware.
_ssj71

music: https://soundcloud.com/ssj71
My plugins are Infamous! http://ssj71.github.io/infamousPlugins
I just want to get back to making music!
shimpe
Established Member
Posts: 39
Joined: Mon Jan 09, 2012 8:11 pm
Contact:

Re: real-time harmonization of your voice in supercollider

Post by shimpe »

Hi Spencer, good to see you.

If we'd replace the secondary audio source with a MIDI instrument (e.g. keyboard) it should be quite similar to what is available now already - barring some
implementation details I'll have to think about. Sounds like a nice feature to try and implement in the new year (happy new year btw!).

If the secondary audio source is really an audio source, then it might still be doable if the source was monophonic (since that has a well-defined pitch that can be extracted with today's supercollider functionality). It may be interesting to just try it out with polyphonic, multitimbral stuff as well (after all the pitch extraction will always find something, even if it's not what we'd hope for) - perhaps another experiment for the new year :). I'll have to fake my secondary audio input with files though, since my equipment is rather... ahm... basic ;)

In the mean time, here's a longer piece made with HEAD revision in the github repository: https://www.youtube.com/watch?v=AKs25wQiIDU
StudioDave
Established Member
Posts: 753
Joined: Sat Nov 01, 2008 1:12 pm

Re: real-time harmonization of your voice in supercollider

Post by StudioDave »

Very cool ! I'll be testing this one, thanks for the SC code. :)

Best,

dp
Post Reply