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 all
i'm trying to sync arpage (jack synced arpeggiator) to Hydrogen:
in hydrogen i enabled jack transport + set hydrogen as master
Arpage gets triggered when i hit play in hydrogen, but it does not do what
i expect it to do (the tempo is all 'weird')
if i do the same with qtractor, ardour or the jack_transport utility as
jack master everything works as expected
now i'm trying to find an easy way to see if there is any difference
between the way hydrogen and the other apps start/stop/'master' the jack
transport, but so far i cant see any difference
is there any app/utility that can give me detailed info about jack
transport ?
i have logged a ticket (including a screen recording @ bottom of the
ticket) of this strange behavior :
https://github.com/hydrogen-music/hydrogen/issues/81
any tips ?
grtz
Thijs
--
follow me on my Audio & Linux blog <http://audio-and-linux.blogspot.com/> !
Hello,
I'm trying to poll mixer events in Alsa using C. I've used the following
functions within an infinite while loop:
if (snd_hctl_wait(hctl,-1))
{
...
}
###### and
snd_hctl_poll_descriptors(hctl, poll_fds, 1);
err = poll (poll_fds, 1, -1);
if (poll_fds[0].revents & POLLIN)
{
...
}
While I can get the first mixer event fine, in all subsequent rounds,
both snd_hctl_wait and poll always return immediately.
With the snd_mixer functions one has to call snd_mixer_handle_events to
clear events. However, calling snd_hctl_handle_events here never returns
and I can't quite figure out why. Nonetheless, I'm not even sure that's
the key to my solution.
Can anyone give me some advice on how to get this working?
Kind regards, Maarten
Hi Tim,
Great update. Superb sound, and very tweakable!
Thanks for making this!
I have a similar problem as the one reported earlier:
In AmpVST, all amp-models sound the same to me except the BassMan.
Also: they all have a lot more gain/distortion then the BassMan.
This is with v 0.9.7.
If you want I can provide a small Ardour session to demonstrate the
problem.
All the best,
Bart.
I'm proud to announce the release of guitarix2-0.25.2
Guitarix is a mono tube amplifier simulation for jack, with additional
mono/stereo effect racks which can be filled with some in-build effects
as well as with external LADSPA plugins.
Download from http://sourceforge.net/projects/guitarix/
new in this release:
* add ts9 tube screamer simulation to lv2.plugs
* add dunlop wah / autowah simulation to lv2.plugs
* add booster /treble/low to lv2.plugs
* add factory settings file contributed by kokoko3k
* add patch by Brendan Jones to set (libgxw)library install path
* fix lv2 build on non ix86 arch (only use sse2 when supported by
build host)
* switch to use fixed block-size in zita-convolver for all lv2 amps
(hopefully fixed bug 5252 reported by prokoudine on tracker.ardour)
Please check it out and give feedback if you
find a problem.
Please refer to our project page for more information:
http://guitarix.sourceforge.net/
download site:
http://sourceforge.net/projects/guitarix/
have fun
guitarix development team
> Many thanks for those!
> > I'm currently packaging them for KXStudio, but noticed a small issue.> The samplehold plugin (http://avwlv2.sourceforge.net/plugins/avw/samplehold)> has 2 ports which are not input or output.
>
> code from ttl file:
> * a lv2:AudioPort, lv2:CVPort ;* > lv2:index 3 ; > lv2:symbol "output" ; >
lv2:name "Output" ; > lv2:default 0.0 ; > lv2:minimum -1.0 ; > lv2:maximum
1.0 ; > ] , [ > * a lv2:AudioPort, lv2:CVPort ;* > lv2:index 4 ; > lv2:symbol
"gate" ; > lv2:name "Gate" ; > lv2:default 0.0 ; > lv2:minimum -1.0 ;
> lv2:maximum
1.0 ;
>
> Those 2 should have defined if they are input or output.
This should be fixed now in 0.1.3.
I just released it, it is available on Sourceforge.
@David: I followed your advise in Ingen - and I as well fixed on issue
with the VCA Exp plugin.
Finally, the presets are as well fixed
Let me know if you find any other issues.
Aurélien
> ----- Original Message -----
> From: Johannes Kroll
>
> On Thu, 17 Jan 2013 12:10:20 +0100
> Johannes Kroll <jkroll(a)lavabit.com> wrote:
>
> > But I'm pretty sure that syncing Phasex to an external MIDI clock
> > worked before, now it doesn't. I'm sending MIDI Clock from Renoise to
> > Phasex. I checked that the ports are connected and the clock is sent
> > with qjackctl & aseqdump. Is it possible that some change between 0.96
> > and 0.97 created a problem with the MIDI Clock?
>
> By "problem" I mean that I remember the BPM value being updated by the
> MIDI Clock, now it isn't.
> I don't know if it's related, but the "Lock parameter (manual
> adjustment only)" checkbox in the "Map MIDI Controller" window of the
> BPM Pot is always checked after phasex startup. I tried turning it off,
> then saving a session. After reloading the session, the "Lock
> parameter" field has always the same value as before, it's apparently
> not affected by session loading. But it is affected by "Load MIDI map".
>
> Turning "Lock parameter" off however doesn't cause the BPM to be
> changed by the MIDI clock, so now I think I might have imagined it was
> doing that in 0.14.96... :-]
(I should have read this before responding to the first email...)
I just found a new issue with the BPM locking with v0.14.97, so I'm not
surprised at all if updating BPM from tempo sync got broken as well.
Getting this fixed will be a priority for v0.14.98.
Cheers,
--ww
> ----- Original Message -----
> From: Johannes Kroll
> On Thu, 10 Jan 2013 22:26:15 -0500
> "William Weston" <whw(a)linuxmail.org> wrote:
>
> > > ----- Original Message -----
> > > From: Johannes Kroll
> > >
> > > I played around with it, it's fun! GUI looks very cool, too.
> > >
> > > After using it a few times, I noticed that some folders with strange
> > > names had been created with files like patchbank, phasex.cfg,
> > > phasex.map, sessionbank in them. The folder names contain weird
> > > characters, Thunar file manager displays them as 'invalid encoding'.
> > > One such folder showed up in my downloads folder, the other one in a
> > > src directory I was working in, possibly the PWDs when I started
> > > phasex... Has anybody else seen this behaviour?
> > >
> > > I'm running Ubuntu 12.04 on x86-64.
> >
> > These files and directories are created when a session is saved via
> > LASH, JACK Session, or native session management. I've seen this
> > behavior once before, when first working on LASH support, and it
> > turned out to be a character encoding problem with LASH supplied
> > directory names. The only thing I can think of here is to use the
> > "C" locale instead of obtaining locale from the user's environment,
> > so I've made this change in v0.14.97-dev. Could you try the latest
> > in git, and let me know how it goes?
>
> I'm not using LASH, but I did save sessions in Phasex "natively". I
> tried the latest git and I don't see the strange directories in the
> working directory where I started Phasex. I don't know if they popped
> up somewhere else, but I think they were in the WD, so I guess that
> fixed it!
Great!
> But I'm pretty sure that syncing Phasex to an external MIDI clock
> worked before, now it doesn't. I'm sending MIDI Clock from Renoise to
> Phasex. I checked that the ports are connected and the clock is sent
> with qjackctl & aseqdump. Is it possible that some change between 0.96
> and 0.97 created a problem with the MIDI Clock?
Are there any specific sync/timing issues that you're trying to solve
by sending MIDI Clock messages?
MIDI Clock messages are currently ignored. The original MIDI enabled
version of phasex had this, but it ended up adding too much jitter to
the LFO frequencies and caused more problems than it solved. The
internal MIDI clock in phasex is used for timestamping incoming events
and assigning frame position. (Future plans include a more robust
tempo clock that can be used with MIDI Clock, MTC, MIDI triggers, tap
tempo, JACK Transport, etc.)
For now, the best options for keeping in sync with tempo changes are
JACK Transport Tempo sync or automating the BPM parameter. Not ideal,
I know... but this is better than nothing and should hold up until I
can get the tempo clock designed.
Cheers,
--ww
Hello everyone,
I just released today a new version of the avw.lv2 plugins.
As a reminder, this project started as a porting of the Alsa Modular Synth
internal modules to LV2 plugins: VCO, LFO, VCF, etc... Teamed up with
Ingen, they can be used to create modular synths or analog drum machines
(but the list is not exhaustive!).
But in the latest versions, the suite saw the addition of a few other
plugins not coming from AMS:
- a (very basic) DownSampler that can be used as a filter to degrade the
sound
- a Granulator which is a granular effect for real time audio - interesting
for VCOs, but as well for vocals, guitars or even drums
- a Beat Repeater and a Beat Slicer: the Beat Repeater would repeat a
certain number of beats, where the Beat Slicer would repeat randomly beats
in a bar - again I find them pretty interesting for drums and guitars
They can be downloaded here:
http://sourceforge.net/projects/avwlv2/files/avw.lv2-0.1.2.tar.gz/download
SVN: svn checkout svn://svn.code.sf.net/p/avwlv2/code/trunk avw.lv2
GIT: git clone https://github.com/blablack/avw.lv2.git
For Ubuntu users, a PPA is available:
https://launchpad.net/~blablack/+archive/music-prod
Finally, although I have been tested these plugins extensively and wrote
them to be easy and straight forward to use, please please please provide
any ideas, feedbacks, bug reports, anything to improve them!
Hope you enjoy them!
Aurélien
Artists of the Universal Music Group likely are members of the GEMA, even
if they aren't Germans.
If they catch you when smoking weed in Germany, the sentence isn't very
hard, but if they catch you playing copyright music of GEMA members you
are done. Some countries completely don't care about copyrights , but they
kill you if you're smoking weed. When in Rome, do as the Romans do!
--
No good deed ever goes unpunished.
Einer guten Tat folgt die Strafe auf dem Fuße!