Modulate a signal with Audio Input

MicroFi's icon

Hey!,

I'm new to max/msp but I found a nice project which I want to work on to learn a bit more about basic programming: http://little-scale.blogspot.com/2006/11/toriton.html

I was able to reproduce the patch succesfully, which is already a major thing to me, but the resulting sound doesn't really satisfy me yet. I've tried to take a basic looper and modulate the speed (and other things) of the loop with an audio signal (once again the audio signal is provided by a solar cell). Problem is: I just can't make it work.

Sorry for my noobish question, but I'm just starting out and I'm eager to learn. Can anyone please help me? Thanks!

MicroFi's icon

Anyone?

DonK's icon

How are you getting an audio signal out of a solar panel? Is it powering some 555's or something?

Is it converting the sunlight into a control voltage running through an arduino or something?

Why a solar panel? I could think that a simple light sensor or ultrasonic sensor would give you more control and a better range.

MicroFi's icon

Hey Donk, thanks for the reply!

Sorry if I didn't make myself clear in my first post. I'm not getting an audio signal out of the solar panel. I just directly connected the + en - of my solar panel to a male audio jack, which means it only produces higher and lower voltages.

I'd like to keep it simple, so no 555's or arduino ...

MicroFi's icon

So anyone got anymore ideas?
I'd be really thankful if anyone could help me.

MicroFi's icon

This is the code I've got right now. Maybe that helps a bit.
I'm just looking for a way to modulate the sample speed (and other parameters) by an incoming signal. It can't be that difficult :)

Max Patch
Copy patch and select New From Clipboard in Max.

Ben Bracken's icon

sounds like a stroll through the MSP tutorials is in order. Specifically, you will want to check out Tutorial 14 which covers sample playback with groove~.

Check out Tutorial 23 for techniques on how to get numerical values from signals. Also check out the peakamp~ and avg~ objects.

In general, going through the tutorials is going to radically improve your mental toolbox.

-ben

MicroFi's icon

Thanks for helping me on my way, Ben.
I'll definately check those parts of the manual out.

It's just that it's difficult to find my way inside the many possibilities of max.

DonK's icon

I've used fiddle~ (search on maxobjects for it) to convert control voltage from my theremin, but i did it through a make control board.
The CV voltages were read by the make controller, and turned into values between 0 and 1024 which Max read and used fiddle to pitch shift a sample.

The key was the controller which took in analog signals and converted them into signals Max could read.