C programming - inlet intricacies


    Feb 03 2006 | 10:15 pm
    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

    • Feb 04 2006 | 10:21 am
      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
    • Feb 05 2006 | 7:24 am
      thank you, will do.
      dan
    • Feb 05 2006 | 7:40 am
      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.
      Best,
      Trond