Page 1 of 1
Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 3:38 am
by bob93
Is it possible to monitor the internal audio with specrogram apps such as jaaa or japa? When I open them they seem to only be picking up the microphone audio. I want to analyze the internal audio coming from Hydrogen, which unfortunately doesn't have itself a spectrum analyzer.
I reckon it's possible to record internal audio, so it should also be possible to use a spectrum analyzer in real time, right?
Re: Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 4:00 am
by rockedge
is your system using pulseaudio or straight ALSA?
Re: Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 5:36 am
by geo_c
bob93 wrote: ↑Mon Jan 22, 2024 3:38 am
Is it possible to monitor the internal audio with specrogram apps such as jaaa or japa? When I open them they seem to only be picking up the microphone audio. I want to analyze the internal audio coming from Hydrogen, which unfortunately doesn't have itself a spectrum analyzer.
I reckon it's possible to record internal audio, so it should also be possible to use a spectrum analyzer in real time, right?
I don't know what pup you're using, but I'm doing a lot of work with pipewire in KLV-airedale. In fact tonight I used Hydrogen to do a few configuration tests with LSP plugins. Using a jack or pipewire jack setup will certainly allow a spectrum analyzer to be inserted in signal flow. Maybe you're not talking about Hydrogen the drum sequencer, but if so my test can be found here:
viewtopic.php?p=109700#p109700
Re: Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 9:40 pm
by bob93
rockedge wrote: ↑Mon Jan 22, 2024 4:00 am
is your system using pulseaudio or straight ALSA?
ALSA as far as I can tell
Re: Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 10:01 pm
by bob93
geo_c wrote: ↑Mon Jan 22, 2024 5:36 am
I don't know what pup you're using, but I'm doing a lot of work with pipewire in KLV-airedale. In fact tonight I used Hydrogen to do a few configuration tests with LSP plugins. Using a jack or pipewire jack setup will certainly allow a spectrum analyzer to be inserted in signal flow. Maybe you're not talking about Hydrogen the drum sequencer, but if so my test can be found here:
viewtopic.php?p=109700#p109700
Fossapup64 9.5
Yes, I'm using the drum machine program. I was told in the Hydrogen forum if I'm on Linux I should use japa or jaaa with jack. What you're doing in your thread it's pretty involved. I just need to monitor the internal audio, I don't need the kind low latency you achieved, I don't play live with a controller or anything like that, I just use the mouse
Re: Spectrum analyzer for internal audio?
Posted: Mon Jan 22, 2024 11:52 pm
by Trapster
I don't have a 64 bit machine but there is an AppImage here for Friture.
https://friture.org/download.html
Re: Spectrum analyzer for internal audio?
Posted: Tue Jan 23, 2024 1:49 am
by geo_c
bob93 wrote: ↑Mon Jan 22, 2024 10:01 pm
Fossapup64 9.5
Yes, I'm using the drum machine program. I was told in the Hydrogen forum if I'm on Linux I should use japa or jaaa with jack. What you're doing in your thread it's pretty involved. I just need to monitor the internal audio, I don't need the kind low latency you achieved, I don't play live with a controller or anything like that, I just use the mouse
Well if you're running jack in fossapup64_9.5, the lsp standalone plugin could be attached to the output of hydrogen, as well as many other plugins.
But if you're not using jack and just straight alsa then japa applicaton looks like it might do the job, so you could check the debian repository, or maybe the fossapup package manager which can browse the correct compatible Debian repository.
Did you try that yet?
If you don't mind me asking, why do you want to spectrum analyze the audio from Hydrogen? As far as I can tell it's playing raw samples and just mixing the output volumes.
Two nights I ago I downloaded all the h2 drumkits. It's about 900MB. They've got a lot nicer ones lately.
I actually have a script that will convert sfz multi-instrument directories to h2 drumkits, and I constructed a couple that way myself.
I have a remaster of fossapup64_9.5 called jackalpup. It can be found on the forum here: viewtopic.php?t=1148
I used jackalpup in my studio for about 3 years, and it runs jack and jack apps OOTB. But about a year ago I migrated to Kennel Linux OSs and ran audio apps without jack. Now that pipewire is being included in the KLs, I'm able to use all apps as an audio source and operate as if jack were installed. To me that's a real rosy scenario.
Re: Spectrum analyzer for internal audio?
Posted: Tue Jan 23, 2024 2:03 am
by bob93
geo_c wrote: ↑Tue Jan 23, 2024 1:49 am
But if you're not using jack and just straight alsa then japa applicaton looks like it might do the job, so you could check the debian repository, or maybe the fossapup package manager which can browse the correct compatible Debian repository.
Did you try that yet?
I have japa, but it picks up the microphone sound. I don't know how to make it pick up the internal audio. That's the problem
geo_c wrote: ↑Tue Jan 23, 2024 1:49 am
If you don't mind me asking, why do you want to spectrum analyze the audio from Hydrogen? As far as I can tell it's playing raw samples and just mixing the output volumes.
Basically to help with eq-ing. You've seen how eqs come with built-in spectrum graphs? That kind of thing
Re: Spectrum analyzer for internal audio?
Posted: Tue Jan 23, 2024 2:58 am
by geo_c
bob93 wrote: ↑Tue Jan 23, 2024 2:03 am
I have japa, but it picks up the microphone sound. I don't know how to make it pick up the internal audio. That's the problem
Oh sorry, I seemed to have let that slip from my memory. Well, it's possible to route to applications using alsa, I think. Though a lot more difficult than jack. I found this little bit of info on japa: https://manpages.ubuntu.com/manpages/fo ... apa.1.html And from the looks of it, you might be able to specify the device input using the command options. But I sort of think if if's currently ONLY grabbing mic input, then something like an ALSA loopback device might need to be used. To be honest I'm speaking above my paygrade. I never learned to configure alsa. There seems to be almost no info available on how to use japa. I can't find anything that describes exactly how it was designed to work.
bob93 wrote: ↑Tue Jan 23, 2024 2:03 am
Basically to help with eq-ing. You've seen how eqs come with built-in spectrum graphs? That kind of thing
So sounds like maybe you're using the Hydrogen mixer and trying to get a feel for the eq curve on an exported mixdown wav file?
If that's the case I think the easier approach would be to mix it down and analyze in another audio package, like audacity.
Re: Spectrum analyzer for internal audio?
Posted: Tue Jan 23, 2024 3:17 am
by geo_c
This is pretty funny, in searching for the answer to the question of routing alsa audio streams to applications like japa, I stumbled on this page by one of the fatdog developers @jamesbond I believe: : https://www.lightofdawn.org/blog/?viewDetailed=00228
And I had to smile and share it. It's a pretty informative read.
Re: Spectrum analyzer for internal audio?
Posted: Tue Jan 23, 2024 4:51 pm
by bob93
geo_c wrote: ↑Tue Jan 23, 2024 2:58 am
Well, it's possible to route to applications using alsa, I think. Though a lot more difficult than jack.
I'm looking for the less difficult solution so I guess I'll search for threads about using jack on puppy
geo_c wrote: ↑Tue Jan 23, 2024 2:58 am
So sounds like maybe you're using the Hydrogen mixer and trying to get a feel for the eq curve on an exported mixdown wav file?
If that's the case I think the easier approach would be to mix it down and analyze in another audio package, like audacity.
Right, but there's another reason I'm using the mixer. I tend to work in mono, and Hydrogen has some issues that kind of force you to work in mono. Now, when you're in mono all sounds go together in the same channel and they easily interfere with each other. After adding a few instruments you can't hear things clearly anymore, everything gets lost (on top of that I sometimes use custom samples made in less than ideal conditions that don't sound very clear to begin with). I use EQ to deal with this, just to be able to identify the different sounds.