Please help me before i headbutt the wall. Using an external sequencer....

Hi.
I use an Akai MPC to sequence.
I have the MPC triggering sounds from various modules. However, i want it to trigger Logic Instruments, so i would have logic running at the same time as the MPC, but with the sounds of logic being played from the MIDI info on the MPC.
I have the midi out (from MPC) running into my soundcard. When i play a pad on the MPC Logic reads the note.
I want to set up logic with 5 different software instruments (for instance), each being controlled by a different midi channel on the MPC. I have loaded 5 instruments, and set each ones MIDI Channel from 1-5 respectivly. On the MPC, i have set up 5 tracks, each transmitting through the correct midi port, but from channels 1-5. In Logic, when the instrument channel is selected, the pads play that instrument. When i select a different track in logic, the sounds stop playing. Its as if the midi signal only goes through to that specific instrument when i have that track selected.
I want my 5 instrument tracks in Logic to play at the same time, being controlled by 5 midi tracks on the MPC.
I have looked all over logic to try to find settings to adjust but with no joy. I'm thinking it possibly has something to do with the environment page. I've been reading on this but still very confused about that page!
Please help!
Thanks,
Danny

>
1.) I dont understand where I should open
ServletOutputStream os = response.getOutputStream();
If I open it in the servlet(which is what I am doing
now) I have to pass it to the method. This seems like
what I should do. Is this correct?
2.) Is there a way to check the length of
inputStream? I tried is.available(); and nothing. Not
null - Not zero - nothing - blank.
Something wrong with your logic (not your code - your logic.)
available() returns an int. So if it returned it definitely returned an int value. It might not have returned (although I doubt it) but there is no way for it to return a 'blank'.
3.)How are they coming up with this number in this
line? byte b[] = new byte[16384];
Arbritarty. Choose any number you want. Small probably isn't good though.
Do I need to pass the length of my file here? The
above equals 16 kb but the file in this example is
28.5
Pass it where? Just guessing but I thing the length of the data (whether that is the file length or not) is needed.
4.) os.write(b,0,numBytes); - what does the zero mean
here? b is the new byte and numBytes equals the
number of bytes read? Is this correct?The b is a byte array. Zero is the index in the byte array where it needs to start.
is = rs.getBinaryStream(2);It generally isn't a good idea to extract fields from a result set out of order (you are skipping 1);
System.out.println("os" + os);This is pretty pointless. All you are doing is printing the hash of the reference. You can't print what is in there but you can print the byte buffer as hex if you want to see that.
numBytes17What makes you think that you actually even have the word doc in the database rather than just the name of the file?
What makes you think that the field that you are extracting is the blob field rather than just a name field? In other words you expect that field two is the blob field - how do you know that field 3 is not the blob field (you didn't post the query string.)

Similar Messages

Maybe you are looking for

  • After I restored my iPhone 4, I click Configure.. and it freezes and turns off. help?

    I´ve tried to restore my iPhone 4 twice now, and every time I get to the configuration thing (after turning on the iPhone) it just crashes and restarts? And when I plug it in to my mac, iTunes just say: There is a problem with your iPhone Does anyone

  • Reg: In Which Table Tax Details for the invoice are stored

    Team, Can you please help me in which table : tax information for the invoice is stored. I need the following tax : QST_PAID_AMOUNT ,GST_PAID_AMOUNT, GST_CONTRA_AMOUNT information for invoice. Thanks.

  • Dynamically Create Repeater Element in ActionScript

    Hi, I'm trying to dynamically create a repeater control with an image and a label control. I can do it directly in the MXML file but when I try and covert it into ActionScript it's not working. Can anyone see what the problem is with my code? public

  • JIT compiler "jitc" not found

    Hi, I've just installed JVM 1.4.2 for Unix Systems Services on z/OS 1.4 mainframe. When I issue the command java -version I get the following: # java -version Could not load dll : /usr/lpp/java/IBM/J1.4/bin/libjitc.so : EDC5157I An internal error has

  • "Your computer restarted because of a problem." due to GPU

    My computer spontaneously restarts and displays "Your computer restarted because of a problem." I can get access with safe mode. The Kernel Report shows the following: panic(cpu 0 caller 0xffffff7f8ffddf63): "GPU Panic: [<None>] 3 0 a0 d9 9 8 0 3 : N