Hi,
I checked a new external into the pure-data CVS at sourceforge called: fiiwu~ and living in "/externals/footils/flext-iiwu"
This basically is a rewrite of the iiwu~ soundfont external with flext. The reason for the rewrite is, that somehow the old C-code did stop working here suddenly. After some upgrades involving libc and libiiwusynth, actually.
I couldn't get the old code to work again, so I rewrote it. :( But fiiwu~ has a bit of added functionality: It recognizes bitch bend and bank select messages, some selector shortcuts and you can send it notes as lists without a "note" selector.
But there still is one bug that bothers me and that's, why I post here first instead of pd-announce:
Somehow only the left outlet sends audio data. This seems to be a PD problem, because when I change the left and right channels in the iiwu function, it's still only the left outlet, that sends data, athough it should now be the right outlet...
So if someone has an idea, what might cause this, I'd be very glad to hear. The code is actually quite simple. I added two outlets with AddOutSignal(2). The critical part might be the dsp function: void fiiwu::m_signal(int n, float *const *in, float *const *out) { float *left = out[0]; float *right = out[1]; iiwu_synth_write_float(synth, n, left, 0, 1, right, 0, 1); } // end m_signal
This looks quite normal to me (?)
Thanks in advance.
Hi, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Somehow only the left outlet sends audio data. This seems to be a PD problem, because when I change the left and right channels in the iiwu function, it's still only the left outlet, that sends data, athough it should now be the right outlet...
With some help by Thomas Grill, I now found a workaround to fix the stereo/mono problem. Now fiiwu~ has three outlets, but only the first two are used.
Also the external now doesn't eat all your CPU when used with libiiwusynth 0.2.2 anymore. All changes are in CVS.
It seems absolutly useable now, and even some upstream PD objects have unused inlets... :)
ciao
Hi, (sorry for talking to myself...) Frank Barknecht hat gesagt: // Frank Barknecht wrote:
With some help by Thomas Grill, I now found a workaround to fix the stereo/mono problem. Now fiiwu~ has three outlets, but only the first two are used.
So, this ugly hack by me is removed again. It works without it if you use the freshly announced flext-0.3.3. The fiiwu~ version in CVS actually checks now, that you have the shiny, new flext installed.
No more empty outlets in fiiwu~
ciao