CHOPS as a audio synthesizer

   3862   9   3
User Avatar
Member
98 posts
Joined: 7月 2005
Offline
Im experimenting with Chops as a audio synthesizer.
Thanks to the post by Fabricio Chamon on Youtube explaining how the ChOPS oscillator chop can be use to generate all the notes on a piano. He explained the base frequency formula
261.63 * pow(2,(0/12))
which produces the note C.
I used this basic concept to generate synthetic audio with CHOPS.

On the SOP side a attributewrangle vex code block below created a animated attribute which controlled the audio amplitude via a geometry Chop node and the rectangle rotation in this movie

this is the code ... it makes a flattened sin wave

float sinflatten(int currentframe; int cyclelength; float flattenamount){
// currentframe is an integer
// cyclelength is the number of frames in the wave cycle
// flattenamount range is float 0 to 10
float bsquared = flattenamount * flattenamount;

float sinval = sin(2 * $PI * ((float)currentframe/(float)cyclelength));
float sinvalsquared = sinval * sinval;
float sqrtval = sqrt( (1.0 + bsquared) / (1.0 + bsquared * sinvalsquared) );
float yval = sqrtval * sinval;
return yval;
}
float flattenamount = ch("flattenamount");
float amplitude = ch("amplitude");
float valoffset = ch("valoffset");
int cyclelength = chi("cyclelength");
float cycleoffset = ch("cycleoffset");
@newyval = amplitude * (valoffset + sinflatten($FF+cycleoffset, cyclelength, flattenamount));
@P.y = @newyval;
Edited by WillA - 2022年12月23日 10:32:27

Attachments:
fromsoptochop_v10.mp4 (587.2 KB)

User Avatar
Member
28 posts
Joined: 3月 2014
Offline
Very cool!
User Avatar
Member
98 posts
Joined: 7月 2005
Offline
This time I tried a few vacation pics.
The image chop scans an image to create a channel as the source of the pitch modulation.

The idea is to convert an image into a song.
More audio detail would be helpful.

Image Not Found

Attachments:
crossfade_fromimagetochop.mp4 (2.3 MB)

User Avatar
Member
98 posts
Joined: 7月 2005
Offline
I want to develop a more complex algorithm for deciding which piano note to pick
per pixel so it's more in sync with the picture and the sound is more "other worldly"

a picture is a thousand words and maybe it's a thousand notes too
User Avatar
Member
98 posts
Joined: 7月 2005
Offline
Here is another example of my latest CHOPS network that now scans multiple rows of pixels
and uses hue saturation and luminance per pixel to generate audio .wav files.

It ain't pretty but it sounds that way.

I'm coining a phrase to describe the potential

A picture is worth a thousand words and maybe 1000 notes too

Attachments:
fromimagetochop_monalisa_marilyn_willself_v1.mp4 (4.2 MB)

User Avatar
Member
98 posts
Joined: 7月 2005
Offline
Motion and music have so much in common.
The sound in this clip is based on ground impact and angular velocity of a rbd dops network.

Simulation sometimes accidentally tells the story of a character that is inclined to
leave the herd and continue on alone.

Attachments:
rbd_collision.37.mp4 (339.4 KB)

User Avatar
Member
98 posts
Joined: 7月 2005
Offline
Im on a binge journey with generating audio with rigid body dynamics motion.
Never ending possibilities.

Attachments:
rbd_nail_v9.mp4 (626.0 KB)

User Avatar
Member
143 posts
Joined: 10月 2015
Offline
Did you ever check HMT houdini music toolset ? some really nice tool to make music from Houdini all CHOP based;
https://vimeo.com/536214871 [vimeo.com]
User Avatar
Member
98 posts
Joined: 7月 2005
Offline
Benjamin Lemoine
Did you ever check HMT houdini music toolset ? some really nice tool to make music from Houdini all CHOP based;
https://vimeo.com/536214871 [vimeo.com]

Yes I've been looking at Andrew Lowel's posts and the sounds generated by his approach are awesome.
I actually downloaded the HMT package and started playing with it a little.
The thing is I wanted to generate audio .wav files directly.
Then I found Fabricio Chamon's post on using the oscillator chop.
https://vimeo.com/343143856 [vimeo.com]
Its more down on the metal.
Not as elegant a sound quality but still interesting and has many possibilities.
User Avatar
Member
143 posts
Joined: 10月 2015
Offline
Thanks i will check your video !
  • Quick Links