Completely Stumped.

beets's icon

Hi guys

Thought I had this patch figured out, finally got it doing what I wanted to do but its not working and I have no idea why.

Basically -

Got sensors going into PhidgetInterfaceKit 8/8/8, thats working fine
It picks up sensors and changes, everything being packed and unpacked correctly
I've got a sample I'm trying to trigger with a toggle set up, which works on its own, but when I use the unpacked integer as a way to trigger the toggle it refuses to play.

Any ideas?

(I'm hoping to have a separate sample for each of the 8 outputs)

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

Code:

beets's icon

Weird thing is when the togglebox becomes checked the information sent from unpack (it goes Unpack --> (Can use numberbox here) --> Togglebox) the toggle box goes to 'Checked' which should trigger the sample, but it wont...

I've tried clicking on the toggle box and that works, as does using a numberbox inbetween and moved the number from 0 to 1 using the mouse, however when the interface/controller information is sent to the togglebox it doesnt work.

Basically everything works but as soon as I connect the interface to the togglebox it becomes unstuck.

Chris Muir's icon

You might try a [deferlow] between the Phidget and the rest of the patch.

Peter McCulloch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I don't have a Phidget, but I'm guessing that it's probably a problem with sending continuous values.

beets's icon

Awesome, thanks for the help.

Managed to get it working by setting the peak value received from the interface (998) as the parameter in a select object, then have that feeding a message saying '1' meaning it only gets played when the 998 value is hit.

With that it works for all the separate samples on the channels.

Got some inspiration from a post I read concerning a 'GuitarHero4' controller to trigger samples.

Many thanks for the responses guys!