#923 Mac OS X: arrays do not update while recording

v0.44
open
puredata (318)
5
2014-08-13
2012-10-01
Anonymous
No

Hi there. Please check my abstraction patches as an example. I have my old PhaseVocoder patches (PhaseVoc.zip) from 2010 and a more elaborate new uptade to thos (Brane-e.zip). Both do not run well on Pd 0.43 (Vanilla or Extended).

Get the examples at:

https://docs.google.com/folder/d/0B3AoiT0xk8fnNFBxWDFNeDZ6Y1E/edit

Lets first check what happens with the PhaseVoc examples (which are 2: PVoc & LPvoc). Pvoc works fine, but LPVoc is very critical, it doesn't update well the GUI values, like number boxes or the sliders. Start recording on in and you will see. But the, it works fine on Pd 0.42

As for Brane-e, it will be the same kind of trouble when you're recording into the buffer. But i Pd 0.42 it works like a charm.

I tried other operational systems and got the same kind of problems. I'm runing a macbook air i7 1.8GHz on Mac Os 10.7.4

Cheers
Alex

Discussion

  • I do see this difference on my computer too. But if there is other stuff happening on my computer, then LPvoc-help.pd also has choppy GUI updates on 0.42.5. Quickly looking at your code, you're making Pd's GUI work extra hard because you're sending lots of data even if it hasn't changed. You should use a [change] object whenever you are sending a float to a [label $1( message so that it only gets sent if the float has changed.

    Here's an example of the message stream to the GUI, this is four cycles where only two of the nine GUIs are actually receiving changed data:

    -- first cycle --
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 1089800LABEL -text {0%}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 187f800LABEL -text {0%}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 107ea00LABEL -text {14.2%}
    -- second cycle --
    .x83a9c0.c itemconfigure 1893800LABEL -text {0:34}
    .x83a9c0.c itemconfigure 1893800LABEL -text {0:34}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 1089800LABEL -text {0%}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 187f800LABEL -text {0%}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 107ea00LABEL -text {14.2%}
    -- third cycle --
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 1089800LABEL -text {0%}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 187f800LABEL -text {0%}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 107ea00LABEL -text {14.2%}
    -- fourth cycle --
    .x83a9c0.c itemconfigure 1893800LABEL -text {0:34}
    .x83a9c0.c itemconfigure 1893800LABEL -text {0:34}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 10adc00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 1089800LABEL -text {0%}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 18b7a00LABEL -text {0:00}
    .x83a9c0.c itemconfigure 187f800LABEL -text {0%}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 1893e00LABEL -text {0:08}
    .x83a9c0.c itemconfigure 107ea00LABEL -text {14.2%}

     
  • Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose malwarebytes download
    <a href="http://www.1-love-quotes.com/user/shelf5floor" title="top 20 party dresses for the season">top 20 party dresses for the season</a>

     
  • Nice, but do you see the same kind of coding problem on the update of "brane-e"? I know I changed stuff a lot and that this old version had many coding issues that I just threw all away then restarted from scratch. One way or another, it was "working" fine in the previous versions, so I guess that some change had an affect to that. Cheers

     
  • it is a regression bug in 0.43 also, 0.43 should perform as well as 0.42. I'm looking now to try to figure it out.

     
  • if you mean it doesn't work either in 0.43.0
    that's right
    i tested and got the same problem
    hope we get it working at this release, I really like the brane-e patch, I hope I can use it in this extended version
    thanks

     
  • I was able to make LPVoc-help work fine on 0.43 by adding [change] objects in front of the spots where the labels are generated, specifically the 0% label and 0:00 labels. I also put [change] objects before where the sliders are updated.

    That said, I think that these GUI objects should have a built-in [change] object for the drawing part.

     
    • labels: --> puredata
    • assigned_to: nobody --> eighthave
     
  • I just committed some optimizations that should help with this. Try it and let me know if it stil doesn't work for you.

     
    • milestone: 1022526 --> v0.44
    • assigned_to: eighthave --> millerpuckette
     
  • Ok, I tracked down the problem where the array does not redraw while recording. This bug affects Mac OS X only, I think. I didn't test on Windows, it might affect there. But it does not affect GNU/Linux. I bisected the bug down to this commit:

    cd3844260f5abc840ef2f9ae7c3439ba07280f94 - fix up audio for macintosh -- UNTESTED ON WINDOWS

    Miller, you can easily reproduce the bug by running the Brane-e-help.pd patch, and clicking on the red REC bang button on the left side. It starts recording, and you should be able to see the sound it recorded in the array as it records. But it only updates after the recording finishes.

     
    • summary: GUIs not updating well on parent patch --> Mac OS X: arrays do not update while recording
     


Anonymous


Cancel   Add attachments