Tag: cplusplus

Guide to C++ ValueTrees – The Secret Weapon of JUCE – Brett g Porter – ADC 2024

  • Lobby
  • Tag Archives: cplusplus

https://audio.dev/ -- @audiodevcon​
---

Guide to C++ ValueTrees - The Secret Weapon of JUCE - Brett g Porter - ADC 2024
---

The JUCE website says "The ValueTree class is JUCE's secret weapon," and it's true. They give you:

- A really easy way to capture and pass around the entire state of your application's data at run time
- A rich mechanism to watch that data at a fine degree of granularity
- Trivially easy persistence of application state

...but at the cost (in comparison to using native POD or class/struct variables) of being:

- slower
- less convenient to use
- less type-safe, since all values are stored in the JUCE var variant type.

This talk will explore the new Cello library to abstract away the underlying API calls in favor of syntax that's more like working with POD data. The original goal was to be able to write code something like the below, but using ValueTrees as the backing data store:

struct MyStruct : public cello::Object
{
cello::Value<int> x;
cello::Value<float> y;
};

MyStruct demo;

// will be executed any time the value of X changes
demo.x.onPropertyChange = [&demo] ()
{
std::cout << "x changed to " <<demo.x << "n";
}

// after executing this line, stdout should print: "x changed to 100"
demo.x = 100;
...and it's surprising how close to that we were able to get.

This project has a set of overlapping goals:

- make working with ValueTrees more like working with C++ objects and less like calling API functions
- add type-safety and type conversions without explicit use of VariantConverter objects
- reduce boilerplate wherever possible
- handle undo/redo management invisibly
- support validation of values when they are accessed
- explore the gray area between compile-time strong typing as in C++ and the kind of runtime dynamic typing that's possible using the ValueTree API
- explore the available methods of reactive programming enabled with this system
- build out new functionality that's implied by the capabilities of ValueTrees but perhaps not obvious, like:
- creating a kind of NoSQL database
- creating an in-process sync mechanism to make ValueTrees thread-safe
- creating a simple IPC implementation
- In general, add support for more complex use cases where the complexity can be hidden inside the framework.
---

Slides: https://data.audio.dev/talks/2024/beyond-valuetrees/slides.pptx
---

Brett g Porter

Brett g Porter is a composer, trombonist, and developer of music software, currently Lead Software Engineer at Artiphon, where he designs strange little electronic musical instruments. He is a frequent speaker on the topic of Music Technology at industry events including SXSW, the Audio Developers Conference, the NAMM Show, and the Audio Engineering Society convention. He also serves on the executive board of the MIDI Manufacturers Association, which defines and maintains the MIDI standards used by electronic instruments, and has been active in several of the working groups tasked with developing the MIDI 2.0 specifications. Brett holds degrees in composition and electronic music from the Frost School of Music at the University of Miami.
---

ADC is an annual event celebrating all audio development technologies, from music applications and game audio to audio processing and embedded systems. ADC’s mission is to help attendees acquire and develop new audio development skills, and build a network that will support their audio developer career.
Annual ADC Conference - https://audio.dev/
https://www.linkedin.com/company/audiodevcon

https://facebook.com/audiodevcon
https://instagram.com/audiodevcon
https://www.reddit.com/r/audiodevcon/
https://mastodon.social/@audiodevcon
---

Streamed & Edited by Digital Medium Ltd: https://online.digital-medium.co.uk
---

Organized and produced by JUCE: https://juce.com/
---

Special thanks to the ADC24 Team:

Sophie Carus
Derek Heimlich
Andrew Kirk
Bobby Lombardi
Tom Poole
Ralph Richbourg
Jim Roper
Jonathan Roper
Prashant Mishra

#cpp #adc #juce #audiodev #dsp #audio #conferenceaudio #audioprocessing #audioproduction #audioprogramming #musictech #soundtech #audiotech #audiotechnology

Filed under: UncategorizedTagged with: , , , ,

Branch-Free Oscillators for Virtual Analog Software Synth in C++ – Angus Hewlett – ADC 2024

  • Lobby
  • Tag Archives: cplusplus

https://audio.dev/ -- @audiodevcon​
---

Branch-Free Oscillators for Virtual Analog Software Synthesizer Applications in C++ - Angus Hewlett - ADC 2024
---

