Read Midi Out from Hardwaredevice

Hi
Since Midi-Package allows me to send midi commands to a hardware via Reciever.send() of a javax.sound.midi.MidiDevice i was wondering how reading from a usb-enabled midi keyboard can be implemented.
When creating a Transmitter with help of MidiDevice the Interface only offers getReceiver and setReceiver but no corresponding method like read() or some Listener to set.
Some internet research brought up some relation to Sequencer but i couldn't find in-depth information how to really use this.
Any suggestions on reading form midi commands for a hardware device?
tia Jakob
Sore for the formatting, but i don't get the problem of this form?!

Thx, that solved the problem. It is somehow hard to understand the concept of Javas midi package. Rather than using the Receiver of a Sequencer and ControllerEventListener, implementing a own Receiver, attaching it to the Transmitter of the MidiDevice and receiving messages with Receiver.send method, brings success.
Thx again Jakob

Similar Messages

  • Midi out from Audigy2

    Hello!
    I have a Audigy 2 ZS (not Platinum, no front panel) with connected game port. With keyboard via midi cables I can play midi in, but
    how can I make the computer play midi to the external synthesizer? I mean is it possible to take MIDI OUT from the card without Platinum Front Panel?
    Erkki Ranta

    xirja wrote:
    Any suggestions on getting midi out from Reaktor as an AU plugin?
    The AU standard in contrast to VST doesn't support MIDI output of plugins. But you can get basically the same effect using Reaktor standalone, slaved to Logic with MIDI clock and sending MIDI from Reaktor to Logic over IAC.

  • Logic Pro, the only host to not support midi out from plugins ?

    it seems that logic is the only host that does not support midi plugin output.
    something to do with the AU spec, lets hope that apple add support for these type of plugins sometime in the near future.

    Um, yeah. The Environment.
    Sensational.
    Here's one set of instructions on how to build a step sequencer using the environment:
    http://www.logic-cafe.com/Article_View.asp?ID=6&CategoryID=7
    Though I can confirm that it works, that is just so amazingly, utterly, retardedly bass-ackwards (the German phrase is "von hinten durch die Brust ins Auge" - "from behind, through the chest, and into your eye") that it's a perfect example of why I HATED Logic 7 and previous versions:
    There was always a way to do almost anything in at least a halfways-working fashion, but you had to actually know one of the engineers at Emagic to have the slightest clue of how to get it done.
    Logic 8 is the first version that actually feels like it was built for HUMANs.
    In short, I'm afraid that building a step sequencer in the environment really does not qualify as an option.

  • Does this give GB MIDI out now?

    I know GB couldn't do MIDI out. Does this application finally do it? What do you MIDI guys say?
    http://www.dontcrack.com/freeware/downloads.php/id/2221/software/midiO/
    MIDI out support for GarageBand
    MidiO is a small Audio Unit that generates MIDI out from GarageBand. In its current form, it is not intended to be a general purpose, full functionality MIDI interface. What it does provide is an internal MIDI out port to which other MIDI enabled programs can connect to. The MIDI data in the software instrument track for which midiO is chosen as a generator will be sent in sync with the playhead to the MIDI out port named "midiO".

    There's been lots of talking in this forum about MidiO. Just do a quick search!

  • JDBC pooling Oracle driver Socket read timed out

    I run Java EE application on Glassfish server v3 together with Oracle 12 DB on the same machine under Windows Server 2012 64bit. I use latest ojdbc7 driver.
    Connection pool config:
      <jdbc-connection-pool validation-table-name="DUAL" steady-pool-size="20" statement-cache-size="100" associate-with-thread="true" statement-timeout-in-seconds="30" idle-timeout-in-seconds="60" max-wait-time-in-millis="2000" validate-atmost-once-period-in-seconds="20" datasource-classname="oracle.jdbc.pool.OracleDataSource" pool-resize-quantity="5" max-pool-size="60" res-type="javax.sql.DataSource" name="dbPool" is-connection-validation-required="true">
      <property name="driverClass" value="oracle.jdbc.OracleDriver"></property>
      <property name="user" value="xxx"></property>
      <property name="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"></property>
      <property name="password" value="xxx"></property>
      <property name="portNumber" value="1521"></property>
      <property name="databaseName" value="orcl"></property>
      <property name="serverName" value="127.0.0.1"></property>
      <property name="oracle.jdbc.ReadTimeout" value="300000"></property>
      <property name="oracle.net.CONNECT_TIMEOUT" value="10000"></property>
      </jdbc-connection-pool>
    After 2 or 3 hours, when there is more than 1 user (3-5) using my application, it stops responding and I get this in glassfish logs
      javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.allocator|_ThreadID=152;_ThreadName=Thread-2;|RAR5038:Unexpected exception while creating resource for pool dbPool. Exception : javax.resource.spi.ResourceAllocationException: Connection could not be allocated because: IO Error: Socket read timed out
      Local Exception Stack:
      Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException
      Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO Error: Socket read timed out
    From the database side it looks like this
    Fatal NI connect error 12560, connecting to:
      (LOCAL=NO)
      VERSION INFORMATION:
      TNS for 64-bit Windows: Version 12.1.0.1.0 - Production
      Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 12.1.0.1.0 - Production
      Time: 13-JUN-2014 03:14:49
      Tracing not turned on.
      Tns error struct:
      ns main err code: 12560
      TNS-12560: TNS:protocol adapter error
      ns secondary err code: 0
      nt main err code: 0
      nt secondary err code: 0
      nt OS err code: 0
      opiodr aborting process unknown ospid (3404) as a result of ORA-609
    When I just reset db listener everything works ok for next 1-2 hours (depends on application load). So temporary solution is to run bat script from windows scheduler to reset the listener every 1h.
    I tried everything I could find - applied these parameters:
      - Sqlnet.ora:
      SQLNET.INBOUND_CONNECT_TIMEOUT=180
      SQLNET.EXPIRE_TIME=5
      - Listener.ora:
      INBOUND_CONNECT_TIMEOUT_LISTENER_IPC=120
    But still without success

    Is the problem here just that you need a connection pool that closes idle connections?  Some pools will close idle connections after a time out period.  And the pool lets you set that time out period.  If the pool you are using doesn't provide that then use a different pool.

  • I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic but Logic won't send midi data out to the MOTU Traveller to the Piano Disc player

    Hello All,
    I can record midi data from my Mason & Hamlin Piano Disc Pro Record through my MOTU Traveller into Logic Pro 9.1.8  but Logic won't send the midi data back out to the MOTU Traveller and thus to the Piano Disc player. I got it to playback one time but have no idea how and when it did it was looping or something because the velocity was way high coming back in and the damper pedal was slamming down. When I play a key on the piano the midi "in" light on the Traveller lights up. When I play the track back on my computer no lights blink on the Traveller and when I did the apple midi studio test in utilities when I play a key I get the confirmation signal noise and the Traveller blinks when I click on the down arrow of the Traveller in the Apple midi studio test the midi out light on the traveller never lights and the signal light on the piano does not blink either. No outbound signal at all...
    I have messed with every possible parameter I can find and and have had help from one of Piano Disc's premier editors but no luck. The piano was prepped for me on Logic so it would work with my studio.  I'm positive it's my fault and I'm overlooking something really simple and stupid but what!??!
    Somebody please help.  Thank you all in advance for ANY ideas you might have!

    Blues Piano,
    I'm not sure if this will be a help or not.  I'm so Logic Pro wet behind the ears that I make newbies look experienced.  However, I'm not expecting many on the Apple support forums have a PianoDisc system, much less one with the new optical record strip.  While I don't have any record strip on my PianoDisc, I do have a PianoDisc iQ that's only a month old.  I've been playing converted paper scrolls from hundred year old player pianos through it via the MIDI in port of the PianoDisc CPU.  I've found I have to open the MIDI file in Logic Pro (10.0.4) then go to <Track><New External MIDI Track> then copy the existing track to that new external track.  Only then can I see in the Track inspector (defaults left side of screen with the Icon for the instrument) the "Port" parameter.  Then I can select my external MIDI device in that Port selector. 
    I've also encountered problems with the PianoDisc not using enough force on the notes or using too much force.  To get around this problem, until I understand Logic better, I've been setting minimum and maximum volicities.  To do that I right click on the track and select "Select All."  Then I right click again and select "MIDI" then "MIDI Transform"  then "Velocity Limiter."  In the resulting pop up window in the center is a drop down and you can play with the velocity from "MIN" to "MAX" along with "ADD" "SUBTRACT" etc. 
    I hope this helps.  I envy you your Mason & Hamlin.  If you need more help on this just email me at pfleischmann at mac dot com.

  • Why does transport bar show Midi Out activity from an AUDIO track?

    I am running Logic Pro 9 on Mac OS 10.7.5 and I've noticed lately that The Transport display is indicating Midi output signal when I have an AUDIO track engaged. This happens when I engage the Record-Enable button, while I'm actually recording, or when i merely press Play. The good thing is that it does not affect my ability to record and playback my vocals.
    I should add that this also happens when I have a Software Instrument track playing or recording (but not when only Record-engaged). I'm not sure if that's what's supposed to happen since we are dealing with midi data in this instance. I know there should be Midi-In activity, but not sure about the Midi-Out activity.
    My Audio Track is used for recording vocals from my mic input, which is a separate in put from when I'm recording the output of an external midi instrument. I have checked all of my connections, I have tested my Midi Interface and Midi controller keyboard through Audio/Midi Setup in the Utilities and everything checks out. I have not added, taken away, or replaced any software, nor hardware.
    This is very puzzling to me because as far as my limited knowledge takes me, I do not think I should have any midi activity while I'm recording from my microphone inputs onto an Audio track. Any insight would be helpful.

    There's been lots of talking in this forum about MidiO. Just do a quick search!

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • Reading excel  sheet from out side of the server though sql developer.

    Hi ALL,
    Is it possible to read the excel sheet from the out side of the oracle server.
    If it possible please send me the sample code.

    Duplicate thread.
    Reading excel  sheet from local system though sql developer
    Also a FAQ
    SQL and PL/SQL FAQ

  • GetInputStream from request - read timed out

    I'm using Weblogic server 5.1 and a third party product
    (Blackboard), running on Win2k and IIS5.0.
    I've created a servlet and configured weblogic to execute the servlet
    for a given extension etc.. which works fine, but when trying to read from
    the ServletInputStream I get an IOException, "Read timed out". This isn't a
    problem in weblogic.servlet.internal.ServletInputStreamImpl, but something
    further back that sets the input stream. I've tried reset, but it appears
    that reset and marking is not supported. I know POSTs are working within the
    third party application, but I'm using PROPFIND and trying to read XML (the
    content-length is correct).
    Any suggestions,
    Matt Elton
    Univeristy of Northumbria
    Newcastle
    UK

    I would probably guess that CIS is configuring its socket threads to have particular timeouts (to limit the time you would wait if something seriously went wrong with the request). Typically CIS is focused on page generation in APP servers or portals and these app servers (or portals) tend to like timeouts on their requests. This of course is unsuitable for the scenario of uploading the file. I would consult the CIS documentation to see if there are any mechanisms for tuning this behavior. If not, try contacting support.

  • How can I convert/read out from a string Hex (8-bit), the bit 0 length 1

    How can I convert/read out from Hex (8-bit), the bit 0 length 1 (string subset!!??) and convert it to decimal.
    With respect to one complement and two complement ?

    Just like Jeff, purely guessing here.
    It almost sounds like you just need to Read from Binary File?
    AND the 8-bit number with 1?
    Need more details.  What exactly do you have to start with?  What exactly are you trying to get out of it?  Examples help.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • No Midi In or Out from Logic Pro on MacBook Pro. Worked fine on my G5...

    Hi, I've recently bought a Macbook Pro (Unibody) to replace my old G5. I've reinstalled Logic Pro 7 and the Midi drivers for my MIDISPORT 4x4.
    The Midisport active LED pulses as it should when idle, and the LEDS on the MIDISPORT flash when receiving MIDI in but I can't hear anything in Logic. Logic has also stopped transmitting MIDI out. So as it is I can't play any virtual instruments on the Mac, nor can I even play my hardware gear, there is just nothing!
    I've checked and rechecked the settings but no luck. It all worked fine on the G5.
    This is really frustrating as I need the Mac to do some live gigs and at the moment I've got a £900 paperweight. Any advice gratefully received.

    Have you reinstalled the drivers on your Macbook?
    http://www.m-audio.com/index.php?do=support&tab=driver&PID=a4fc99df673e54ff97ce3 99bbbfdef71&serie_ID=4#tabs
    Oh yeah, scrap that, it says you did.
    Also are you trying to power it from the laptop, if it has an ac adapter port, you may need to plug that in too, it might not be getting enough power from the laptop.
    Actually scrap that too, I've just had a look it's solely USB
    Message was edited by: bill borez
    Message was edited by: bill borez
    Message was edited by: bill borez

  • Send midi from software sequencer to midi out

    I am quite new to logic and sometimes am confused about the midi routing...
    I have a sequencer (Reaktor) in a software instrument track, from wich I want to send midi to my hardware synthesiser. (sometimes maby recording the midi coming out from reaktor to a midi track)
    I have the output channel in Reaktor set to the same as the receive channel of my synthesiser. (everything works fine in Reaktor standalone)
    But I was not able to do it from logic ...
    I tried option-clic on the triangle in the track in the environnement, to draw a beautiful cable to the corresponding midi channel of my instrument track...
    And a few other things...
    My synthesiser still recieve nothing.
    If anyone can show me the road, i will be very grateful.
    Thanks

    Here is thread from the Reaktor Forum:
    http://www.native-instruments.com:80/forum/showthread.php?t=63504&highlight=Midi +Output
    some Ensembles don't transmit Midi to the Outside world - this one does:
    http://www.native-instruments.com/index.php?id=userlibrary&type=0&ulbr=1&plview= detail&patchid=6669

  • MIDI Cable from Elec Drums to interface not reading audio

    I'm plugging a Roland HD-1 Electronic Drum set into my M-Audio FastTrack Pro Interface to record on garageband 09. The drums have a single Midi port labeled Midi Out. The interface has 2 Midi ports labeled Midi In & Out. I am using a midi cable that has a left and right/in out plug. One is red the is gray.
    I cannot seem to get an audio reading. Is it because I'm using the split cord or is there a setting I must change

    Clifford Hritz wrote:
    does GB have a no effects choice for the software inst drums?
    no
    what should the audio preferences be set to?
    for input, it doesn't matter, you have no audio device connected:
    http://www.bulletsandbones.com/GB/GBFAQ.html#midionreal
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    for output it should be Built-In

  • Caught in a conundrum while trying to upgrade a Mac Mini (mid 2010) from Snow Leopard to Mountain Lion

    Hi gang,
    I am in a very frustrating position as I try to upgrade my Mac Mini (mid 2010) from OS X 10.6.8 Snow Leopard to whatever the latest version of Mountain lion is. The reason I am doing this is because the original hard drive died and the Mini sat there for 6 months before we decided to get a new hard drive and revive it.
    I installed a new 500GB 7200rpm SATA drive and the problems began.
    First I couldn't get Mountain Lion installed as a fresh OS installation (using both a USB drive and a DVD to no avail). It just wouldn't go. The grey Apple logo/loading screen would come up and just sit there doing nothing while the loading icon spun.
    I then tried installing Snow Leopard (the OS that the Mini came with when it was new). After some messing around, that got done.
    However, a peculiar thing happens when the Mini boots. Everything loads up into Snow Leopard, but although the mouse curser moves, I cannot click on anything or use the keyboard for 4-5 minutes. Then it just work (I am typing this on the Mini). This happens every time.
    Now, when I updated to 10.6.8, I was able to load up the App Store and download the Mountain Lion install app. I clicked it and went through the initial copying of files and then the restart, but after the reboot, the grey loading screen would not progress. I rebooted again and held down the Option key to check out the available boot volumes, and all I saw was the installation DVD I had in there for Snow Leopard and a hard disk volume called "Mac OS X Installer."
    So I booted into the Snow Leopard install DVD and opened Disk Utility to check things out. I did a verify disk and a permissions repair. Interestingly, the first repair I did gave me the message that the ACL was missing from Volumes and that is was fixed. I read something somewhere which talked about the Access Control List and mouse/keyboard issues. But who knows. When I boot back into the Mini as normal I am returned to the fully-functioning Snow Leopard installation, like nothing happened.
    And now here is the kicker: it appears that the Firewire bus is hooped. In the Profiler, when I view the FireWire settings I get the message, "Warning: Unable to list FireWire devices." So I am pretty sure the one thing I cannot do is boot the Mini into target disk mode attached to my Mac Pro and installed Mountain Lion that way.
    So to recap: I can't finish the Mountain Lion installation because the install won't continue after rebooting because there is something wrong with the underlying base system, which might be hardware (FW bus) related. I think.
    Some things I have tried:
    Resetting the SMC
    Resetting the PRAM
    Reparing permissions
    Booting into Safe Mode (doesn't work)
    Booting into Verbose Mode to observe what happens (I get the "Can't load the Bootcache.playlist" error, which I suspect is related to the screwed up FW bus)
    Trying to boot using Internet Recovery (doesn't work)
    Booting into Single User Mode and attempting the "fsck -y" etc. sequence to try and repair the ACL that way
    So I am stuck.
    I guess the question is, should I get an external HD enclosure and install Mountain Lion onto the hard drive that way and hope it works when I put it back into the Mini?
    Any other ideas? I have spent a couple days ******* around with this is am running out of ideas...
    Any advice would be appreciated!

    Addendum: I read on a post here (http://forums.macrumors.com/showthread.php?t=420169) about removing some kext files in order to trick OSX into thinking that there were no FireWire ports.
    I followed the instructions and removed from /System/Library/Extensions/ the following files:
    IOFireWireSerialBusProtocolTransport.kext
    IOFireWireAVC.kext
    IOFireWireFamily.kext
    IOFireWireIP.kext
    IOFireWireSBP2.kext
    I restarted and BAM...Snow Leopard booted crazy fast and the mouse and keyboard worked instantly.
    The System Profiler says "No FireWire ports were found."
    So this tells me that the FW port is probably the culprit and is messing up the installation.
    So how do I hack the Mountain Lion installer and tell it to ignore the FW port, which is obviously quite dead? Or is there something I can do to the Base system that is similar?

Maybe you are looking for