Instructables
Picture of Intermediate MaxMSP
This Instructable is a continuation of Intro to MaxMSP, a three part workshop I'm teaching at Women's Audio Mission here in San Francisco.  This Instructable build upon the topics discussed in Intro to MaxMSP and introduces some ways to work with audio in Max.  Part 3 of the workshop focuses on how to get Max to talk to hardware.  First off, here are some examples of the types of things you can do with audio in Max:

Fornant synthesis - using filters to recreate human vocal sounds

Audio to MIDI

 

Granular Synthesis- cutting up a sample into tiny grains and pieces the grains together to make new sounds

 
Remove these adsRemove these ads by Signing Up

Step 1: Lists - Pack / Unpack

In Max, it's often useful to deal with lists.  A list is an ordered series of messages, lists can contain numbers and words.  The "pack" object lets you create lists of all different sizes.  Create a pack object.  By default pack creates lists containing two messages, so it has two inlets.  The leftmost inlet of the pack object is hot and the remaining inlet is cold.  Send a 4 to the hot inlet, since the cold inlet has note yet been set, pack uses its  default value of 0 to complete the list: {4,0}.  Now send a 24 to the cold inlet and send another 4 to the hot inlet, you should see {4, 24}.

You can make longer lists by adding arguments to the pack object.  The number of arguments you add to the pack object will dictate the length of list that pack creates and also sets the default values for each index of the list.  Experiment with creating lists of different sizes and sending messages to the any number of the cold inlets before triggering output.

Unpack is the opposite of pack.  Create an unpack object with three arguments and use it to parse the output from pack.  Swap is another interesting object to use with lists.  Wire up swap between two outlets of an unpack and two inlets of a pack to switch the order of those elements in the list.

----------begin_max5_patcher----------
721.3oc4WF0aaCBDG+Y6OEHdNqx.1j3819bLMUQhYszkfirwsYqpe2Gb1oIs
q1Am5Qi1TjvBLA9e+tiiyOFGgWVtSViQeF8UTTziwQQvPtAh55Gg2H1sZsnF
lFV2rYorBOq8UeuTapU+R5dEgdUR2vkMl0Ri4maksKMVoM3YH7Rg9FL5acyx
tTJscdvBS5Fbqvr5Vk9lqqjqLs+a1hT6JiH4D2irDWK0197BoJ.oUt7tOQoG
KMsXCn.7WpTh03C6aq.gMl97FWYmsQVcsTKVtF9eItW8TbrqYV3Az1JYsTaD
FUo9Xdv.DvnL2ijtlwiUF+JZ1LTZpObM4eetR4oSAWoySFAWIe3bU9fUH62K
ibGXFVFAnaPZ6MQXLfHYoY.fSGhHj7wRjozpEq9AJw8arAZ8jVi4AUHPbBmO
HUVLVpPlNpT+fX6Ydvy83sIC8zmfX7bHdIePxLezmftLyp2c3flMIY0YIKNc
1GB++gr57VtlNIY08iqYWnY0azPFtzLDggl+NNSO3QaOtJflN2Avb1fXjMVL
xNCTUuVUbHDz2D6CcDLizFpP2ab1hWS6yFo8j9dhCHV1XLk5dsxyqxbRWk4Y
oGrzdcljo6dpMx5ZwMx+H7llNQWaO3kS4GYyVer0SSV711LODWZ2GLBAKXDu
YA6Cr.FHoGAQQrvUVGMg4QYcuGn.KHdsR+5ufGTka7WRp5xlpU6Mr84dPGzU
gr1nzv8mGMI5KmzsphBI798LqPU6RLUzelIe0i6iLOodbUBa8jAQODe0CIH5
wUp6QaUO9qjf4u.8bx3GR3zyBe7W4gSOLeieBjd39nm4gKdNyW8DP+E8T5gG
V8bpy6uBh+U0iOtKV3jiOWeQB1sEDhmxILzgcQoFtmp4bR7zVGjX616kU0cK
IHDasg2UV45xmAcU51tvmzfqj2q1OenfNrnxVMmwVJWSUakX6Vvwwt84o3eC
TZqv0C
-----------end_max5_patcher-----------
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!