can hear MIDI but can't record it.

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
msd123
Posts: 58
Joined: Sat Nov 09, 2013 3:54 pm
Operating System: Please select

can hear MIDI but can't record it.

Post by msd123 » Sat Nov 09, 2013 4:04 pm

Audacity 2.0.1 (from repository)
Linux MINT 14, XFCE
SoundBlaster Audigy 4

If I go into Audacity and hit the record button (to record "what I hear"), this works for music streaming or local sound files playing through Banshee, but nothing is recorded when its a MIDI file playing (e.g.

Code: Select all

aplaymidi -p 17:0 somefile.mid
).

I have tried playing around with pavucontrol and Alsamixer and have tried all possible input device drop-down options within Audacity but no luck.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: can hear MIDI but can't record it.

Post by kozikowski » Sat Nov 09, 2013 8:11 pm

Different machines get the folded back sound from different places. The most annoying but all inclusive gets the sound from the speaker or headphone drivers. It catches everything, but you need to leave your speaker volume up for it to work. There are other variations and if your system is getting sound upstream from where the MIDI drivers are putting it, then no, that's not going to work.

Audacity does not support MIDI, so it doesn't natively "know" what to do with MIDI sound. Are you using the computer's internal MIDI system? (not a Linux elf). If the MIDI sound is being generated by an external device like a keyboard, then the rules change.

Koz

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: can hear MIDI but can't record it.

Post by steve » Sat Nov 09, 2013 10:19 pm

msd123 wrote:If I go into Audacity and hit the record button (to record "what I hear")
There are various ways to record sound that is playing through the computer but Linux does not have a "what I hear" option.
msd123 wrote:aplaymidi -p 17:0 somefile.mid
For that to work you must have a MIDI renderer on ALSA MIDI port 17.
What are you using as the MIDI renderer?
If you are using Timidity then it would be better to use Timidity to render directly to a file rather than trying to record the output with Audacity (see: http://man.cx/timidity%281%29)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

msd123
Posts: 58
Joined: Sat Nov 09, 2013 3:54 pm
Operating System: Please select

Re: can hear MIDI but can't record it.

Post by msd123 » Sun Nov 10, 2013 8:46 pm

Thanks for the replies.

I'm not using Timidity, but I can't remember exactly what I did originally to get MIDI playback to work. I think I am using the h/w synth on the SB card, if that makes sense.

I don't have any external MIDI devices.

Inciddentally, what I am trying to do works under Audacity/Windows, but not Audacity/Linux.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: can hear MIDI but can't record it.

Post by steve » Mon Nov 11, 2013 2:02 pm

msd123 wrote:I'm not using Timidity, but I can't remember exactly what I did originally to get MIDI playback to work. I think I am using the h/w synth on the SB card, if that makes sense.
I think that you must have set up your system to automatically load a "sound font" into the Audigy, because I don't think that the Audigy has built-in MIDI sounds, but does have built-in MIDI support. Does any of this ring any bells? https://wiki.archlinux.org/index.php/MIDI
msd123 wrote:If I go into Audacity and hit the record button (to record "what I hear"), this works for music streaming or local sound files playing through Banshee,
So how are you doing that?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

msd123
Posts: 58
Joined: Sat Nov 09, 2013 3:54 pm
Operating System: Please select

Re: can hear MIDI but can't record it.

Post by msd123 » Mon Nov 11, 2013 5:10 pm

I think that you must have set up your system to automatically load a "sound font" into the Audigy
You're right - I remember messing around with asfxload, so I do load a font on startup :) . In my Windows setup, I haven't attempted anything similar..is that why Audacity can record midi (as it plays) under Windows ? Do I need to stop invoking asfxload ?
So how are you doing that?
It just works with everything defaulted :?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: can hear MIDI but can't record it.

Post by steve » Mon Nov 11, 2013 5:36 pm

msd123 wrote: In my Windows setup, I haven't attempted anything similar..
Windows Media Player includes a software MIDI renderer, as does QuickTime. When you play a MIDI file on Windows it may use one or other of these rather than the sound card's MIDI renderer. On Windows, SoundBlaster cards use their own mixer application and by default will record whatever is playing through the sound card, including MIDI (this configuration is not always optimal, but in your case it does what you want).

SoundBlaster do not supply drivers for Linux, so MIDI playback for the Audigy is not likely to be configured automatically, which is probably why you had to set that up manually.
msd123 wrote:It just works with everything defaulted :?
I think that we need to work out how it is "just working".

Play a MIDI file, and while it is playing, open pavucontrol.
On the Playback tab of pavucontrol, does the MIDI player appear?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

msd123
Posts: 58
Joined: Sat Nov 09, 2013 3:54 pm
Operating System: Please select

Re: can hear MIDI but can't record it.

Post by msd123 » Mon Nov 11, 2013 6:31 pm

Play a MIDI file, and while it is playing, open pavucontrol.
On the Playback tab of pavucontrol, does the MIDI player appear?
No - here's what I see :

https://sites.google.com/site/dunfrettin/Screenshot1
Last edited by msd123 on Fri Apr 24, 2015 4:24 pm, edited 2 times in total.
Reason: removed image tags - they don't work for images that use https

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: can hear MIDI but can't record it.

Post by steve » Mon Nov 11, 2013 6:45 pm

OK. So what do you see in the Recording tab of pavucontrol when recording streaming audio or local sound files playing through Banshee?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

msd123
Posts: 58
Joined: Sat Nov 09, 2013 3:54 pm
Operating System: Please select

Re: can hear MIDI but can't record it.

Post by msd123 » Tue Nov 12, 2013 2:58 pm

here's the Pavucontrol "record" tab while Audacity is recording streaming Internet Radio :

Image

and here's the "playback" window at the same time in case that helps :

Image

Thanks.

Post Reply