A discussion of techniques and approaches for building parallel branch-free oscillators for VA software synthesizer applications in C++ - exploring the stack from low-level machine instructions and CPU architecture up to signal processing concerns and language-level abstractions.

How can a branch-free design help you build more performant oscillators, how does it work underneath, and what are the advantages, disadvantages and potential pitfalls of this type of design approach?

If you're curious about CPU architecture and what's going on underneath your code, this talk will be an interesting window into that sometimes less-than-obvious world.
---

Slides: https://data.audio.dev/talks/2024/branch-free-oscillators/slides.pdf
---

Angus Hewlett

Technologist, Founder, Product Designer, Engineer, Manager and Mentor.

Founded FXpansion at the turn of the millennium and built software drum machines, synthesizers and utilities for 16 years.

Exited to ROLI in 2016 and joined their team as VP Engineering, managing a cross-disciplinary team of dozens of engineers and designers across software, hardware, web applications and R and D.

CTO at Image-Line from 2021-2023.

Now building a new product line to be released in 2024, and helping others to realise their product development dreams.
---

ADC is an annual event celebrating all audio development technologies, from music applications and game audio to audio processing and embedded systems. ADC’s mission is to help attendees acquire and develop new audio development skills, and build a network that will support their audio developer career.
Annual ADC Conference - https://audio.dev/
https://www.linkedin.com/company/audiodevcon

https://facebook.com/audiodevcon
https://instagram.com/audiodevcon
https://www.reddit.com/r/audiodevcon/
https://mastodon.social/@audiodevcon
---

Streamed & Edited by Digital Medium Ltd: https://online.digital-medium.co.uk
---

Organized and produced by JUCE: https://juce.com/
---

Special thanks to the ADC24 Team:

Sophie Carus
Derek Heimlich
Andrew Kirk
Bobby Lombardi
Tom Poole
Ralph Richbourg
Jim Roper
Jonathan Roper
Prashant Mishra

#adc #oscillators #audiodev #cpp #audio #audioprocessing #audioproduction #audioprogramming #sound #cppprogramming #musictech #soundtech #audiotech #audiotechnology

Filed under: UncategorizedTagged with: , , ,

Workshop: Klang – Live and Expressive C++ for Audio – Chris Nash – ADC 2024

  • Lobby
  • Tag Archives: cplusplus

https://audio.dev/ -- @audiodevcon​
---

Workshop: Klang - Live and Expressive C++ for Audio - Chris Nash - ADC 2024
---

A practical introduction to Klang, a C++ dialect (language extension) for audio, and rapIDE (rapid audio prototyping IDE), a complete C++ development environment in a DAW plugin, supporting live code editing, recompiling, and debugging. Developed to improve the liveness and usability of professional DSP practices, both tools facilitate the expressive design of new interfaces, sounds, and audio processes, while lowering the threshold to C++ for newcomers and learners, without compromising its expressive ceiling or performance.

ABOUT THE WORKSHOP

The workshop will feature discussions, live demonstrations, structured practical exercises, and assisted open exploration of the Klang language and rapIDE development platform, both available free for non-commercial use.

ABOUT THE TECHNOLOGIES

