Alsa midi, timidity, fluidsynth and jack.

If you don't have a midi output on linux(cause your laptop has crappy audio hardware) you can use timidity or fluidsynth to emulate it.
timidity -iA -B2,8 -Os -EFreverb=0

Well, this piece of html has a bunch of incantations for using timidity on linux... and also gives insight into how to use alsa midi tools.

Like listing midi ports, and connection midi ports with these two commands:
$ pmidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
20:0 USB Axiom 25 USB Axiom 25 MIDI 1
128:0 TiMidity TiMidity port 0
128:1 TiMidity TiMidity port 1
128:2 TiMidity TiMidity port 2
128:3 TiMidity TiMidity port 3


To connect the midi input from my usb Axiom 25 keyboard to the timidity synth the aconnect is the command to use.
aconnect 20:0 128:0

The AlsaMidiOverview has more information on things.

#remove all connections...
$ aconnect -x

# list all the connections(without using pmidi)
$ aconnect -o

# a gui for connections
# aconnectgui



Another synth that can be driven by midi is fluidsynth. qsynth is the graphical interface for fluidsynth which makes it easier to tweak. You can use it in pretty much the same way as timidity. It opens up a port (which you can list with pmidi -l), and then connect it to your keyboard with aconnect. fluidsynth is probably a bit nicer than timidity... and you can use soundfonts with it. Heaps of free sound fonts are available from resonance.org and hammersound.net.

This plugin is *very* useful:
http://alsa.opensrc.org/index.php/Jack_(plugin)

It allows all your alsa using programs to be routed through your jack server. This means you can use all of your normal audio programs with low latency, good mixing and synchonised audio - even over the network (with netjack).

Ubuntu does not have the alsa jack plugin included for some brain dead reason... even though debian has had it packaged for a year or so. However building from source is simple. http://www.alsa-project.org/main/index.php/Download (./configure && make && make install). I've gone back to removing pulse audio, as this system works very nicely for me.

Here's my old jackd script, I put in a ~/bin/jack_mine and start with screen at boot.
jackd -R -P 70 -d alsa -p 256 -n 3 -r 44100

I can now use various synths, samplers, and effects racks from my python scripts.



Jamin is a mastering program with a eq, compressors etc. I don't think I'll need it for live work. However it might be useful for lots of instruments. I don't see any reason why it couldn't be controlled by another person with a midi controller.

Next up I need to see if multiple sound cards can work... unfortunately that apparently doesn't work the best. You can create a virtual sound card from multiple sound cards, but they have trouble syncing. It's funny that it's currently easier to sync sound cards on multiple machines than on the same machine... from what I know so far.

For my use I don't think sync will matter too much... that is listening with headphones with one card, and outputting to sound system with another channel. My inbuilt sound card has two output lines already, and one line input(which can also be used for output).

Dell inspirion 1525... the channels are:
1(l) - 2(r) - first headphone plug, or speakers if headphone not in plug 0.
5(r) - 6(l) - second headphone plug.
3(l) - 4(r) - third headphone plug.
7(x) - 8(x) - unused... (not soldered on?)

So looks like 6 usable channels... nice for a crappy cheap latop :) This is much nicer than what windows vista allows me to do, and also way nicer than the pulseaudio/gnome combination. I've used this setup to output 6 channel audio with various different playback libraries including pygame.

Comments

Surbhi Sharma said…
Obtain the details of your wireless network and follow the HP printer wireless setup instructions carefully to complete the process successfully. 123.hp.com/setup Be sure that the system and the printer are both connected on the same network. 123.hp.com/setup Easily Download 123 HP Printer Software, Quick Support for 123 HP Setup Installation, Step by Step instruction to connect, troubleshoot, ink cartridge, etc . 123.hp.com/setup Ger Our First Time HP Printer Support, 123.hp.com/install, HP Printer wireless Installation Setup, Fix   printer issues. 123.hp.com/setup This is the website for setup your hp printer as per the rules of  & recover your printer in troubles too, we are the service provider through online. You can connect all Wi-Fi equipment with 123 hp wireless printer configuration.  123.hp.com/setup 123 HP Com Wireless Setup. The following chapter provides.Download and install HP printer driver for mac and windows – wired and wireless network connection – User manual for HP ENVY 
Surbhi Sharma said…
To watch online prime videos on devices like computers, laptops, smartphones, and smart tv. You need to enter the 6 digit amazon activation code at amazon.com/mytv to watch the prime video.Ij.start canon is the solution for easy Canon printer drivers download. ij.start.canon allows you to install and set up a Canon inkjet printer and ensure that you receive outstanding printing results. canon.com/ijsetup To download, install and set up ij printer, follow the below quick guidelines; Prime video code is the 6-digit activation code on your TV screen when you click on “Register on the Prime website” to display the activation code that you will need to enter when you go to primevideo.com/mytv and sign in to your Prime video 7-days free trial or paid account.Visit ij.start.canon site to download the compatible ij.start canon drivers. Then, install Canon printer drivers downloads & set up your device in a manner to copy, print, scan or fax. canon.com/ijsetup To avoid any error or issues during the Canon ij printer setup, you can undoubtedly follow the below-mentioned instructions for ij start canon.
Kajal Agarwal said…
To activate your device: Grab your smart phone, tablet or PC and go to auth.streamotion.au/activate . Enter the code displayed on your TV screen to activate your device. To activate your device: Grab your smart phone, tablet or PC and go to auth.streamotion.au/activate . Enter the code displayed on your TV screen to activate your device. Once you enter the correct code your device will be activated. Wellsfargo.com/activatecard allows Wells Fargo Bank Card users to Activate Wells Fargo Card Online. If you have freshly received your credit card or debit card either in hand or in the mail then you will require to proceed with the Wells Fargo Card Activation before using it. American Express is an American Company of Finance which basically centers in the Master cards. Americanexpress.com/confirmcard card is the official webpage of American Express for users of AMEX Cards to confirm their card after they’ve received it in mail.

Popular posts from this blog

Draft 3 of, ^Let's write a unit test!^

Is PostgreSQL good enough?

post modern C tooling - draft 6