Tag Archive 'interface'

The Composite pattern is a very powerful design pattern that you use regularly to manipulate a group of things through the very same interface than a single thing. By doing so you don’t have to discriminate between the singular and plural cases, which often simplifies your design. Yet there are cases where you are tempted [...]

In the first part of this article we introduced predicates, which bring some of the benefits of functional programming to object-oriented languages such as Java, through a simple interface with one single method that returns true or false. In this second and last part, we’ll cover some more advanced notions to get the best out [...]

You keep hearing about functional programming that is going to take over the world, and you are still stuck to plain Java? Fear not, since you can already add a touch of functional style into your daily Java. In addition, it’s fun, saves you many lines of code and leads to fewer bugs. What is [...]

Low coupling between objects is a key principle to help you win the battle against software entropy. Making sure your dependencies are under control matters. Several tools can enforce dependencies restrictions, such as JDepend. However in a real project with many classes, packages and modules, the real issue is how to decide and configure the [...]

Here is an example of how to use the same knobs (e-g. 6 knobs easy to connect to the 6 Arduino analog inputs) several times to adjust several parameters spread over several « pages ». This enables to « multiplex » the same knobs many times, in a safely fashion thanks to the protection mecanism:  after changing the active [...]

Geometric Rhythm Machine

In the post “Playing with laser beams to create very simple rhythms” I explained a theoretical approach that I want to materialize into an instrument. The idea is to create complex rhythms by combining several times the same rhythmic patterns, but each time with some variation compared to the original pattern. Several possible variations (or [...]

In this last part, we put ideas into practice to build an instrument dedicated to play solo for electronic music genres. We will use light sensors, buttons and an Arduino board to control MIDI synthesizers in a way that is attractive to both musicians and non musicians.

Musical instruments for musicians and non-musicians, part Two.
In this post we have a look at how making a musical instrument smarter (or more music-aware) can make it much easier, especially for beginners.

Musical instruments for musicians and non-musicians, part One: Controlling the sounds

In this first post of the series we will analyse how various instruments provide control to the human player, and how this makes them easier (playability) or more expressive.