• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Logic + Sidechain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Logic + Sidechain


  • Subject: RE: Logic + Sidechain
  • From: "Kenneth Weiss" <email@hidden>
  • Date: Thu, 5 Jul 2007 07:04:35 -0400
  • Thread-topic: Logic + Sidechain

Thanx Bastian,

That won't make a difference with my situation, cause I am getting the exact same pointer for GetInput (0) and GetInput (1)
Are you saying that the side chain and the input are on the same bus?
GetInput(0) works for instruments that use side chain (they have no audio input), and I am trying to implement AUEffects like gate or compressor.

Kenneth


________________________________________
From: bastian.schnuerle [mailto:email@hidden]
Sent: Thursday, July 05, 2007 12:17
To: Kenneth Weiss; email@hidden
Subject: Re: Logic + Sidechain

Hi Kenneth,

the SideChainBus is in Logic on Input 0 .So you have to update your GetInput Routine to GetInput(0) . This should fix it. 

regards,

bastian

Am 05.07.2007 um 07:56 schrieb Kenneth Weiss:


Hi,

I am implementing side chain support for some plug-ins. It works fine in AU Lab, but when running the same plug-ins in Logic, the side-chain bus seems to transmit the same as the input buffers (the same pointers as the input), even after selecting a track for the side-chain on the input menu. (Same configuration with Logic plugs works fine)
It seems that I must be doing something wrong with logic.

Our plug-in is based on the AUEffectBase.

Here is how the side-chain is implemented:

CWSAU::CWSAU()
{
    if(IsSideChain())
    {
        CreateElements();
        Inputs().SetNumberOfElements(2);
    }
}

In the render before the call to ProcessBufferList, the side chain is pulled.

ComponentResult CWSAU::Render(AudioUnitRenderActionFlags & ioActionFlags,
                                    const AudioTimeStamp & inTimeStamp,
                                    UInt32 inNumberFrames)
{
    mValidSCBus = 0 ;
    if( IsSideChain() )
    {
        AUInputElement *theSC_Input = GetInput(1);
        ComponentResult result = theSC_Input->PullInput(ioActionFlags, inTimeStamp, 0 /* element */, inNumberFrames);
        
        if (result == noErr )
            mValidSCBus = & theSC_Input->GetBufferList();
    }
    return AUEffectBase::Render (ioActionFlags, inTimeStamp, inNumberFrames);
}

OSStatus CWSAU::ProcessBufferLists(AudioUnitRenderActionFlags & ioActionFlags, 
	const AudioBufferList &inBuffer,
	AudioBufferList & outBuffer,
	UInt32 inFramesToProcess)
{
    if(mValidSCBus)
        for (iBuff = 0; iBuff < mValidSCBus->mNumberBuffers; ++iBuff)
        {
            // go through all channels in current sidechain buffer
            for (iChan = 0, pChannelBufferStart = static_cast<float*>(mValidSCBus->mBuffers[iBuff].mData);
                (iChan < mValidSCBus->mBuffers[iBuff].mNumberChannels);
                ++iChan, ++pChannelBufferStart)
            {
                        ...collect the side-chain buffers here...
         }
}

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

best,



Bastian Schnürle
Bethaniendamm 61 a
10999 Berlin
Germany
+49 (0) 30 43 91 00 46 
skype: bastian.schnurle
email@hidden
www.rogernicholsdigital.com





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Logic + Sidechain (From: "Kenneth Weiss" <email@hidden>)

  • Prev by Date: Logic + Sidechain
  • Next by Date: Re: Basic sample code for FFT audio frequency spectrum?
  • Previous by thread: Logic + Sidechain
  • Next by thread: Re: Basic sample code for FFT audio frequency spectrum? Sarcasm Maybe?
  • Index(es):
    • Date
    • Thread