audio + arduino in max

aaip's icon

Heya,

Does anyone know why when you turn on the audio symbol it only produces a sine wave sound?? the test file [a music track] is in the same folder etc. It is an aiff.

Also does anybody have any idea how to get the arduino's force sensitive resistor to activate the audio file using the serial object, or [I am guessing] the HI object may do the same job as serial?? Could be wrong there!

Any pointers?

Many thanks

A.

Antoine Villeret's icon

hi,

can you copy compressed and past your patch here ?
i could take a look at it

concerning the arduino, I never use it but I've see there are some externals and patches on maxobjects.com
moreover, arduino works well with Processing and it's easy to send OSC between Processing and Max, so might be a solution

+
a.

aaip's icon

heya heres the out put :

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

aaip's icon

here is the aiff player

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

aaip's icon

just so you know need to be open and with the dac on on the output

Antoine Villeret's icon

it works for me

did you check your DSP settings (valid driver, inputs and outputs) ?

aaip's icon

it has picked up the audio interface I used and i re-set the output channels to 5&6 which is what the speakers come out of the interface and set them to the computers default output still nothing :S.

Antoine Villeret's icon

does your meters display some signal ?

try to track the issue from source to destination :
-start the DSP
-are your players sending some audio ?
to see that put a meter~ just after a player, load a file with "open" and start it with "1"
if you don't see anything, your DSP might be OFF
- test the DSP with Audiotest in the extra menu
or your sfplay~ doesn't output anything
- test with another file (a long and full one to see the modulation, meter~ are not very sensitive in their default settings)

if this works try, assume that your DSP is OK and your sfplay~ too, so the issue might be in the send~/receive~
- does your meter~ in the output patch display something ?
if no, try to make an abstraction, replace your send~ with an outlet and load your patch by typing its name in an object box (assume that the 2 patches are in the same folder), and don't forget to plug your aiffplayer output to the meter~ and dac~.

if your master meter~ display some modulation, your patch works, but your sound card doesn't, so recheck it another time and have in your mind that you can use [dac~ 5 6] to output on channels 5 and 6 and check the output channel patch

good luck