Replacing Callbacks with Generators: A Case Study in Computer-Assisted Live Music
ฝัง
- เผยแพร่เมื่อ 27 พ.ย. 2024
- 🔊 Recorded at PyCon DE & PyData Berlin 2024, 24.04.2024
2024.pycon.de/...
🎓 Watch how Matthieu Amiguet transforms a complex callback mess into a readable and efficient system using generators in computer-assisted live music.
Speakers:
Matthieu Amiguet
Description:
In a fascinating talk titled "Replacing Callbacks with Generators: A Case Study in Computer-Assisted Live Music," Matthieu Amiguet, a musician and mathematician turned developer, shared insights based on his work at Les Chemins de Traverse. The collective, which focuses on sonic exploration and live performance, dived into the challenges faced in developing an interactive realtime audio processing system for live music performances. They found that the use of callbacks, although commonly employed in programming, became burdensome in this context.
Amiguet detailed how they streamlined their system by implementing a thin abstraction layer, replacing complex callback structures with more readable generators. By utilizing generators, which yield results instead of the traditional return method, they were able to enhance the efficiency and clarity of their code significantly.
At Les Chemins de Traverse, they blend different musical styles and techniques, creating a unique sonic experience. By leveraging tools like Olivier Bélanger's pyo module for realtime audio processing, they aim to augment traditional acoustical instruments with computer-generated sounds, adding a new dimension to live music performances.
Through their experience, Amiguet showcased how a thoughtful abstraction layer can simplify code, enabling a more focused approach to music production rather than getting entangled in technical complexities. While their case study is music-specific, the principles they applied can be adapted to various scenarios where callbacks lead to convoluted and cumbersome code structures.
⭐️ About PyCon DE & PyData Berlin:
The PyCon DE & PyData conference unite the Python, AI, and data science communities, offering a unique platform for collaboration and innovation. The PyCon DE & PyData Berlin 2024 conference, hosted in partnership with the local Berlin PyData chapter, provided an exceptional experience, fostering deeper connections within the Python community while showcasing advancements in AI and data science. Attendees enjoyed a diverse and engaging program, solidifying the event as a highlight for Python and AI enthusiasts nationwide.
Follow us:
• LinkedIn: / 28908640
• X: www.x.com/pyconde
• X: www.x.com/pyda...
Links:
• Conference website: pycon.de
• Related sessions: 2024.pycon.de/p...
The conference is organized by
• Python Softwareverband e.V.: pysv.org
• NumFOCUS Inc.: numfocus.org
• Pioneers Hub gemeinnützige GmbH: pioneershub.org
If you enjoyed this session, please like, comment, and subscribe to our channel for more insightful talks and discussions.
Share this video with your network to spread the knowledge!
Hashtags:
#Python #PyConDE #PyData #OpenSource #AI #DataScience #MachineLearning #SoftwareDevelopment #LLMs #Community
Acknowledgements:
Special thanks to all the volunteers and sponsors who made this event possible.
About:
Python Softwareverband e.V.:
PySV is a non-profit that promotes the use and development of Python in Germany through events, education, and advocacy, fostering an open Python community.
NumFOCUS Inc.
supports open-source scientific computing by providing financial and logistical support to key projects like NumPy and Jupyter, promoting sustainable development and collaboration.
Pioneers Hub gemeinnützige GmbH:
is a non-profit fostering innovation in AI and tech by connecting experts and promoting knowledge exchange through events and collaborative initiatives.