How to Convert Multiple Waveforms in to one on a Kslider?

Dec 2, 2011 at 6:11am

How to Convert Multiple Waveforms in to one on a Kslider?

Down below I’ve posted an outline of the patch I have created (just to keep it simple because the real thing is really messy). I have explained what exactly is the problem with which I am struggling and I would be very greatful if someone can help me.

Edit*: I’m sorry i can not provide the actual patch because It doesn’t let me to copy and compress it (probably because im using external libraries for it’s creations). Instead i have made a picture of it , i hope that helps. In the patch I have used certain objects which are from the excellent book ”Electronic & Sound Design” and all credit goes to the creator of it.

Sadly, I couldn’t find a fix to my problem in the tutorials of max or the book (most probably because there is so much information I just couldn’t find what I was looking for..but I’m sure it’s somewhere there.)

As you can see, I have a generator that is a ”complex” waveform created by drawing sinewaves and it’s partials. After that I have created a number box to control the frequency of the wave which is connected to a phasor~ which it’s self is connected to a wave~ object which is basically the ”complex” wave i have generated earlier and then that is sent to the dac~ object via gain. I have done this twice so I can then manipulate the two complex waveforms with a different envelope (maybe separate there frequencies as well and so on and so on.)

Everything is fine for this part but what i want to do is to take this a step further. After I put something (lets say the envelope) to control the amplitude of the first wave form and i put a sum object to the frequency of the second waveform …let’s say to double it up for designing a more complex sound. That way i get two sounds which are quite distinct from one and other but are playing as a whole (that is if i do not manipulate one of them in a way that actually starts playing one of them with a slight offset in time which i will not do for now), anyway… with the help of the envelope the sound will actually be ‘moving’ and adjustable and it won’t be just a static waveform sustaining on and on and on.

Ok that’s easy but the actual thing is after that I want to take that sum of the two waveforms which was manipulated and have the option to load it and play it by my midi keyboard via a kslider ( or just visually by interacting with the object).

What I’m asking for is a way to get the manipulated signal and somehow “sample” it live so it is then layered let’s say on a kslider object or some sort of sequencer. At the same time I am going to keep a sustained waveform via a simple gain object connected to the dac. That way i will have a long sustained note in the background (for a bass or a pad) and a manipulated waveform which I can sequence by playing on a kslider , drawing on a sequencer or something like that.

Take a look at the patch which i have provided, It’s really easier to understand there. I hope i didn’t bore you to death with my problem, i just started programming in Max and I feel like a real noob but..hey…that’s what I’m here for, Cheers.

EDIT2: There is second question I wanted to ask but i will not create a new topic for it so… Does someone know how to reverse a sound. I know that if i load a sample in sfplay and give it a negative playback value speed it will begin reversing but can i do the same thing to a sound generated by an oscilator for example? Thank you.

[attachment=178110,3007]

Attachments:
  1. patch.png
#60410
Dec 2, 2011 at 9:08am

This is the actual patch, I have managed to export it :

– Pasted Max Patch, click to expand. –
#217381
Dec 2, 2011 at 11:22am

Look at the [poly~] object if you want multiple instances of your patch running at the same time. What sort of oscillator are you trying to reverse? If you’re reading something from a [buffer~] then look at the “reverse” message to [mxj buf.Op].

#217382
Dec 2, 2011 at 12:50pm

in this instance im trying to reverse the one that I’m using in the above patch so i will take a look but i think i can not get it because im not so famillar with the program. As for the poly~ object I am looking at it at the moment but i think it will allow me only to ‘duplicate’ my patch without actually capturing the oscilation of all the oscilators so i can then layer the captured information as a sequence of notes via kslider or a sequencer.

#217383

You must be logged in to reply to this topic.