Score:0

Suggestions to get best Java audio application performance

au flag

I am rebuilding the electronic organ I inherited from my father, and I plan to use Ubuntu on the controller that receives the signals from the console interface and feeds the sound system. This is a heavily loaded Java application. Each voice stop supplies one digital waveform to each key on a keyboard. So if you have four stops down and play an 8-note chord then that's 32 waveforms that have to be merged and fed to the sound device. That number is multiplied by the number of output channels: two for stereo, four for a 3.1 sound system, and six for the 5.1 home theatre system that I plan to use in the final rig. So the 8-note chord requires 384 integer additions for each sample, and 48,000 samples are required every second. So I want as little contention as possible for CPU cycles.

Luckily the application needs no disk or network I/O, and fits easily in 16GB physical memory.

So I'm interested in any and all suggestions to eliminate unnecessary system load, or improve audio output. Here are some ideas I plan to explore:

  1. Disable gnome (service gdm3) and run without a GUI
  2. Run with noswap
  3. Disable non-essential services
  4. Check around for any other suggestions about system config, or Java sound implementations, or anything else.

My specific questions are:

  1. Is Ubuntu server a better starting place than Ubuntu desktop?
  2. What services are essential? My laptop is running acpid, apparmor, apport, avahi-daemon, bluetooth, boinc-client, cron, cups, cups-browsed, dbus, gdm3, irqbalance, kerneloops, kmod, network-manager, openvpn, procps, rsyslog, udev, ufw, unattended-upgrades, uuidd, virtualbox, and whoopsie
  3. Is the default audio subsystem the best for a lightweight system?
  4. Does anybody have other good ideas?

Thank you for reading.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.