In this chapter I will give some indications on how to build the core structure of a sampler, gathering the information of Lesson 5, 6, 7, and 8, and shaping it along the methods for creating musical structures discussed in Lesson 4.

The most difficult task in Max is to find a way to connect algorithms to sound engines to create interesting musical structures. This chapter is focussed particularly on this task, expanding the musical knowledge and information outlined in Lesson 4 with some new algorithmic ideas, new methods for signal processing, and with the use of buffers and samples playback.

In the first instance, I will discuss how to build a system to create sounds with samples. That is, how to use coding in Max to create short, one-shot sounds, to make loops, to control playback speed, and to deal with buffers and samples writing or recording.

I will provide then some examples on how to create new algorithms or combinations of objects to make interesting processes with good musical applicability.

A third and very important aspect is to then look at some artistic applications that use sampling as their basis. While doing this, I will also discuss some analytical abstraction that could help finding more ways of combining structures and processes.