volume – Parerga und Paralipomena http://www.michelepasin.org/blog At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Sun, 15 Sep 2013 12:01:47 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.11 13825966 Building a master volumes UI with impromptu http://www.michelepasin.org/blog/2013/09/15/building-a-master-volumes-ui-in-impromptu/ Sun, 15 Sep 2013 11:53:33 +0000 http://www.michelepasin.org/blog/?p=2401 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.

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

 

]]>
2401