Potentiometer value to cycle~

codal's icon

Hey all,

The solution is probably very obvious, but while working on a project for uni, I've run into a problem. Keep in mind this is the first time I've used Max/MSP but I'm already loving it!

So here's the deal. I'm trying to get a potentiometer (hooked up to an Arduino Uno) to control a cycle~ object in order to change the pitch of the instrument I'm working on.

Through processing and oscP5 I've managed to get the value of the potentiometer (which is between 119 and 1324) into a message. This message is called "/pitch (potentiometer value)".

Now how do I put the potentiometer value in a number object that I can send to the cycle~ object? I've tried using tosymbol, fromsymbol, unpack and iter objects...

Thanks in advance!

codal's icon

Case closed, I figured it out.

Steven Miller's icon

Just a heads-up - you don’t need processing for this, unless there’s some other reason you need it. You can send message from Arduino directly to the Max [serial] object.

codal's icon

Thanks for the reply, but in this project, we are using Processing to influence each other's products.