Author Archive
Sailing in Stockholm archipelago
by teknopipo on Aug.29, 2010, under Friends
Leave a Comment more...Vacation 2010 in the USA
by teknopipo on Aug.25, 2010, under Friends
Me and Sini had an awesome and relaxing 23 day vacation in the USA. We spent about a week in New York City and spent the rest of the time driving around the East coast, staying in motels and camping. Some pictures!
New Scochy track!
by teknopipo on Jul.28, 2010, under Audio, Friends
Only the first bounce, so will still work on mix, compression et cetera, but the basic idea is here and it sounds awesome! Vocals by Cissi, awesome bass track by Steve
Soundcloud
by teknopipo on Jul.17, 2010, under Audio
I decided to start using Soundcloud for sharing some tracks. And as it turns out I can nicely embed tracks in WordPress thanks to this nice plugin. Here’s a first short snippet that I’m working on.
Utö
by teknopipo on Jul.13, 2010, under Friends
Last weekend me and a few friends went camping on the island of Üto. We rented kayaks, grilled and went swimming in the nice Swedish Archipelago. It was very relaxing, so thanks everyone for a wonderful weekend!
Jazzfestival Breda 2010
by teknopipo on Jun.28, 2010, under Family, Friends
Leave a Comment :breda, holland, jazz more...Götebogsvarvet
by teknopipo on May.22, 2010, under Friends
Today Sini, Jens and Thomas successfully completed the Göteborgsvarvet! Steve and I cheered for them along the track as many times as we could. I think we raced through every street in Göteborg at least eight times in our awesome BMW rental car
The weather was great, around 24 degrees in the blazing sun, so our friends reached a pretty impressive goal!
Java SysEx programming
by teknopipo on May.05, 2010, under Audio, Telecom
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 output. The following code works fine (tested with MIDI monitor and on a real SID station through an ESI MIDI Mate):
String[] outputs = de.humatic.mmj.MidiSystem.getOutputs();
int index = 0;
// insert code to set correct index here...
de.humatic.mmj.MidiOutput mo = de.humatic.mmj.MidiSystem.openMidiOutput(index);
mo.sendMidi(msg);
I’ve left out the code to determine the correct index as it is irrelevant. This could be a dropdown list in a GUI or some substring search or whatever. The following code tries to do the same thing using Snow Leopard libraries, but sends nothing at all:
javax.sound.midi.SysexMessage sysexMsg;
javax.sound.midi.Receiver receiver;
javax.sound.midi.MidiDevice.Info[] dev;
int index;
javax.sound.midi.MidiDevice myOutPort;
sysexMsg = new SysexMessage();
sysexMsg.setMessage(msg, msg.length);
dev = javax.sound.midi.MidiSystem.getMidiDeviceInfo();
// insert code to set correct index here...
myOutPort =
javax.sound.midi.MidiSystem.getMidiDevice(dev[index]);
myOutPort.open();
receiver = myOutPort.getReceiver();
receiver.send(sysexMessage, -1);
If you have succeeded in making this work, please let me know. MMJ development seems to have stopped so I’d kind of want to start using OSXs own stuff…




































