RSS michelepasin.org / code, music, words

Words / blog / 15 September 2013

Building a master volumes UI with impromptu


Based on one of the examples packaged with Impromptu, I wrote a simple function that uses the objc bridge to create a bare-bones user interface for adjusting your audio instruments master volumes.

Using the objc bridge

The script assumes that your audio graph includes a mixer object called *mixer*. The UI controllers are tied to that mixer's input buses gain value.

The objc bridge commands are based on the silly-synth example that comes with the default impromptu package.

VolumeSLider

Being able to control volumes manually rather than programmatically made a great difference for me. Both in live coding situations and while experimenting on my own, it totally speeds up the music creation process and the ability of working with multiple melodic lines.

The next step would be to add a midi bridge that lets you control the UI using an external device, in such a way that the two controllers are kept in sync too. Enjoy!

P.s.: this is included in the https://github.com/lambdamusic/ImpromptuLibs

Michele Pasin. Building a master volumes UI with impromptu. Blog post on www.michelepasin.org. Published on Sept. 15, 2013.

2026

2023

2021

2020

2019

2017

2015

2014

2013

2012

2011

2010

2009

2008

2007

2006