To Sonar developers: Here's what's wrong with the plugin windows [Now with proof!!!]

Page: 12 > Showing page 1 of 2
Author
SilkTone
Max Output Level: -59.5 dBFS
  • Total Posts : 1566
  • Joined: 2003/11/10 17:41:28
  • Status: offline
2009/11/13 17:32:12 (permalink)

To Sonar developers: Here's what's wrong with the plugin windows [Now with proof!!!]

[Edit]
 
In message #28 I have posted a utility that can be used to prove my claim of invalid flags.
 
---------------------------------------------------------------------
 
As I'm trying to move my projects to 64-bit, I bought JBridge to help out with some plugins. I noticed that they have a special "refresh" button on the bottom left that allows you to force a refresh of the contents. Sure enough, many JBridged plugins have drawing glitches. I happen to know exactly what is wrong, and it is a Sonar bug. This is also related to the flashing you see when you resize V-Vocal, for instance.
 
Well how would I know this? Because I write VST plugins for my own use and what I needed was for the property page to be resizable, like it is for V-Vocal. By default this is typically not supported. I have written code that examines all windows that make up the property page and then by manipulating those windows, allows seamless window resizing. Initially I also ran into the epileptic-inducing flashing you see when you resize V-Vocal, as well as general drawing glitches where parts of the UI becomes invisible.
 
So after some research I found that the following window styles need to be added to all windows that make up the property page:
  • WS_CLIPCHILDREN
  • WS_CLIPSIBLINGS
  • WS_EX_COMPOSITED  <- Don't use. Some plugins' UIs update slowly when this is set.
When my plugin gets instantiated, it enumerates all of its Sonar-supplied parent windows and sets those flags. Once I do that, everything works and the flashing and drawing glitches go away.  Many other plugins can benefit from this as well as JBridge if Cakewalk can make this simple fix.
post edited by SilkTone - 2009/11/21 00:30:23

Windows 10 Pro x64, SONAR Platinum 64-bit
Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
#1