The Klang language (http://github.com/nashaudio/klang) is a single header include, compatible with any C++17 enabled platform, transforming C++ into an audio programming language with rich support for audio types, processes, and DSP primitives - notably also adding support for concise, explicit expressions of signal flow, allowing C++ code to more closely mirror block diagrams

The rapIDE IDE (aka Klang Studio; http://nash.audio/klang/studio) is a suite of cross-platform (Windows/Mac) audio plugins (in VST and AU format) that contain a complete integrated development environment (IDE) based on the LLVM/clang toolchain, supporting live, in-plugin coding, compiling, hot-swapping, analysis, graphing, and debugging without stopping the host (or even playback). Designed for rapid prototyping of C++ audio processes (e.g. synthesisers, effects), rapIDE is designed to integrate with existing workflows, such as desktop, embedded, and web audio development, but also provide a more immediate and immersive way to explore sound with C++.

FURTHER INFORMATION

Both technologies are pre-release and under active development, maintained by nash.audio, a non-profit organisation supporting projects in music and technology. Delegates require a Windows or Mac laptop, and are recommended to download and install rapIDE (aka Klang Studio) from nash.audio/klang in advance of the session.
---

Chris Nash

Chris Nash is a software developer, composer, educator and researcher in things that go beep in the night. Following a PhD on music software design at Cambridge, he has worked on technology and music projects across academia and industry, including for the BBC, Steinberg/Yamaha, and multiple start-ups, and independently develops and maintains several software projects, specialising in computer music and making music programming more accessible, including Manhattan (a hybrid DAW/programming language), Klang (a C++ dialect for audio), rapIDE (a plug-in based C++ IDE) and reViSiT (an award-winning plug-in based sound tracker).

He is currently Senior Lecturer in Software Development for Audio, Sound, and Music at UWE Bristol, and recently founded nash.audio, a non-profit organisation supporting creativity and learning in music technology. Working with London-based Point Blank Music School, Dr Nash is the architect of the forthcoming MuSE (Music Systems Engineering) course, developed in collaboration with industry to be the world's first professional audio developer degree programme.
---

ADC is an annual event celebrating all audio development technologies, from music applications and game audio to audio processing and embedded systems. ADC’s mission is to help attendees acquire and develop new audio development skills, and build a network that will support their audio developer career.
Annual ADC Conference - https://audio.dev/
https://www.linkedin.com/company/audiodevcon

https://facebook.com/audiodevcon
https://instagram.com/audiodevcon
https://www.reddit.com/r/audiodevcon/
https://mastodon.social/@audiodevcon
---

Streamed & Edited by Digital Medium Ltd: https://online.digital-medium.co.uk
---

Organized and produced by JUCE: https://juce.com/
---

Special thanks to the ADC24 Team:

Sophie Carus
Derek Heimlich
Andrew Kirk
Bobby Lombardi
Tom Poole
Ralph Richbourg
Jim Roper
Jonathan Roper
Prashant Mishra

#adc #daw #audiodev #cppprogramming #cpp #dsp #audio #audioprocessing #audioproduction #audioprogramming #musictech #soundtech #audiotech #audiotechnology

Filed under: UncategorizedTagged with: , , ,

Introducing ni-midi2 – A Modern C++ Library Implementing MIDI2 UMP 1.1 and MIDI CI 1.2 – Franz Detro

  • Lobby
  • Tag Archives: cplusplus

https://audio.dev/ -- @audiodevcon​
---

Introducing ni-midi2 - A Modern C++ Library Implementing MIDI2 UMP 1.1 and MIDI CI 1.2 - Franz Detro - ADC 2024
---

MIDI 2.0 implementations arrived in recent macOS and Linux versions, and Windows MIDI 2.0 support is expected to arrive end of 2024.

ni-midi2 is a modern C++ library implementing MIDI2 UMP 1.1 and MIDI-CI 1.2. The platform-independent library allows you to easily migrate your code to support MIDI 2, while maintaining compatibility to the traditional MIDI 1 protocol.

The talk will cover basic concepts of the library and real-world examples of how it helps you to achieve protocol-agnostic MIDI 2 support in your codebase.
---

Slides: https://data.audio.dev/talks/2024/introducing-ni-midi2/slides.pdf
---

Franz Detro

C++ developer and Audio/MIDI system architect covering a wide range of technologies, including firmware, USB, MIDI, middleware and Plugin frameworks.

Member of the MIDI Association Technical Standards Board and contributor to MIDI 2.0 and USB Audio/MIDI Device Class specifications.

Co-founder of midi2.dev - a collaboration platform for MIDI 2.0 developer resources.
---

ADC is an annual event celebrating all audio development technologies, from music applications and game audio to audio processing and embedded systems. ADC’s mission is to help attendees acquire and develop new audio development skills, and build a network that will support their audio developer career.
Annual ADC Conference - https://audio.dev/
https://www.linkedin.com/company/audiodevcon

https://facebook.com/audiodevcon
https://instagram.com/audiodevcon
https://www.reddit.com/r/audiodevcon/
https://mastodon.social/@audiodevcon
---

Streamed & Edited by Digital Medium Ltd: https://online.digital-medium.co.uk
---

Organized and produced by JUCE: https://juce.com/
---

Special thanks to the ADC24 Team:

Sophie Carus
Derek Heimlich
Andrew Kirk
Bobby Lombardi
Tom Poole
Ralph Richbourg
Jim Roper
Jonathan Roper
Prashant Mishra

#adc #audiodev #cpp #cppprogramming #dsp #audio #conferenceaudio #audioprocessing #audioproduction #audioprogramming #musictech #soundtech #audiotech #audiotechnology

Filed under: UncategorizedTagged with: , , ,