9 Replies Latest reply on Feb 18, 2009 1:53 PM by Phrankie

    MIDI commands?

    Phrankie Level 1
      Does Flex 2 have any MIDI commands. In Flex or Flash we can open and play an MP3, but not a MIDI sequence. Not only do I want to play MIDI sequences, I need to send individual MIDI messages like NoteOn and continous controller data like pitch bend.

      I can do this with Java. Is there a Java bridge to Flex 2?

      I sure hope Flex and Flash move more in a MIDI direction. It's a so lean and flexible!
        • 1. Re: MIDI commands?
          Phrankie Level 1
          Is anybody else interested in accessing MIDI from Flex?

          Phrankie
          • 2. Re: MIDI commands?
            Phrankie Level 1
            Any MIDI in Flex 3.0?

            Phrankie
            • 3. MIDI commands?
              Phrankie Level 1
              Wow. In two years only two posts on MIDI in the Flex forum? Given MIDI's power-to-footprint ratio, I find this rather astonishing.

              I’m all for MIDI in Flex, Flash, ActionScript and FlashPlayer! And I’m quite surprised these hardy development tools don’t already support MIDI.

              MIDI is the most efficient method for deploying music and sound, whether for soundtrack or for interactive sound effect. I'm utterly perplexed that RIAs are expected to lug around compressed digital audio — MIDI would easily handle a vast amount of sound and audio needs, and do so in 1/100th or 1/1000th of the dataspace.

              The present lack of MIDI is an oversight of incredible proportion ... especially for multimedia projects that need to deliver music and sound quickly, efficiently, and interactively. Compared to digital audio, MIDI has an incredibly light footprint!

              I appreciate ActionScript’s recent ventures into the realm of audio synthesis, but that's basically an entirely separate topic.

              Um ... I tend to ramble when dumbstruck. Let’s see. Oh, yes ... my question!

              Has Adobe begun to implement MIDI in Flash Player and ActionScript? If not, are there any official plans to do so?

              In the simplest MIDI incarnation Adobe would deliver a sequencer, where we select a MIDI file, and control it with commands like play(); stop(); rewind(); tempo(); and possibly transpose();

              Much more importantly, Adobe should allow programmers to send various MIDI messages to an initialized sequencer. Java has a MIDI synthesizer, and it has a sequencer API. Within that framework it is possible to send individual MIDI messages: you can choose an instrument, set the volume (velocity) of a note, start the note, bend the pitch of the note, and stop the note after a specific duration.

              If Adobe is not adding MIDI to ActionScript and Flash/Flex anytime soon, perhaps via an AIR application we can access APIs such as Quicktime or MacOS's CoreAudio and thereby tap into those MIDI resources? Does anybody know about that?

              QuickTime included MIDI playback since QuickTime version 3 or earlier. QuickTime music instruments are built-in (hanks, I believe, to music sampling and synthesis know how of Roland Corportation.)

              Where's Adobe on this? No speak MIDI?

              Phrankie
              • 4. Re: MIDI commands?
                Michael Borbor Level 4
                This link might help you http://www.richapps.de/?p=97
                • 5. MIDI commands?
                  Phrankie Level 1
                  quote:

                  Originally posted by: mab_bond
                  This link might help you http://www.richapps.de/?p=97


                  Thanks mab-bomb, but that discussion focuses on manipulating wave files.

                  MIDI is a well establish serial protocol. There are various MIDI messages for triggering sounds from existing sample or synth libraries. For instance, playing notes of various pitch, on specific instruments ... and even playing sound effects from sound libraries that contain such samples.

                  MIDI a powerful, well established technology that Adobe has entirely ignored to date. ActionScript can't even load and play a MIDI file. To do that you have to call JavaScript, or use some other bridge.

                  Playing MIDI files would be a good first step, but ideally Adobe will provide us with methods so we have the full capacity for sending and receiving MIDI messages.

                  I really don't understand why Adobe is sooooo late to the MIDI party.

                  q

                  • 6. Re: MIDI commands?
                    rtalton Level 4
                    Hey Phrankie,
                    I' ve done a lot of studio work in the past with midi (Cakewalk circa 1988!), but I've never read anything about demand for using midi in a web application. I can tell you are frustrated, but there probably just isn't enough demand among clients for Flex developers to respond to. Just guessing.

                    But you are not alone; there is hope! Check out this link to an on-line petition to Adobe to provide MIDI capabilities in Flash:
                    http://blogs.oreilly.com/digitalmedia/2008/04/petition-midi-support-in-flash.html

                    Give 'em hell, Phrankie!
                    • 7. Re: MIDI commands?
                      Phrankie Level 1
                      quote:

                      Originally posted by: rtalton
                      Hey Phrankie,
                      I' ve done a lot of studio work in the past with midi (Cakewalk circa 1988!), but I've never read anything about demand for using midi in a web application. I can tell you are frustrated, but there probably just isn't enough demand among clients for Flex developers to respond to. Just guessing.

                      But you are not alone; there is hope! Check out this link to an on-line petition to Adobe to provide MIDI capabilities in Flash:
                      http://blogs.oreilly.com/digitalmedia/2008/04/petition-midi-support-in-flash.html

                      OK. Now we're talking! Thanks for these valuable links, rtalton.

                      If you're a forum member with any interest in MIDI in Flash or Flex, visit this healthy online discussion. Positive input is considered a vote for MIDI. This is significant. If you haven't checked this out, please do:

                         https://bugs.adobe.com/jira/browse/FP-123

                      Here's a petition request for USB MIDI Device support, which is now under consideration at Adobe.

                          https://bugs.adobe.com/jira/browse/SDK-14000

                      Good info here (this is the location where I got the links above):

                           http://blogs.oreilly.com/digitalmedia/2008/04/petition-midi-support-in-flash.html

                      Originally posted by: rtalton

                           Give 'em hell, Phrankie!


                      Workin' on it.

                      Phrankie
                      • 8. Re: MIDI commands?
                        rtalton Level 4
                        I'll check these links out, thanks.
                        Not only would MIDI support help with web apps, AIR could also be used to build MIDI sequencing apps for the desktop. Programming with the old CAL language for DOS was just too frustrating. I'm sure things have improved, but it would be cool to have control over sequencing with a robust language like ActionScript 3.
                        • 9. MIDI commands?
                          Phrankie Level 1
                          Just thought I'd bump the plea for MIDI up to the top.

                          If MIDI is important to you, if you're creative and musical — and as a developer you would benefit from MIDI in Flex, Flash and ActionScript — please check out the following web pages and vote.

                               https://bugs.adobe.com/jira/browse/FP-123

                               http://blogs.oreilly.com/digitalmedia/2008/04/petition-midi-support-in-flash.html

                          Phrankie