sfinfo~ and bpatcher help


    Mar 24 2006 | 11:36 pm
    Hey everyone, Ive made a little audofile player supatch using the bpatch. To get sfinfo~ to work within the audiofile player subpatch, I've had to name the sfplay~ object using loadbang and a message box. However, If I have multiple instances of this bpatch in the same max patch, the sfinfo~ stops working because of the whole naming thing. Is there some way that I can isolate every bpatch? I've included an example of my problem below. Just load an audiofile into the first audiofile player on the left, and then hit the checkbox to make it start and also trigger sfinfo~. Then, when you do the same to the second audiofile player, it will play the audio that you chose, but show all the info of the first audiofile..

    • Mar 25 2006 | 12:58 am
      Here is a pure Max solution. It's also pretty trivial to do this with Javascript, I think it might even be an example. There are a few files below which should be saved together somewhere in your search path. Use the specified filenames, which are included as help text in the patches. These are for "New from Clipboard" because I'm feeling lazy. I'm sure there are better ways, but this one works for my purposes.
      ----- name before filetype (your choice): "guid"
      ----- name before filetype (your choice): "guid_bpatcher_test"
      ----- name before filetype (your choice): "guid_bpatcher_test-parent" (name doesn't matter on this one)
    • Mar 27 2006 | 9:20 am
      n z wrote: > Hey everyone, Ive made a little audofile player supatch using the > bpatch. To get sfinfo~ to work within the audiofile player subpatch, > I've had to name the sfplay~ object using loadbang and a message box. > However, If I have multiple instances of this bpatch in the same max > patch, the sfinfo~ stops working because of the whole naming thing. Is > there some way that I can isolate every bpatch?
      You need to look into #0 naming. every instance needs its own name, search the archives its covered approximatly every week once.
      Stefan
      --
      [][] [][][] [][] [][][] [][][][][][][][][][][][][][][]
      Stefan Tiedje Klanggestalter Electronic Composition & Improvisation
      /~~~~~ \ /|() ()| ))))) )| | |( \ /// _/)/ ))))) ___/ ///
      -------------------------x---- --_____-----------|----------- --(_|_ ----|-----|-----()---- -- _|_)----|-----()----------- ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France Phone at CCMIX +33-1-57 42 91 09