journal article·2017-09-21Open access

Supporting an Object-Oriented Approach to Unit Generator Development: The Csound Plugin Opcode Framework

Victor Lazzarini

Applied Sciences· Volume 7· Issue 10

Abstract

This article presents a new framework for unit generator development for Csound, supporting a full object-oriented programming approach. It introduces the concept of unit generators and opcodes, and its centrality with regards to music programming languages in general, and Csound in specific. The layout of an opcode from the perspective of the Csound C-language API is presented, with some outline code examples. This is followed by a discussion which places the unit generator within the object-oriented paradigm and the motivation for a full C++ programming support, which is provided by the Csound Plugin Opcode Framework (CPOF). The design of CPOF is then explored in detail, supported by several opcode examples. The article concludes by discussing two key applications of object-orientation and their respective instances in the Csound code base.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Music Technology and Sound Studies · Music and Audio Processing · Digital Humanities and Scholarship

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Music Department, Maynooth University, Maynooth W23 X021, Ireland

References (30)

Show source-provided references
1. The Development of Computer Music Programming Systems10.1080/09298215.2013.778890 ↗
2. Dodge, C., and Jerse, T.A. (1997). Computer Music: Synthesis, Composition and Performance, Schirmer. [2nd ed.].
3. Real-Time Software Synthesis on Superscalar Architectures10.2307/3681016 ↗
4. Lazzarini, V., ffitch, J., Yi, S., Heintz, J., Brandtsegg, Ø., and McCurdy, I. (2016). Csound: A Sound and Music Computing System, Springer.10.1007/978-3-319-45370-5 ↗
5. Boulanger, R. (2000). The Csound Book, MIT Press.
6. Referential Transparency, Definiteness and Unfoldability10.1007/BF00277387 ↗
7. Boulanger, R., and Lazzarini, V. (2010). Understanding an Opcode in Csound. The Audio Programming Book, MIT Press.
8. Pope, S. (1991). Machine Tongues IX: Object Oriented Programming. The Well-tempered Object: Musical Applications of Object-Oriented Software Technology, MIT Press.
9. Stroustrup, B. (2013). The C++ Programming Language, Addison-Wesley. [4th ed.].
10. Puckette, M. (2007). The Theory and Technique of Computer Music, World Scientific Publishing.10.1142/6277 ↗
11. Rethinking the Computer Music Language: Supercollider10.1162/014892602320991383 ↗
12. Wilson, S., Cottle, D., and Collins, N. (2010). Writing Unit Generator Plug-ins. The SuperCollider Book, MIT Press.
13. Boulanger, R., and Lazzarini, V. (2010). The Audio Programming Book, MIT Press.
14. Cook, P., and Scavone, G. (1999, January 22–27). The Synthesis Toolkit (STK). Proceedings of the 1999 International Computer Music Conference, Beijing, China.
15. The SndObj Sound Object Library10.1017/S1355771800001060 ↗
16. Lazzarini, V. (2017, January 5–8). The Design of a Lightweight DSP Programming Library. Proceedings of the 14th Sound and Music Computing Conference 2017, Aalto University, Espoo, Finland.
17. ISO/IEC (2017, July 25). ISO International Standard ISO/IEC 14882:2014, Programming Language C++. Available online: https://www.iso.org/standard/64029.html.
18. Lazzarini, V. (2017, January 5–8). The Csound Plugin Opcode Framework. Proceedings of the 14th Sound and Music Computing Conference 2017, Aalto University, Espoo, Finland.
19. Pope, S. (1991). Machine Tongues XI: Object-Oriented Software Design. The Well-tempered Object: Musical Applications of Object-oriented Software Technology, MIT Press.
20. On Understanding Types, Data Abstraction, and Polymorphism10.1145/6041.6042 ↗
21. Lippman, S.B. (1996). Inside the C++ Object Model, Addison Wesley Longman Publishing Co., Inc.
22. Standard C++ Foundation (2017, July 25). How to mix C and C++. Available online: https://isocpp.org/wiki/faq/mixing-c-and-cpp.
23. Abrahams, D., and Gurtovoy, A. (2004). C++ Template Metaprogramming: Concepts, Tools, and Techniques from Boost and Beyond (C++ in Depth Series), Addison-Wesley Professional.
24. Boulanger, R., and Lazzarini, V. (2010). Time-Domain Signal Processing. The Audio Programming Book, MIT Press.
25. Moore, F.R. (1990). Elements of Computer Music, Prentice-Hall, Inc.
26. Boulanger, R., and Lazzarini, V. (2010). Spectral Opcodes. The Audio Programming Book, MIT Press.
27. The Phase Vocoder: A Tutorial10.2307/3680093 ↗
28. IEEE/Open Group (2017, July 25). The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008. Available online: http://pubs.opengroup.org/onlinepubs/9699919799/.
29. Wishart, T. (1996). Audible Design, Orpheus The Pantomine Ltd.
30. ISO/IEC (2017, July 25). ISO International Standard ISO/IEC 14882:2011, Programming Language C++. Available online: https://www.iso.org/standard/50372.html.