We can open and play audio files using the Audio File Node.
You can go ahead and create this Node straight away, or just drag-and-drop a file from your desktop onto the Patcher. AudioNodes will automatically create an Audio File Node for us, with the drag-and-dropped file loaded. If you created your Audio File Node manually, its properties panel offers the option to browse for a file.
Let’s open some files from the Ambient Waves pack (free download), and wire them up using an Add (Audio/Control) Node with 3 inputs, a Gain Node, and an Audio Destination Node (see the Introduction section for how this can be done):
The Audio File Node has a single audio output, which we can wire up to an Audio Destination Node directly to listen, or to any other Node to perform further audio processing (adjust volume, add audio effects, combine it with other audio using an Add (Audio/Control) Node, and so on).
The Audio File Node outputs audio when playing your project (either by pressing SPACE, or by clicking the Play button). Play now to test your opened sounds.
Try adding some more files and see how they sound together. You can also have a separate Gain Node each to control the volume of individual audio clips, and you can add extra audio effects if you’d like.
The next article will show you how to arrange your audio clips in time, and make them loop.