Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6317865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:34:49+00:00 2026-05-24T15:34:49+00:00

How do you host the PitchShift Audio Unit plugin correctly in its own window?

  • 0

How do you host the PitchShift Audio Unit plugin correctly in its own window?

I am developing a Mac app that hosts Apple’s system supplied Audio Unit plugins. With the new OSX 10.7 Lion, some of the plugins have updated views. PitchShift is one of these.

PitchShift and a few others have new knobs to change there parameters. When a knob is being turned with the mouse, a horizontal bar showing the knob’s parameter value is displayed below the knob.

This bar stays on screen after the knob is released and even after the window is closed. If I click one of the knobs, thus creating a rogue value bar, and move the window the PitchShift view is in, the bar stays where the window used to be. And if I click the knob again at this point, a new bar appears, but both bars are actively updated with the changing knob parameter value information. This happens every time I repeat this process with more bars staying on screen.

After a few times with this happening, my app exits with bad access at NSApplicaionMain() call in the main.m file.

I checked in Logic 9, and this does not happen there. The bar seems to be tied directly to the knob, and thus disappears immediately after you let the knob go with the mouse.

I set the PitchSHift view to be the contentView of a dedicated NSWindow.

How is Logic keeping this from happening, or just how can I?

I’ve tried seeing if the parameter value bars where subviews of the PitchShift view, but they don’t seem to be.

Any help would be greatly appreciated.

EDIT: When the a value bar first appears, I get the following output in the console from my program: Circle and line do not intersect

So I’ve found that it is using core-animations CALayers. The problem now is that the value bar layers aren’t a part of the PitchShiftView’s layer hierarchy. In other words, I can find all the other layers that build up the pitchShiftView, but not the layers for the value bars. Which seems like it might be the whole problem to begin with.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:34:50+00:00Added an answer on May 24, 2026 at 3:34 pm

    I finally figured it out. The parameter value bars are child windows of the window that owns the audio unit view.

    To solve the problem, I catch the mouse up events for the window in my subclass of NSApplication, and I then close the child window (aka the value bar) so that they don’t stay on screen.

    This did not stop the exit bad access. I now think that is a separate issue that only appeared to be related to these lingering child windows.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is Apple's PitchShift Audio Unit plugin using core animation to display the value bars
The host that I want to host with does not support server side url
The host that the majority of my script's users are on forces an text
We host our ASP.NET applications on two web servers (Server 2003, IIS 6) that
I host my application on google app engine. What my application should do is
We host a C++ based WebServices application in IIS and we're finding that when
I host two sites in a single sitecore environment. I've modified web.config so that
We host on our servers a vendor application's SQL Server database that we'd like
I host at hostgator and have about 30 mysql databases (all different websites that
I host my Silverlight app in commercial hosting, but to get it I must

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.