Designing and Building the Patch
The patch that produces the sounds for this web game is available in the code download in the pd/WebProject directory. If you’d like to build the patch alongside the description, you can follow along, but I’ll stick to describing it here. In the following image, you can see the layout of the whole patch, grouped into sections with canvases like in the lightsaber chapter. We’ll go through this patch section by section.
![images/web_patch_full.png](/api/v2/epubs/9781941222492/files/images/web_patch_full.png)
Similar to the lightsaber patch, there’s a setup abstraction in a subwindow, and then a section for the control messages. For the sound effects, there’s a section for the spaceship’s thruster, one ...
Get Programming Sound with Pure Data now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.