51 Replies Related Threads

    SONARtist
    Max Output Level: -79 dBFS
    • Total Posts : 599
    • Joined: 2005/10/03 17:10:31
    • Location: Switzerland
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 18:46:01 (permalink)
    So now the issue is "how do you GET to the developers to make your suggestions" ?  I just hope someone from Cake reads this (Brandon ?)
    #2
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 18:52:39 (permalink)
    SONARtist


    So now the issue is "how do you GET to the developers to make your suggestions" ?  I just hope someone from Cake reads this (Brandon ?)


    After I posted this message on the forum I logged an official bug. But I am not holding my breath because of all the bugs I have logged in the past years, I can't think of one that has actually been fixed. But I guess we can always hope...

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #3
    Susan G
    Max Output Level: 0 dBFS
    • Total Posts : 12016
    • Joined: 2003/11/05 22:49:26
    • Location: Putnam County, NY
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 18:52:57 (permalink)
    From the "How to Contact Cakewalk Directly" Sticky:

    If you think you may have found a defect in a Cakewalk program, inform us so we can fix it:

    http://www.cakewalk.com/Support/ProblemReporter/

    -Susan

    2.30 gigahertz Intel Core i7-3610QM; 16 GB RAM
    Windows 10 x64; NI Komplete Audio 6.
    SONAR Platinum (Lexington) x64
    #4
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 19:01:44 (permalink)
    Susan G


    From the "How to Contact Cakewalk Directly" Sticky:

    If you think you may have found a defect in a Cakewalk program, inform us so we can fix it:

    http://www.cakewalk.com/Support/ProblemReporter/

    -Susan


    Thanks.  I filed a bug report after I posted the original message.

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #5
    bitflipper
    01100010 01101001 01110100 01100110 01101100 01101
    • Total Posts : 26036
    • Joined: 2006/09/17 11:23:23
    • Location: Everett, WA USA
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 19:33:34 (permalink)
    So you would have CW set these options in SONAR's main window, possibly screwing up other child windows, just so the VST window doesn't flicker? The WS_CLIPCHILDREN flag is especially problematic, potentially causing many other drawing issues.

    Some of these options cause problems that only show up with specific video drivers, or with specific combinations of other style flags, making it hard to test (as I found out the hard way - and I don't support nearly as many workstations as CW does). Just because a technique works for you on your computer doesn't mean the "fix" translates to the thousands of other, very diverse computers in the world.

    I'm sure CW appreciates your help, but why would you assume that something so basic would be beyond Noel & company's expertise in the first place?



    All else is in doubt, so this is the truth I cling to. 

    My Stuff
    #6
    Sickvision
    Max Output Level: -74 dBFS
    • Total Posts : 841
    • Joined: 2009/05/03 22:28:59
    • Location: BOSTON, MASS
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 19:47:40 (permalink)
    ya bit you tell him. lol i would be pressed to go in to this conversation more than that. sounds like

    SONARX1-64 WIN 7-64 DELTA-1010lt 
    ASUS990 6 core with delta
    2ssd drives 16 gigs RAM
    BX5a monitorsYAMAHA 4416

    http://soundcloud.com/american-metal/high-on-the-wire-pre
    #7
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 19:51:36 (permalink)
    bitflipper


    So you would have CW set these options in SONAR's main window, possibly screwing up other child windows, just so the VST window doesn't flicker? The WS_CLIPCHILDREN flag is especially problematic, potentially causing many other drawing issues.

    Some of these options cause problems that only show up with specific video drivers, or with specific combinations of other style flags, making it hard to test (as I found out the hard way - and I don't support nearly as many workstations as CW does). Just because a technique works for you on your computer doesn't mean the "fix" translates to the thousands of other, very diverse computers in the world.

    I'm sure CW appreciates your help, but why would you assume that something so basic would be beyond Noel & company's expertise in the first place?

    The window style flags I am talking about is basic Windows programming 101. It has nothing to with drivers or anything like that. The problem is that Sonar gives the plugin a parent window with broken flag combinations. It results in child and sibling windows drawing all over each other when they should not. There is nothing wrong with the WS_CLIPCHILDREN style, so I am not sure why you say it is problematic. You are supposed to set that style if you don't want the parent to wipe out the child every time it draws itself.  Yes I am also surprized that Cakewalk engineers can't get this basic functionality right. On the other hand, they make the plugin window frames user resizable yet there is no way for the plugin to actually know that the user resized the window, so I won't put it past them to screw up the window flags also. I mean, have you seen what it looks like when you resize V-Vocal? Either setting the hbrBackground value in WNDCLASS or WNDCLASSEX to NULL or setting the above flags will immediately fix the overdraw problems in V-Vocal. If you don't believe me use Spy++ and you will see pretty much every window containing a child window in any application will have those flags set.
     
    BTW, nobody said they should set the flags in the main window. It needs to be set in the window Sonar creates for each plugin.
    post edited by SilkTone - 2009/11/14 02:42:29

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #8
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/13 19:56:33 (permalink)
    Sickvision


    ya bit you tell him. lol i would be pressed to go in to this conversation more than that. sounds like

    Yea, I would also like him to go more into this conversation. I have been doing this many many years and I have done some extensive programming to work around these exact bugs in Sonar's plugin windows.
     
    I say bring it on...

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #9
    bitflipper
    01100010 01101001 01110100 01100110 01101100 01101
    • Total Posts : 26036
    • Joined: 2006/09/17 11:23:23
    • Location: Everett, WA USA
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 12:22:30 (permalink)
    WS_CLIPCHILDREN is a property of the parent window. It tells the parent not to redraw the region occupied by the child window, which can reduce flicker caused by the parent redrawing that region and then the child redraws over it.

    If you are seeing reduced flicker in your VST as a result of setting this property, it's because the flicker was within your VST's window caused by painting the child windows within it.

    And these settings do relate to video drivers. They aren't magic, they instruct Windows capital-W on how to paint windows little-w. Ultimately, it is up to the video driver to do the actual work, and how each driver manages it varies. Some have accelerators just for this kind of thing, others do not.

    Remember what happened when George W said "bring it on". He's been ridiculed for that statement ever since.


    All else is in doubt, so this is the truth I cling to. 

    My Stuff
    #10
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 13:21:13 (permalink)
    bitflipper


    WS_CLIPCHILDREN is a property of the parent window. It tells the parent not to redraw the region occupied by the child window, which can reduce flicker caused by the parent redrawing that region and then the child redraws over it.

    If you are seeing reduced flicker in your VST as a result of setting this property, it's because the flicker was within your VST's window caused by painting the child windows within it.

    And these settings do relate to video drivers. They aren't magic, they instruct Windows capital-W on how to paint windows little-w. Ultimately, it is up to the video driver to do the actual work, and how each driver manages it varies. Some have accelerators just for this kind of thing, others do not.

    Remember what happened when George W said "bring it on". He's been ridiculed for that statement ever since.
    Maybe you should read my original post again. I clearly said the problem was in the window that Sonar presents to the plugin, hence the parent window of the plugin UI. The plugin window becomes a child window of the one Sonar presents as the parent. Yes, so absolutely it is the parent window that has the missing WS_CLIPCHILDREN flag. A video driver that can't handle basic WS_CLIPCHILDREN functionality will have severe drawing glitches. Do you have a link to any info about these problems you talk about?
     
    And no, the flicker is not due to my own (or any other plugin) windows inside the plugin, it is due to the plugin's parent window (provided by Sonar) that is screwed up. And you are missing the point that this is more than just annoying flicker. Some plugins have severe drawing problems where parts or even the whole UI becomes invisible. Why do you think JBridge has special options to force a redraw ever second or two? It is because of Sonar's fudged windows it presents to plugins.
     
    A question for you since you are an expert in Sonar windows: In your research of the windows that Sonar presents to the plugin, what did you discover as far as their flags and how should a plugin deal with these problems? I can tell you in detail every window, it's name and class name, including their window style flags of what Sonar presents to the plugin. I can tell you what flags need to be flipped on which one of these windows. I can even tell you the window hierarchy of most other host as well (which is why I know Sonar is the only one whose developers could not figure out what styles they need to use - everyone else got it right). Can you give similar details?
     
    You are more than welcome to take me on in this area, but as I said I have wasted endless time enumerating Sonar windows and fixing their fudged flags, so there is nothing you can tell me in this area (unless you also did similar research in which case we can compare notes).  Let's go into detail, shall we. So once again, bring it on.
     
    I even have a challenge for you: Can you write a VST plugin that has a resizable UI and that will resize smoothly in Sonar with no overdraw problems and no drawing glitches at all?  Mine is ready whenever yours is...
     
    Sorry, not trying to be difficult here, but if you are going to say I don't know what I am talking about here then you need to back up those claims. I am always open to good-spirited technical discussions and there are many areas I am not well versed in but this is not one of them.
    post edited by SilkTone - 2009/11/14 13:27:05

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #11
    A1MixMan
    Max Output Level: -58 dBFS
    • Total Posts : 1706
    • Joined: 2003/11/19 16:15:11
    • Location: SunriseStudios
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 15:30:31 (permalink)
    Not sure if this is related to the topic at hand, but I really hate the fact that you can't resize the plug in windows in Sonar. Having a high screen resolution makes reading some of the plug ins nearly impossible. I wish there was a fix for this.
     
     
    #12
    bitflipper
    01100010 01101001 01110100 01100110 01101100 01101
    • Total Posts : 26036
    • Joined: 2006/09/17 11:23:23
    • Location: Everett, WA USA
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 15:40:20 (permalink)
    I am always open to good-spirited technical discussions

    Had I believed this to be true, I would not have challenged your initial assertion. But you have chosen to take a heavy-handed, arrogant and disrespectful tone in your criticisms of Cakewalk developers, and that is what I take issue with. To suggest that they do not have a grasp of Windows programming equal to your own is extremely arrogant.

    No, I have never written a VST, so you got me there. But I have been programming in Windows since 3.0, and programming other windowed UIs long before that, and I doubt very much that there is anything unique about VSTs from a GUI standpoint. Correct me if I am wrong, but I don't think the Windows GDI cares one whit whether the windows in question contain a VST,  a spreadsheet or Bob the Helpful Paperclip.

    I can tell you that in my own experience, I have implemented WS_CLIPCHILDREN to combat flicker, exactly as you are doing, and I had to remove it due to incompatibilities with some video drivers.

    I support about 2,000 workstations and I have no control over what hardware my users buy, so when incompatibilities come to light I have to code to the lowest common denominator. Cakewalk's install base is many times bigger than mine, so they have to use even more caution. That's what I meant when I said that just because a solution works for you does not mean it's practical for Cakewalk to implement.

    So settle down, buckaroo. You're not the only coder cowboy on the planet - CW employs some of the best in the business. If you think they need your help, write them an email and offer your services. But don't post broadside attacks on an open forum that suggest they are incompetent, knowing that most readers will not be able to critically evaluate your claims.


    All else is in doubt, so this is the truth I cling to. 

    My Stuff
    #13
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 16:04:48 (permalink)
    A1MixMan


    Not sure if this is related to the topic at hand, but I really hate the fact that you can't resize the plug in windows in Sonar. Having a high screen resolution makes reading some of the plug ins nearly impossible. I wish there was a fix for this. 
     
    There is actually rudimentary resizing support in the VST spec, but so few hosts support it that pretty much all plugins just use a fixed size. Those that can benefit from resizable UIs usually have options where the user can select from a few fixed sizes (like Kontakt), and some even allow the user to type in a custom size, but in all cases the UI needs to be closed and re-opened to use the new size. It is a pretty nasty oversight in the VST spec to not make this a better defined and implemented part of the spec.
     
    But even if this was possible, most plugins would probably opt for a fixed size, and that would be fine (in which case the plugin window should not have resizable edges like Sonar plugin windows currently have). But there are plugins that can benefit from continuously resizable UIs similar to V-Vocal, for instance. But V-Vocal is built into Sonar and don't have to deal with the typical VST limitations.
     
    As I said, in my own plugins I have developed a mechanism that allows the user to continuously resize the UI because my plugin is similar to V-Vocal in where it also draws a graph.   Allowing the user to choose the best size is beneficial in cases like this. But my mechanism is essentially a hack (although not any more than, say, BitBridge). It is a hack because it needs to make assumptions about the hierarchy and layout of windows that typically the plugin shouldn't need to deal with, which can change from one Sonar version to the next, and will be different on different hosts. Maybe if I one day decide to make my plugins available to others, I might need to deal with it. But is working well for my own purposes so I will deal with it later if I have to.
     
    While the missing WS_CLIPCHILDREN flags in the Sonar windows is not related to resizing, it is something I came across in my effort to make the window resizable and I just had to fix it to make things work properly. My non-resizable plugins also benefit from this fix to the Sonar windows so this is not specific to the need to resize, just the need to draw something to the screen without glitches. 
     
    I am sure that what happens in many cases is that plugin developers create a plugin, make it work in other hosts, then find that in Sonar they have weird drawing glitches. I am sure Cakewalk has been contacted to see what could be wrong and they probably punted it back to the plugin developer (it can't possibly be our bug), who then ends up being forced to come up with some special hacks in their plugin drawing code just to make their UIs functional in Sonar (hello JBridge). The last part is purely speculative but I have a feeling scenarios like that happened many times already.

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #14
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/14 16:31:36 (permalink)
    bitflipper



    I am always open to good-spirited technical discussions
    Had I believed this to be true, I would not have challenged your initial assertion. But you have chosen to take a heavy-handed, arrogant and disrespectful tone in your criticisms of Cakewalk developers, and that is what I take issue with. To suggest that they do not have a grasp of Windows programming equal to your own is extremely arrogant.

    No, I have never written a VST, so you got me there. But I have been programming in Windows since 3.0, and programming other windowed UIs long before that, and I doubt very much that there is anything unique about VSTs from a GUI standpoint. Correct me if I am wrong, but I don't think the Windows GDI cares one whit whether the windows in question contain a VST,  a spreadsheet or Bob the Helpful Paperclip.

    I can tell you that in my own experience, I have implemented WS_CLIPCHILDREN to combat flicker, exactly as you are doing, and I had to remove it due to incompatibilities with some video drivers.

    I support about 2,000 workstations and I have no control over what hardware my users buy, so when incompatibilities come to light I have to code to the lowest common denominator. Cakewalk's install base is many times bigger than mine, so they have to use even more caution. That's what I meant when I said that just because a solution works for you does not mean it's practical for Cakewalk to implement.

    So settle down, buckaroo. You're not the only coder cowboy on the planet - CW employs some of the best in the business. If you think they need your help, write them an email and offer your services. But don't post broadside attacks on an open forum that suggest they are incompetent, knowing that most readers will not be able to critically evaluate your claims.
     
    I stated exactly what my experience is with dealing with Sonar plugin development. Maybe in the 90's some drivers were incapable of dealing properly with the WS_CLIPCHILDREN flag, but any video card company that releases drivers today that can't do that basic functionality will quickly go out of business. Again, I ask that you provide a link or something that describes these problems with WS_CLIPCHILDREN. It is a valid request from me since you say there are issues. I would like to see what you are talking about. Did you try Spy++ and looked at some random non-Sonar applications to see which flags they use? Chances are every window you come across that has a child window will have the WS_CLIPCHILDREN style flag set. Try it.
     
    No, I have never written a VST, so you got me there. But I have been programming in Windows since 3.0, and programming other windowed UIs long before that, and I doubt very much that there is anything unique about VSTs from a GUI standpoint. Correct me if I am wrong, but I don't think the Windows GDI cares one whit whether the windows in question contain a VST,  a spreadsheet or Bob the Helpful Paperclip.
     
    Neither did I say anything of the sort. What is important to note though is that if you want to write any type of Windows application, you need to stick to the coding requirements if you expect your application to work properly. You are right, there is nothing special about a VST plugin. Leaving out important flags like WS_CLIPCHILDREN in parent windows isn't going to magically make it work properly just because it is a VST plugin. As you say, Windows doesn't care.
     
    It doesn't matter how long either of us have been programming. If you haven't coded a plugin for Sonar and you didn't run into these issues, then with all due respect, you can't tell me I don't know what I am talking about. How on earth can you tell me for certain there isn't a bug in Sonar wrt this? I have seen it. Manually setting this flag in the Sonar parent windows fixes these issues. That is what my plugins do.
     
    You were the one challenging me. Of course I am going to defend what I'm saying since I know 100% what my experience is in this area. What did you expect I was going to say?
     
    As far as Cakewalk developers, yes, I am ticked off with them because I have run into many Sonar bugs, filed many bug reports and so far none have been fixed, years later. This particular WS_CLIPCHILDREN bug is Windows Programming 101, so if I seem ticked off then that is why. This bug should not be present in an application like Sonar.
     
    And as far as you go, I know you are a very smart guy. I have read many of your posts and I usually agree with almost all of them. But if someone is going to challenge you in an area that you are very familiar with, of course you are going to respond back. Especially if that person admits they have less experience in that particular area. I am sure there are many areas you will easily outsmart me, but this is not one of them. Not because I think I am smarter than you, this is just an area I have more experience in.
    post edited by SilkTone - 2009/11/14 16:32:57

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #15
    kevo
    Max Output Level: -70 dBFS
    • Total Posts : 1038
    • Joined: 2005/06/28 15:04:27
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 14:32:35 (permalink)
    Just for the fun of it, here's what Cakewalk has to say about plugins that don't display properly.

    Plug-in Windows Flicker or don’t Display Properly
    [size=3 font="times new roman"][size=3 font="times new roman"] If you have any plug-in’s that flicker or don’t display properly, please see the "X-Ray Windows Not Compatible With Some Plug-ins" topic below.
    X-Ray Windows Not Compatible With Some Plug-ins
    [size=3 font="times new roman"][size=3 font="times new roman"] X-Ray Windows is not compatible with plug-ins that use DirectDraw to create their windows, such as many recent plug-ins by Waves. If a plug-in is not compatible with X-Ray, the plug-in's window will either flicker or not display properly. If you have any plug-ins that are affected by this, you can exclude the plug-n(s) from X-Ray by following the instructions below:
    1. Open the Cakewalk Plug-in Manager (Tools > Cakewalk Plug-in Manager).
    2. In the Plug-in Categories window, select the category that the plug-in you want to exclude is in.
    3. In the Registered Plug-ins window, select the plug-in that you want to exclude.
    4. If the plug-in is a DirectX effect or an MFX, write down (or select and copy) the CLSID value that's in the CLSID field at the bottom of the dialog.
    5. If the plug-in is a VST or VSTi, write down the VST ID value that's in the VST ID field at the bottom of the dialog.
    6. Close the Plug-in Manager dialog.
    7. Use Notepad to open the XRayExclude.ini file that's in your SONAR program folder (C:\Documents and Settings\<username>\Application Data\Cakewalk\SONAR 8 Producer Edition).

    Note: if you use SONAR Studio Edition, substitute "Producer Edition" with "Studio Edition".
    8. At the end of the file, find the [EffectProps View] section.
    You will see entries such as the following:
    ; Waves SSL EQ Stereo
    XRayExclude11=1397510483
    XRayExclude12={E451379E-F7E1-4E82-98D9-BEB87AC45E90}
    [size=3 font="times new roman"][size=3 font="times new roman"] 9. Exclude your plug-in by creating a blank line below the last entry in the [EffectProps View] section, and then typing:
    ;[name of your plug-in, but without brackets]
    XRayExclude[type the next available number in XRayExclude list, but without brackets]=[VST ID number, with no brackets, or CLSID number, with curly braces at start and finish]
    [size=3 font="times new roman"][size=3 font="times new roman"] For example, if the last entry in the [EffectProps View] section was:
    ; Waves SSL EQ Stereo
    XRayExclude11=1397510483
    XRayExclude12={E451379E-F7E1-4E82-98D9-BEB87AC45E90}
    [size=3 font="times new roman"][size=3 font="times new roman"] If you wanted to exclude the Cakewalk FxDelay from the X-Ray Windows feature, after creating a blank line you would type:
    ; Cakewalk FxDelay
    XRayExclude13={985DAF67-589F-4B8D-8BBC-D7AD651B9022}
    [size=3 font="times new roman"][size=3 font="times new roman"] If there was also a VST version of the Cakewalk FxDelay, you would add another line:
    XRayExclude14=[some VST ID number, with no brackets]
    [size=3 font="times new roman"][size=3 font="times new roman"] 10. Save and close the XRayExclude.ini file, and restart SONAR to implement your changes.
    #16
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 15:06:04 (permalink)
    kevo


    Just for the fun of it, here's what Cakewalk has to say about plugins that don't display properly.

    Plug-in Windows Flicker or don’t Display Properly 
    If you have any plug-in’s that flicker or don’t display properly, please see the "X-Ray Windows Not Compatible With Some Plug-ins" topic below.
    X-Ray Windows Not Compatible With Some Plug-ins 
    X-Ray Windows is not compatible with plug-ins that use DirectDraw to create their windows, such as many recent plug-ins by Waves. If a plug-in is not compatible with X-Ray, the plug-in's window will either flicker or not display properly. If you have any plug-ins that are affected by this, you can exclude the plug-n(s) from X-Ray by following the instructions below...
     
     
    I think the problem with X-Ray is caused by a different reason. I don't know what the exact problem is in that case, but it could be that DirectDraw does not support alpha blending of windows on the desktop. So that might conflict with the X-Ray functionality that sets the plugin windows to some alpha blended value.
     
    In the case of the missing WS_CLIPCHILDREN style on Sonar parent windows, this could potentially affect all plugins when opened in Sonar, not just those that use DirectDraw. And this could cause more problems than just flicker, it can also cause parts or all of the plugin UI to randomly become completely invisible.
    post edited by SilkTone - 2009/11/15 15:08:04

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #17
    Sound Advice
    Max Output Level: -87 dBFS
    • Total Posts : 178
    • Joined: 2009/03/03 20:28:08
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 15:58:26 (permalink)
    I don't know all that much about programming, except what i do know is that the people at cakewalk do it for a living.

    and also what seems simple sometimes is actually quite complicated when it comes to wide range user compatibility, and also lots of other little things can get interference.

    idk, for this case specifically, but if this is basic windows 101, then i have a feeling there were some kind of complications that arose where they had to fore-go these visual enhancements, or fixes.
    #18
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 16:24:52 (permalink)
    Sound Advice


    I don't know all that much about programming, except what i do know is that the people at cakewalk do it for a living.

    and also what seems simple sometimes is actually quite complicated when it comes to wide range user compatibility, and also lots of other little things can get interference.

    idk, for this case specifically, but if this is basic windows 101, then i have a feeling there were some kind of complications that arose where they had to fore-go these visual enhancements, or fixes.

    What you say might very well be true. I am only speaking from my own experience when I looked into the problems I ran into with my plugins. My viewpoint is obviously not from a CW developer, but from someone outside that is using their implementation of the VST spec.  Maybe there is a reason that CW decided to leave the style flags off. But I have no idea what that reason could be, since all the other hosts I tested my code with all had the required flags set. So if what you are saying is true, then there could be something wrong in other parts of CW's code that necessitated them not setting the flags. It doesn't make sense though, because once I set those flags in the Sonar parent windows from my plugin code, things just start working right, and I am not seeing any new issues because of this.
     
    This is what the MSDN documentation says about this flag:
    WS_CLIPCHILDREN 
    Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.
     
    It doesn't sound very optional to me. If you Google for WS_CLIPCHILDREN you will find many examples where people ran into problems and the cause turns out to be that they forgot to set the WS_CLIPCHILDREN flag when creating parent windows.
     
    BTW, I also do it for a living.
    post edited by SilkTone - 2009/11/15 16:28:22

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #19
    Sound Advice
    Max Output Level: -87 dBFS
    • Total Posts : 178
    • Joined: 2009/03/03 20:28:08
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 17:07:17 (permalink)
    SilkTone


    Sound Advice


    I don't know all that much about programming, except what i do know is that the people at cakewalk do it for a living.

    and also what seems simple sometimes is actually quite complicated when it comes to wide range user compatibility, and also lots of other little things can get interference.

    idk, for this case specifically, but if this is basic windows 101, then i have a feeling there were some kind of complications that arose where they had to fore-go these visual enhancements, or fixes.

    What you say might very well be true. I am only speaking from my own experience when I looked into the problems I ran into with my plugins. My viewpoint is obviously not from a CW developer, but from someone outside that is using their implementation of the VST spec.  Maybe there is a reason that CW decided to leave the style flags off. But I have no idea what that reason could be, since all the other hosts I tested my code with all had the required flags set. So if what you are saying is true, then there could be something wrong in other parts of CW's code that necessitated them not setting the flags. It doesn't make sense though, because once I set those flags in the Sonar parent windows from my plugin code, things just start working right, and I am not seeing any new issues because of this.
     
    This is what the MSDN documentation says about this flag:
    WS_CLIPCHILDREN 
    Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.
     
    It doesn't sound very optional to me. If you Google for WS_CLIPCHILDREN you will find many examples where people ran into problems and the cause turns out to be that they forgot to set the WS_CLIPCHILDREN flag when creating parent windows.
     
    BTW, I also do it for a living.


    i wasn't implying you didn't know what you were talking about, just saying that they do know what they're talking about also, and certainly their knowledge with sonar and all it's requirements and compatibility issues and whatnot far exceeds yours.

    but you did the right thing at any rate. you sent them a bug report. and they will most certainly look at it, and if it is an option for them to change it, then we'll for sure see it in the next patch  for 8.5
    post edited by Sound Advice - 2009/11/15 17:09:26
    #20
    F@KKER
    Max Output Level: -82 dBFS
    • Total Posts : 440
    • Joined: 2004/01/03 02:02:26
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 17:10:12 (permalink)
    SilkTone,
    are you stating that you have fixed these issues in Sonar yourself as installed on your machine?

    I would be quite interested in a (undoable) patch if you would make it available.

    F@KKER

    Someone said:
    I've had more time to play with this, and am withdrawing the bug remarks.
    This appears to work as designed and is actually a pretty cool feature.
    #21
    Chris S
    Max Output Level: -83 dBFS
    • Total Posts : 396
    • Joined: 2007/06/13 21:40:13
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 17:23:28 (permalink)
    I was wondering why Battery3 becomes the wrong-sized window when I close the cell properties area.
    Thought it was a Battery bug, but perhaps Sonar?

    Listen in
    #22
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 17:55:54 (permalink)
    Sound Advice


    i wasn't implying you didn't know what you were talking about, just saying that they do know what they're talking about also, and certainly their knowledge with sonar and all it's requirements and compatibility issues and whatnot far exceeds yours.

    but you did the right thing at any rate. you sent them a bug report. and they will most certainly look at it, and if it is an option for them to change it, then we'll for sure see it in the next patch  for 8.5
     
    Yes their knowledge of Sonar far exceeds mine. But that doesn't mean their knowledge of programming Windows itself is neccesarily better that every body elses. It doesn't matter what application it is, they all work with native Win32 windows (even .Net WinForms applications which wrap native Win32 windows), and they all have to follow the same basic guidelines.
     
    I hope you are right about them fixing it. But my experience with CW when I have logged bugs (even ones they confirmed) in the past has not been very positive (hence my ticked-off attitude when dealing with these kinds of bugs). CW has to triage the bugs to figure out which ones they are going to fix. It is impossible to fix them all. So their triage criteria most likely includes things like how serious is the bug, how likely is it to affect many people, how many people actually ran into the bug, are there work-arounds, etc. You can see that using those criteria, a bug like this will probably be low on their priority list, meaning it will most likely never get fixed (even though the fix is really trivial). This is if they even take it seriously. Part of the problem is that if they have the same attitude as BitFlipper in that it can't possibly be a bug in Sonar, that the chances of it getting fixed becomes even more remote.
     
    But we can hope though.
    post edited by SilkTone - 2009/11/15 18:01:48

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #23
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 18:00:03 (permalink)
    F@KKER


    SilkTone,
    are you stating that you have fixed these issues in Sonar yourself as installed on your machine?

    I would be quite interested in a (undoable) patch if you would make it available.

    F@KKER

    Well, yes and no. The way it works is that if you develop a plugin, you can actually set the flags to the correct values when the plugin loads up, but only within that plugin's own window. You can't for instance fix other plugin windows at the same time. So there really isn't a patch that can be applied. The ultimate fix needs to come from CakeWalk.
    post edited by SilkTone - 2009/11/15 18:02:57

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #24
    Sound Advice
    Max Output Level: -87 dBFS
    • Total Posts : 178
    • Joined: 2009/03/03 20:28:08
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 18:34:29 (permalink)
     

    SilkTone



     
    Yes their knowledge of Sonar far exceeds mine. But that doesn't mean their knowledge of programming Windows itself is neccesarily better that every body elses.


    That is a fact, but i thought you said it was basic obvious windows 101? surely they would know that wouldn't they?

    but still, sometimes in the process of producing things for one reason or another something might get overlooked, so it's a good thing you submitted the fix either way.

    even though it's low on the priority list, it sounds simple to fix, so i think it's probably quite likely they would fix it if they could. but i don't know how they run their company so i could be wrong.
    post edited by Sound Advice - 2009/11/15 18:39:04
    #25
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 18:58:14 (permalink)
    Sound Advice


     

    SilkTone




    Yes their knowledge of Sonar far exceeds mine. But that doesn't mean their knowledge of programming Windows itself is neccesarily better that every body elses.


    That is a fact, but i thought you said it was basic obvious windows 101? surely they would know that wouldn't they?

    but still, sometimes in the process of producing things for one reason or another something might get overlooked, so it's a good thing you submitted the fix either way.

    even though it's low on the priority list, it sounds simple to fix, so i think it's probably quite likely they would fix it if they could. but i don't know how they run their company so i could be wrong.


    Well if there is one thing I know is that in any software there are going to bugs, no matter how simple or obvious the bug looks in hindsight. It might very well not have been anyone's intention to leave out these flags, but we all make mistakes and especially in software where there are so many things that can go wrong. Things often seem to work right but in reality there could be subtle bugs where the cause is not obvious at all. So my point is just because those flags are not set, doesn't mean that was the intention. The part that is a bit strange to me is that this bug is still there after all these years/versions.

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #26
    Sound Advice
    Max Output Level: -87 dBFS
    • Total Posts : 178
    • Joined: 2009/03/03 20:28:08
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/15 19:04:05 (permalink)
    SilkTone


    Sound Advice


     

    SilkTone




    Yes their knowledge of Sonar far exceeds mine. But that doesn't mean their knowledge of programming Windows itself is neccesarily better that every body elses.


    That is a fact, but i thought you said it was basic obvious windows 101? surely they would know that wouldn't they?

    but still, sometimes in the process of producing things for one reason or another something might get overlooked, so it's a good thing you submitted the fix either way.

    even though it's low on the priority list, it sounds simple to fix, so i think it's probably quite likely they would fix it if they could. but i don't know how they run their company so i could be wrong.


    Well if there is one thing I know is that in any software there are going to bugs, no matter how simple or obvious the bug looks in hindsight. It might very well not have been anyone's intention to leave out these flags, but we all make mistakes and especially in software where there are so many things that can go wrong. Things often seem to work right but in reality there could be subtle bugs where the cause is not obvious at all. So my point is just because those flags are not set, doesn't mean that was the intention. The part that is a bit strange to me is that this bug is still there after all these years/versions.


    ya, i know what you mean, that's why it's good you submitted the report, but also what makes me a little skeptical that it was an accidental oversight. but like you said, ya never know.

    post edited by Sound Advice - 2009/11/15 19:05:45
    #27
    SilkTone
    Max Output Level: -59.5 dBFS
    • Total Posts : 1566
    • Joined: 2003/11/10 17:41:28
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/20 19:08:59 (permalink)
    OK,

    I made a little utility you can download here that proves my point.

    If you run the utility after you have opened a few VST plugins in Sonar, you can see the difference when you click on the button in the utility. It fixes all style flags in the open VST windows.

    In particular, the differences are very noticable if you use jBridge with plugins like B4 II, Amplitube 2, etc. Don't enable any of the jBridge work-arounds for the plugin UIs. Once the plugin UI is open, click on the button in the utility and it will instantly fix all Sonar VST windows. Now when you move a VST window partially off the screen and back again, the UI will no longer become invisible. If you resize the VST window, the UI will no longer become invisible.

    Bonus functionality: If you have any V-Vocal windows open, those will also be fixed. After clicking on the button in the utility, notice how smooth and without any flashing you can resize the V-Vocal windows.

    Come on Cakewalk, just fix these simple bugs!!! It really is easy if even I can fix it

    I would like to hear anyone's results after giving this a try.

    Windows 10 Pro x64, SONAR Platinum 64-bit
    Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
    32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
    NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
    #28
    Amazed
    Max Output Level: -81 dBFS
    • Total Posts : 459
    • Joined: 2006/11/04 22:25:35
    • Location: Perth
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/20 22:18:17 (permalink)
    bitflipper


    So you would have CW set these options in SONAR's main window, possibly screwing up other child windows, just so the VST window doesn't flicker? The WS_CLIPCHILDREN flag is especially problematic, potentially causing many other drawing issues.

    Some of these options cause problems that only show up with specific video drivers, or with specific combinations of other style flags, making it hard to test (as I found out the hard way - and I don't support nearly as many workstations as CW does). Just because a technique works for you on your computer doesn't mean the "fix" translates to the thousands of other, very diverse computers in the world.

    I'm sure CW appreciates your help, but why would you assume that something so basic would be beyond Noel & company's expertise in the first place?

    Common Bit, give the guy a break. He's having a damn good go at this. He just MAY be onto something and even if he doesn't have the exact problem nailed it may lead to somebody realising the real problem. And the devs at Cakewalk are just devs. If development got it right first time every time,  there would never be any bugs would there?

    Cheers.


    #29
    Amazed
    Max Output Level: -81 dBFS
    • Total Posts : 459
    • Joined: 2006/11/04 22:25:35
    • Location: Perth
    • Status: offline
    Re:To Sonar developers: Here's what wrong with the plugin property page window 2009/11/20 22:28:09 (permalink)
    Come on Cakewalk, just fix these simple bugs!!! It really is easy if even I can fix it


    Silk,

    I'm not certain that throwing down the gauntlet to Cakewalk in a public forum is the fastest way to getting this done. Put yourself in their shoes and let's assume you're right. If they suddenly fix it, how do they look? If they admit the issue first before they fix it, how do they look? If they just deny it and claim you're an idiot, how do they look?

    Sometimes the fastest way home is not the most direct :)

    Cheers.









    #30
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2026 APG vNext Commercial Version 5.1