Page 1 of 1

Utter MIDI newbie lost in the woods

Posted: Wed Feb 09, 2011 4:50 pm
by gilimanjaro
Hey all,

I'm completely new to all things MIDI and all things LinuxSampler, but I think it can do what I want.

- I want a process running in the background (which would be LinuxSample)
- other processes can (whenever they see fit) send a command to this process to play a note (or sound)
- for now it's fine if the sound comes out of the audio port of the computer the process is running on (happens to be a Mac right now)
- later on, I'd like to encode that audio-stream to a live mp3-stream that people can hook into

I think I've gotten LinuxSampler to launch and I think it's tied an instrument to a channel.

Now I need to figure out how to send a MIDI-note to that channel (I think).
Do I first have to set up some sort of virtual MIDI-device?

My current .lscp:

Code: Select all

SET ECHO 1
LIST AVAILABLE_AUDIO_OUTPUT_DRIVERS
GET AUDIO_OUTPUT_DRIVER INFO COREAUDIO
CREATE AUDIO_OUTPUT_DEVICE COREAUDIO

# setup one sampler channel
ADD CHANNEL
LOAD ENGINE gig 0
SET CHANNEL AUDIO_OUTPUT_DEVICE 0 0
LOAD INSTRUMENT '/Users/giel/Gigs/maestro_concert_grand_v2.gig' 0 0

# show what we did
GET CHANNEL INFO 0

LIST AVAILABLE_MIDI_INPUT_DRIVERS

# quit connection
QUIT
This is giving OK's all over. But what do I do next?

Any tutorials that would help me?

Re: Utter MIDI newbie lost in the woods

Posted: Wed Feb 09, 2011 4:53 pm
by gilimanjaro
I guess I learn fast...

Code: Select all

SEND CHANNEL MIDI_DATA NOTE_ON 0 56 112
Seems to work!