Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. MIDI on Linux?

MIDI on Linux?

Scheduled Pinned Locked Moved The Lounge
linuxquestiondiscussion
12 Posts 7 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H honey the codewitch

    This isn't exactly programming specific but I want to tap some MIDI tech from within a linux based OS but there are so many audio packages for linux I don't know which one is even the most popular in terms of install base (i'd want to target that one as a priority) Does anyone here do any messing with MIDI from a linux box? What do you install to do it with? Any recommendations or packages you know are popular would be helpful, i'm kind of treating this like an informal poll. The internet is giving me 100 different opinions, but i figure i know where you all hang out so I can hold you to your suggestions :laugh:

    Real programmers use butterflies

    Greg UtasG Offline
    Greg UtasG Offline
    Greg Utas
    wrote on last edited by
    #2

    Not that I can help on the Linux front, but I'm not even sure what you're looking for. MIDI IN/OUT for Linux? An audio package for playing with samples?

    Robust Services Core | Software Techniques for Lemmings | Articles

    <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
    <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

    H 1 Reply Last reply
    0
    • Greg UtasG Greg Utas

      Not that I can help on the Linux front, but I'm not even sure what you're looking for. MIDI IN/OUT for Linux? An audio package for playing with samples?

      Robust Services Core | Software Techniques for Lemmings | Articles

      H Offline
      H Offline
      honey the codewitch
      wrote on last edited by
      #3

      audio drivers basically that let you use MIDI ports and the sound devices wavetable synthesizer

      Real programmers use butterflies

      pkfoxP 1 Reply Last reply
      0
      • H honey the codewitch

        audio drivers basically that let you use MIDI ports and the sound devices wavetable synthesizer

        Real programmers use butterflies

        pkfoxP Offline
        pkfoxP Offline
        pkfox
        wrote on last edited by
        #4

        Have you looked at ALSA ?

        "We can't stop here - this is bat country" - Hunter S Thompson - RIP

        H 1 Reply Last reply
        0
        • H honey the codewitch

          This isn't exactly programming specific but I want to tap some MIDI tech from within a linux based OS but there are so many audio packages for linux I don't know which one is even the most popular in terms of install base (i'd want to target that one as a priority) Does anyone here do any messing with MIDI from a linux box? What do you install to do it with? Any recommendations or packages you know are popular would be helpful, i'm kind of treating this like an informal poll. The internet is giving me 100 different opinions, but i figure i know where you all hang out so I can hold you to your suggestions :laugh:

          Real programmers use butterflies

          S Offline
          S Offline
          Scott Serl
          wrote on last edited by
          #5

          If you are after a software MIDI synth, then you can use Yoshimi. It is installed with Ubuntu Studio (can also be installed separately). I have never used it (Yoshimi, but have used Ubuntu Studio). If you are trying to control events during a recording session, then use Ardour as the DAW and you can use MIDI to control events. If you are trying to use a MIDI keyboard to enter music notation, then I have no recommendations as I have not done it in a very long time. If you are looking for a software MIDI drum machine, then try Hydrogen. I think the basic MIDI control is in Alsa, but you need a device that is supported by Linux...tricky to figure out, but there are various forums that discuss them (including the Ardour forums). It usually takes awhile for people to write the modules to drive new devices, so community support lags current devices by at least a few months, and often a year or two. Basic MIDI, however, is probably supported for many devices (it's usually the Alsa mixer portion that needs special driver modules).

          H 1 Reply Last reply
          0
          • H honey the codewitch

            This isn't exactly programming specific but I want to tap some MIDI tech from within a linux based OS but there are so many audio packages for linux I don't know which one is even the most popular in terms of install base (i'd want to target that one as a priority) Does anyone here do any messing with MIDI from a linux box? What do you install to do it with? Any recommendations or packages you know are popular would be helpful, i'm kind of treating this like an informal poll. The internet is giving me 100 different opinions, but i figure i know where you all hang out so I can hold you to your suggestions :laugh:

            Real programmers use butterflies

            pkfoxP Offline
            pkfoxP Offline
            pkfox
            wrote on last edited by
            #6

            [Ted's Linux MIDI Guide](http://tedfelix.com/linux/linux-midi.html)

            "We can't stop here - this is bat country" - Hunter S Thompson - RIP

            D H 2 Replies Last reply
            0
            • pkfoxP pkfox

              [Ted's Linux MIDI Guide](http://tedfelix.com/linux/linux-midi.html)

              "We can't stop here - this is bat country" - Hunter S Thompson - RIP

              D Offline
              D Offline
              David ONeil
              wrote on last edited by
              #7

              Quote:

              This is a very command-line-intensive tutorial.

              Twenty-five years, and things haven't changed. :doh:

              The forgotten roots of science | C++ Programming | DWinLib

              1 Reply Last reply
              0
              • pkfoxP pkfox

                [Ted's Linux MIDI Guide](http://tedfelix.com/linux/linux-midi.html)

                "We can't stop here - this is bat country" - Hunter S Thompson - RIP

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #8

                i appreciate it but I'm trying to narrow my choices down - that has jack and alsa, and i'd like to know which one is better for me to target. also that article is kind of old. Bookmarking it though

                Real programmers use butterflies

                1 Reply Last reply
                0
                • S Scott Serl

                  If you are after a software MIDI synth, then you can use Yoshimi. It is installed with Ubuntu Studio (can also be installed separately). I have never used it (Yoshimi, but have used Ubuntu Studio). If you are trying to control events during a recording session, then use Ardour as the DAW and you can use MIDI to control events. If you are trying to use a MIDI keyboard to enter music notation, then I have no recommendations as I have not done it in a very long time. If you are looking for a software MIDI drum machine, then try Hydrogen. I think the basic MIDI control is in Alsa, but you need a device that is supported by Linux...tricky to figure out, but there are various forums that discuss them (including the Ardour forums). It usually takes awhile for people to write the modules to drive new devices, so community support lags current devices by at least a few months, and often a year or two. Basic MIDI, however, is probably supported for many devices (it's usually the Alsa mixer portion that needs special driver modules).

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #9

                  Ahhh, brilliant! Your post is actually clarifying something for me. It looks like Alsa might be the way to go for targeting my MIDI code to.

                  Real programmers use butterflies

                  1 Reply Last reply
                  0
                  • pkfoxP pkfox

                    Have you looked at ALSA ?

                    "We can't stop here - this is bat country" - Hunter S Thompson - RIP

                    H Offline
                    H Offline
                    honey the codewitch
                    wrote on last edited by
                    #10

                    i am now, thanks to another comment. i appreciate it.

                    Real programmers use butterflies

                    1 Reply Last reply
                    0
                    • H honey the codewitch

                      This isn't exactly programming specific but I want to tap some MIDI tech from within a linux based OS but there are so many audio packages for linux I don't know which one is even the most popular in terms of install base (i'd want to target that one as a priority) Does anyone here do any messing with MIDI from a linux box? What do you install to do it with? Any recommendations or packages you know are popular would be helpful, i'm kind of treating this like an informal poll. The internet is giving me 100 different opinions, but i figure i know where you all hang out so I can hold you to your suggestions :laugh:

                      Real programmers use butterflies

                      B Offline
                      B Offline
                      B Alex Robinson
                      wrote on last edited by
                      #11

                      A week or so ago I accidentally impulse-bought a MIDI keyboard, but instead of returning it, I installed Python3 packages and wrote a program to listen to the keyboard and play sounds. It's been fun. The Python packages contain the fluidsynth.py, mido, and sf2utils modules. mido reads MIDI notes from MIDI devices. The "o" at the end of the name is not a typo. fluidsynth plays MIDI audio. I started it with fluidsynth.Synth().start(driver = "pulseaudio") not "alsa". fluidsynth makes sound from instrument recordings contained in "sound font 2" (.sf2) files. fluidsynth, itself, is a separate thing you apt install. The Python script is a wrapper around it. fluidsynth.py is at various places on GitHub. I'm using a very slightly tweaked version of one that has disappeared in the last week, but was a slightly tweaked version of pyfluidsynth/fluidsynth.py at feature/fluidsynth-2 · SpotlightKid/pyfluidsynth · GitHub[^] which is a modified version of the original somewhere else on GitHub. sf2utils.sf2parse lets me read .sf2 files and list the instruments in them. I found nice .sf2 files through a couple of URLs: Soundfonts 4U[^] SoundFonts and SFZ files | MuseScore[^] The fluidsynth package, itself, contains a couple of OK .sf2 files. I could not get LMMS to read my MIDI keyboard and/or make sound. Renoise hogged the CPU and, when running, whether idle or not, caused videos to not play in my browser and possibly not in VLC. Good luck.

                      1 Reply Last reply
                      0
                      • H honey the codewitch

                        This isn't exactly programming specific but I want to tap some MIDI tech from within a linux based OS but there are so many audio packages for linux I don't know which one is even the most popular in terms of install base (i'd want to target that one as a priority) Does anyone here do any messing with MIDI from a linux box? What do you install to do it with? Any recommendations or packages you know are popular would be helpful, i'm kind of treating this like an informal poll. The internet is giving me 100 different opinions, but i figure i know where you all hang out so I can hold you to your suggestions :laugh:

                        Real programmers use butterflies

                        S Offline
                        S Offline
                        SimonHP
                        wrote on last edited by
                        #12

                        If you have simple needs ALSA may be sufficient. For more professional requirements you may want to consider jack (jackd). there is a front end Qjackctl. If your linux repo does not support them, try Fusion repos. Alsa can be bridged to jack with a2jmidi.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups