Click here to Skip to main content
15,889,281 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: MIDI on Linux? Pin
pkfox23-Jun-20 10:06
professionalpkfox23-Jun-20 10:06 
GeneralRe: MIDI on Linux? Pin
honey the codewitch24-Jun-20 9:36
mvahoney the codewitch24-Jun-20 9:36 
AnswerRe: MIDI on Linux? Pin
Scott Serl23-Jun-20 10:32
Scott Serl23-Jun-20 10:32 
GeneralRe: MIDI on Linux? Pin
honey the codewitch24-Jun-20 9:35
mvahoney the codewitch24-Jun-20 9:35 
AnswerRe: MIDI on Linux? Pin
pkfox24-Jun-20 3:55
professionalpkfox24-Jun-20 3:55 
GeneralRe: MIDI on Linux? Pin
David O'Neil24-Jun-20 6:43
professionalDavid O'Neil24-Jun-20 6:43 
GeneralRe: MIDI on Linux? Pin
honey the codewitch24-Jun-20 9:33
mvahoney the codewitch24-Jun-20 9:33 
AnswerRe: MIDI on Linux? Pin
B Alex Robinson24-Jun-20 19:44
B Alex Robinson24-Jun-20 19:44 
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.
AnswerRe: MIDI on Linux? Pin
SimonHP24-Jun-20 23:59
SimonHP24-Jun-20 23:59 
PraiseGotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style PinPopular
abmv23-Jun-20 5:32
professionalabmv23-Jun-20 5:32 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
Slacker00723-Jun-20 5:55
professionalSlacker00723-Jun-20 5:55 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
pkfox23-Jun-20 10:09
professionalpkfox23-Jun-20 10:09 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
Sander Rossel23-Jun-20 21:44
professionalSander Rossel23-Jun-20 21:44 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
Johnny J.24-Jun-20 3:57
professionalJohnny J.24-Jun-20 3:57 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
David O'Neil24-Jun-20 6:36
professionalDavid O'Neil24-Jun-20 6:36 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
Sander Rossel24-Jun-20 21:54
professionalSander Rossel24-Jun-20 21:54 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
David O'Neil25-Jun-20 6:18
professionalDavid O'Neil25-Jun-20 6:18 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
BillWoodruff24-Jun-20 0:43
professionalBillWoodruff24-Jun-20 0:43 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
5teveH24-Jun-20 4:11
5teveH24-Jun-20 4:11 
GeneralRe: Gotye's 'Somebody That I Used To Know' Works Surprisingly Well Remixed In A Medieval Style Pin
kalberts25-Jun-20 7:11
kalberts25-Jun-20 7:11 
GeneralThought of the Day Pin
OriginalGriff23-Jun-20 4:36
mveOriginalGriff23-Jun-20 4:36 
GeneralRe: Thought of the Day Pin
Daniel Pfeffer23-Jun-20 4:51
professionalDaniel Pfeffer23-Jun-20 4:51 
GeneralRe: Thought of the Day Pin
Jörgen Andersson23-Jun-20 19:55
professionalJörgen Andersson23-Jun-20 19:55 
GeneralRe: Thought of the Day Pin
Johnny J.23-Jun-20 4:51
professionalJohnny J.23-Jun-20 4:51 
AnswerRe: Thought of the Day Pin
megaadam23-Jun-20 5:04
professionalmegaadam23-Jun-20 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.