On Friday 06 January 2012, you wrote:
> btw: is there a way to list available clients/ports from the api.
> I know that aconnect -i / -o does this, but is there a c/c++ function?
>
> Dave
The functions are: snd_seq_query_next_client() and snd_seq_query_next_port();
you need to loop calling these functions while they return a correct answer.
For instance, this is the relevant code in "aconnect.c" :
static void do_search_port(snd_seq_t *seq, int perm, action_func_t do_action)
{
snd_seq_client_info_t *cinfo;
snd_seq_port_info_t *pinfo;
int count;
snd_seq_client_info_alloca(&cinfo);
snd_seq_port_info_alloca(&pinfo);
snd_seq_client_info_set_client(cinfo, -1);
while (snd_seq_query_next_client(seq, cinfo) >= 0) {
/* reset query info */
snd_seq_port_info_set_client(pinfo,
snd_seq_client_info_get_client(cinfo));
snd_seq_port_info_set_port(pinfo, -1);
count = 0;
while (snd_seq_query_next_port(seq, pinfo) >= 0) {
if (check_permission(pinfo, perm)) {
do_action(seq, cinfo, pinfo, count);
count++;
}
}
}
}
See:
http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=seq/aconnect/aconnec…
I guess you already know the reference documentation site:
http://www.alsa-project.org/alsa-doc/alsa-lib/seq.html
Just for comparison, a similar enumeration using Drumstick looks like this:
QListIterator<PortInfo> it(m_Client->getAvailableOutputs());
while(it.hasNext()) {
PortInfo p = it.next();
cout << p.getClientName() << ":" << p.getPort();
}
See Drumstick's example "drumgrid":
http://drumstick.sourceforge.net/docs/drumgrid.cpp-example.html
Regards,
Pedro
Hi!
I was recently helping a small Dutch radio station run by volunteers to
set up their new studio.
It's a modular system with a 16 I/O firewire card:
http://www.d-r.nl/AXUM/AXUM.htm
We managed to support it in FFADO. The playback software runs on a
virtualised Windows machine that's talking to jackd via netjack (no idea
which one, the one with multicast and netmanager), so we can address
four individual stereo pairs.
This whole netjack thing isn't very stable, so the playback software
should be replaced by some native Linux client. Here's a screenshot of
the current Windows solution:
http://adi.loris.tv/radio.png
It is basically a set of four remotely controlled winamps (with ASIO
output plugin to talk to jackd) and a directory browser per player.
So "Jingles", "Muziek" and "Bladeren" are just shortcuts to directories
with media files, the drop-down menu on the left contains a list of even
more directories.
The filter is used for pattern matching.
Questions: Are you aware of any Linux solution that comes close to this?
If not, any recommendations if one would want to create such a four-deck
player? Leveraging VLC, mplayer, gstreamer?
This is surely going to be open source, so whoever is interested, feel
free to participate.
Cheers
Hi all,
Quick question: does the CAPS* plugins suite exist in LV2 format (I'm
almost sure the answer is no, as I have looked everywhere, but you never
know...).
If not, could somebody who knows the code of these plugins let me know how
hard it would be to port them to LV2? Are there any pitfalls to look for?
Background: a few years back, I created a few synths using AlsaModularSynth
- I'm trying to recreate them into Ingen. I already ported the AMS internal
modules to lv2 (avw.lv2), and a few other ones that I need are now in
fomp.lv2. I use the CAPS amp modelling to make the sound of the synth a bit
more natural.
Obviously, I know I could plug Ingen output into JackRack for example and
use CAPS there for example, but where is the fun in that? :)
Incidentally, are there other LV2 plugins that would do at Amp Modelling?
Aurélien
> I don't know about the caps plugins, however, i had a question on
> avw.lv2. I installed those plugin's to work through a tutorial on
> synth building in ingen (you may have done the tutorial). That works
> fine in ingen. However, if i have that lv2 plugin set installed,
> qtractor will not start for me.. if i uninstall the set, qtractor
> starts fine. have you seen this behavior? Qtractor doesnt segment
> fault or anything.. it just hangs. I tried with both 0.5.6 and current
> svn head.
>
> Have you seen this?
No I haven't seen this behaviour, but I haven't been using QTractor that
much.
What repository did you use for the plugins, LV2 and QTractor?
On 23/11/2012 20:01, rodrigo(a)angoera.com.br wrote:
>
> Hi !!!!!
>
> The Fast Track Pro is USB 1.0, the max bandwidth is 12Mb/s. The TUSB3200 has
> the isochronous USB transfer mode, that can occupy about 90% of the USB
> bandwidth... Using 4 channel (2 IN and 2 OUT) with right and left, and 24 bits
> (3 bytes each, in total 4(channel) * 2(left,right) * 3(data) = 24 bytes ) The
> max bandwidth that could communicate is about 12Mbits/s = 1.5 Mbytes/s | 1.5
> Mbytes/s * 0.9 = 1.2 MBytes/s --> 1.2MBytes/s / 24 bytes = 50Khz ... So the
> maximum USB 1.0 with 24 bits is 4 chanel in 48KHz...
>
You're absolutely right, the 24 bits 4 channels mode would be only accessible in
48 kHz samplerate.
> I would like to know how it works the interface between USB AUDIO CLASS device
> driver and the USB-AUDIO Alsa Device driver. And how does the isochronous
> comunication works inside the kernel? Because I am using an RT Kernel and I
> would like to set with the high priority this communication.
>
I don't really know how does the isochronous, but applying usual RT security
audio rules seems sufficient to get high priority access and then very low
latency (got 3 ms here with few audio realtime processes..).
Further info here:
http://joegiampaoli.blogspot.fr/2011/06/m-audio-fast-track-pro-for-debian-l…
G
Hi,
Is anybody interested to help Eigenlabs figure out the USB layer to
get their stuff ported to Linux?
http://www.eigenlabs.com/forum/threads/id/1148/
They are very free software friendly. Their code is available under
GPL, they have a very good understanding of working with community
while staying an enterprise (the instruments are not open, as far as I
can tell), and, needless to say, the instruments they do are beyond
awesome.
Alexandre Prokoudine
http://libregraphicsworld.org
>> Hello Louis,
>>
>> You might want to contact Filipe Coelho (aka falktx).
>>
>> http://forum.linuxmusicians.**com/viewtopic.php?f=47&t=10231<http://forum.linuxmusicians.com/viewtopic.php?f=47&t=10231>
>>
>> Regards,
>>
>> Jeremy
>>
>
>I have some experimental code for VST UIs in Linux (using openGL), it's not
>ready for release...
>I've uploaded a source tarball with a plugin inside, although the UI seems
>to have some little issues right now:
>http://kxstudio.sourceforge.net/tmp/3BandEQ-VstTest1.tar.gz
>
>I'll work more on it soon, so for now it can be a "preview" of how it is
>done.
>But in short, it uses something I call "DISTRHO Plugin Toolkit", which
>similar to Juce can make a single source code compile into different plugin
>APIs (At the moment LADSPA, DSSI, LV2, VST and Standalone, some better than
>others).
>This plugin uses openGL for the UI, but Qt4 can be used alternatively.
DISTRHO looks interesting, but I was wondering maybe if my existing
VSTGUI code could somehow be used with the least amount of
adjustments. I guess since it's just a bunch of x,y offsets and basic
widgets it shouldn't be too hard to port to another toolkit, but I
don't have the free time I used to. But, I'll definitely consider it.
It's free, right? I didn't see a license so I'm guessing it'd be ok to
bake into my binary-only application (apologies if I just missed it).
I'm wondering if maybe downgrading VSTGUI and making the plugin
perfectly WINE-friendly (or winelib) would be an option. Anyone know
what the best VSTGUI version might be the best target for that? And
any opinions on the VSTGUI port found at jacklab.net?
-Louis
Hi every body,
I would like to develop an very optimized device
driver for the USB soundcard, I am going to use the IC TUSB3200 similar
the Fast Track Pro from M-Audio (I would like to optimize this device
driver as well) , I am a hardware developer, and now I gonna start in
the Linux world... I would like to know if someone could tell me what
the better path to learn and develop an USB sound card???
Hi everyone,
I was using CAPS AmpVTS and notice that some tone knobs didn't work well. I
end up trying tonestack plugin itself and it seems that the problem (is
this a bug or its the way it really works?) is there, the Bass filter
apparently stops working about 0.5 to 1.0 , the Mid filter, on the other
way, apparently starts working in this zone, Treble seems to work
fine. Has anyone noticed something like that or even corrected this problem?
Att,
Lucas Takejame