C programming – inlet intricacies

Feb 3, 2006 at 10:15pm

C programming – inlet intricacies

Hi,

I’m trying to program a comb filter in C with the same functionality
as comb~ (as a personal exercise), but i’m having trouble getting the dual
signal/float capabilities in the inlets.

Depending on the order in which i call dsp_setup and floatin() in the
create object method as well as addftx() in main, i get radically
different results, which often don’t correspond to the inlet numbers i’ve
given as floatin() and addftx() arguments. Additionally, sometimes,
instead of creating dually functional inlets, it simply creates two
inlets, one signal and the other float.

I’ve tried to find the reasons for all of these things in the Writing
Externals document, and i’ve tried to find examples of the code on the
net, but all to no avail. Can anybody help or point me in the direction
of the answer?

dan mcanulty

#24263
Feb 4, 2006 at 10:21am

On around Feb 3, 2006, at 23:15, daniel e mcanulty said something like:
> I’m trying to program a comb filter in C with the same functionality
> as comb~ (as a personal exercise), but i’m having trouble getting the
> dual signal/float capabilities in the inlets.

MSP objects use proxies for inlets.

Read up on proxies. If you use addftx() you are shooting yourself in
the .

– p.

>
————– http://www.bek.no/~pcastine/Litter/ ————–
Peter Castine | ^
| Litter Power & Litter Bundle for Jitter
pcastine@gmx.net |
pcastine@bek.no | iCE: Sequencing, Recording, and Interface Building
4-15@kagi.com | for Max/MSP
| Extremely cool
| http://www.dspaudio.com
| http://www.dspaudio.com/software/software.html

#69892
Feb 5, 2006 at 7:24am

thank you, will do.

dan

#69893
Feb 5, 2006 at 7:40am

Hi,

if you download tl.objects, you’ll find source code included. I’ve
often found it to be useful to look at others code to get things
working myself.

http://www.bek.no/~lossius/download

Best,
Trond

#69894

You must be logged in to reply to this topic.