midi tagged posts

Toggling tracks and effects in Logic using an electronic drum kit

Category: Music Comments: 4 comments

For a while now, I’ve been searching on the internet for some decent instructions on how to program toggles in Logic using a MIDI drum kit or keyboard. I’ve found a few hints here and there, but nothing that explains it from beginning to end. A couple of weeks back I finally managed to get a working setup so here’s a description of how to go about it.

The idea is simple. A toggle is a button that turns something on or off. The mute button is an example of a toggle. If it is enabled, a track is muted; if it is disabled,  the track is unmuted. I wanted to be able to trigger the toggling using the MIDI output from an electronic drum kit...

Read More

Java SysEx programming

Category: MusicTech Comments: One comment

I’m taking my first steps into the world of JavaSound programming. The first thing I learned is that the Snow Leopard default javax.sound.midi.spi implementation is buggy when it comes to SysEx message transmission. For the time being I’m sticking with the MMJ library instead.

As an example, I’ve been trying to send a “SID Skip Patch” command to my SID station. The SysEx message for this command is F0 00 20 3C 01 00 03 F7.

The following code shows how to construct this message in Java (example based on SendSysex.java at jsresources.org):

String s = "F000203C010003F7";
int n = s.length() / 2;
byte[] msg = new byte[n];
for (int i = 0; i < n; i++) {
    msg[i] = (byte) Integer.parseInt(
    s.substring(i * 2, i * 2 + 2), 16);

The next step is to send the resulting byte array to a MIDI out...

Read More