Csound Csound-dev Csound-tekno Search About

[Cs-dev] quick question, multi-channel

Date2014-05-14 21:54
FromRory Walsh
Subject[Cs-dev] quick question, multi-channel
I thought my processing loop in Cabbage could handle multichannel
signals. And I can remember experimenting without any problems in the
past. Now I get some high pitched artefacts on all channels. Does the
processing function presented below look ok to you guys? (note that
nchnls==getNumOutputChannels())
I'm testing with a simple oscil instrument, outputting the same signal
to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
output the samples. The odd thing is that CSspout[channel+pos] changes
value every second channel. My understanding would be that it should
stay the same until channel returns to 0 and the for loop starts all
over again? getNumOutputChannels() returns 8, as does
csound->GetNchnls().



void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
buffer, MidiBuffer& midiMessages)
{
float* audioBuffer;
    for(int i=0;iGetKsmps())
            {
                csCompileResult = csound->PerformKsmps();
                csndIndex = 0;
            }
            if(csCompileResult==OK)
                {
                for(int channel = 0; channel < getNumOutputChannels();
channel++ )
                    {
                    audioBuffer = buffer.getWritePointer(channel);
                    pos = csndIndex*getNumOutputChannels();
                    CSspin[channel+pos] = audioBuffer[i]*cs_scale;
                    audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
                    }
                }
            else
                buffer.clear();
        }
}

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 22:19
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question, multi-channel
does it work on the command line?
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 May 2014, at 21:54, Rory Walsh  wrote:

> I thought my processing loop in Cabbage could handle multichannel
> signals. And I can remember experimenting without any problems in the
> past. Now I get some high pitched artefacts on all channels. Does the
> processing function presented below look ok to you guys? (note that
> nchnls==getNumOutputChannels())
> I'm testing with a simple oscil instrument, outputting the same signal
> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
> output the samples. The odd thing is that CSspout[channel+pos] changes
> value every second channel. My understanding would be that it should
> stay the same until channel returns to 0 and the for loop starts all
> over again? getNumOutputChannels() returns 8, as does
> csound->GetNchnls().
> 
> 
> 
> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
> buffer, MidiBuffer& midiMessages)
> {
> float* audioBuffer;
>    for(int i=0;i       {
>            if(csndIndex == csound->GetKsmps())
>            {
>                csCompileResult = csound->PerformKsmps();
>                csndIndex = 0;
>            }
>            if(csCompileResult==OK)
>                {
>                for(int channel = 0; channel < getNumOutputChannels();
> channel++ )
>                    {
>                    audioBuffer = buffer.getWritePointer(channel);
>                    pos = csndIndex*getNumOutputChannels();
>                    CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>                    audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>                    }
>                }
>            else
>                buffer.clear();
>        }
> }
> 
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 22:52
FromRory Walsh
SubjectRe: [Cs-dev] quick question, multi-channel
I don't have enough channels on my sounds card to test a simple API
version(but I guess I don't need if I'm only checking the contents of
CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
assumption that CSspout[channel+pos] should remain the same until it
has looped through all 8 channels correct? If I log the variables it
looks like this:

csndIndex:0 Channel:0 Value:0
csndIndex:0 Channel:1 Value:0
csndIndex:0 Channel:2 Value:0.0283748
csndIndex:0 Channel:3 Value:0.0283748
csndIndex:0 Channel:4 Value:0.0567268
csndIndex:0 Channel:5 Value:0.0567268
csndIndex:0 Channel:6 Value:0.0850331
csndIndex:0 Channel:7 Value:0.0850331
csndIndex:1 Channel:0 Value:0.113652
csndIndex:1 Channel:1 Value:0.113652
csndIndex:1 Channel:2 Value:0.141797
csndIndex:1 Channel:3 Value:0.141797
csndIndex:1 Channel:4 Value:0.169828
csndIndex:1 Channel:5 Value:0.169828
csndIndex:1 Channel:6 Value:0.198098
csndIndex:1 Channel:7 Value:0.198098
csndIndex:2 Channel:0 Value:0.225831
csndIndex:2 Channel:1 Value:0.225831
csndIndex:2 Channel:2 Value:0.253382
csndIndex:2 Channel:3 Value:0.253382
csndIndex:2 Channel:4 Value:0.281097
csndIndex:2 Channel:5 Value:0.281097
csndIndex:2 Channel:6 Value:0.308214

I'll see if I can throw together a quick command line app now..

On 14 May 2014 22:19, Victor Lazzarini  wrote:
> does it work on the command line?
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>
>> I thought my processing loop in Cabbage could handle multichannel
>> signals. And I can remember experimenting without any problems in the
>> past. Now I get some high pitched artefacts on all channels. Does the
>> processing function presented below look ok to you guys? (note that
>> nchnls==getNumOutputChannels())
>> I'm testing with a simple oscil instrument, outputting the same signal
>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>> output the samples. The odd thing is that CSspout[channel+pos] changes
>> value every second channel. My understanding would be that it should
>> stay the same until channel returns to 0 and the for loop starts all
>> over again? getNumOutputChannels() returns 8, as does
>> csound->GetNchnls().
>>
>>
>>
>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>> buffer, MidiBuffer& midiMessages)
>> {
>> float* audioBuffer;
>>    for(int i=0;i>       {
>>            if(csndIndex == csound->GetKsmps())
>>            {
>>                csCompileResult = csound->PerformKsmps();
>>                csndIndex = 0;
>>            }
>>            if(csCompileResult==OK)
>>                {
>>                for(int channel = 0; channel < getNumOutputChannels();
>> channel++ )
>>                    {
>>                    audioBuffer = buffer.getWritePointer(channel);
>>                    pos = csndIndex*getNumOutputChannels();
>>                    CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>                    audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>                    }
>>                }
>>            else
>>                buffer.clear();
>>        }
>> }
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:24
FromMichael Gogins
SubjectRe: [Cs-dev] quick question, multi-channel
AttachmentsNone  None  
Your index computation should be something like this:

              hostOutput[channelI][hostFrameI] += csoundOutput[(csoundFrameI * channelN) + channelI] * outputScale;

It looks to me like you are failing to multiply the inner stride by the number of channels.

Hope this helps,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Wed, May 14, 2014 at 4:54 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I thought my processing loop in Cabbage could handle multichannel
signals. And I can remember experimenting without any problems in the
past. Now I get some high pitched artefacts on all channels. Does the
processing function presented below look ok to you guys? (note that
nchnls==getNumOutputChannels())
I'm testing with a simple oscil instrument, outputting the same signal
to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
output the samples. The odd thing is that CSspout[channel+pos] changes
value every second channel. My understanding would be that it should
stay the same until channel returns to 0 and the for loop starts all
over again? getNumOutputChannels() returns 8, as does
csound->GetNchnls().



void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
buffer, MidiBuffer& midiMessages)
{
float* audioBuffer;
    for(int i=0;i<buffer.getNumSamples();i++, csndIndex++)
       {
            if(csndIndex == csound->GetKsmps())
            {
                csCompileResult = csound->PerformKsmps();
                csndIndex = 0;
            }
            if(csCompileResult==OK)
                {
                for(int channel = 0; channel < getNumOutputChannels();
channel++ )
                    {
                    audioBuffer = buffer.getWritePointer(channel);
                    pos = csndIndex*getNumOutputChannels();
                    CSspin[channel+pos] = audioBuffer[i]*cs_scale;
                    audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
                    }
                }
            else
                buffer.clear();
        }
}

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-05-14 23:24
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question, multi-channel
I mean the Csound command, not your own app.

Anyway, what you printed looks 2 channels to me.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 May 2014, at 22:52, Rory Walsh  wrote:

> I don't have enough channels on my sounds card to test a simple API
> version(but I guess I don't need if I'm only checking the contents of
> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
> assumption that CSspout[channel+pos] should remain the same until it
> has looped through all 8 channels correct? If I log the variables it
> looks like this:
> 
> csndIndex:0 Channel:0 Value:0
> csndIndex:0 Channel:1 Value:0
> csndIndex:0 Channel:2 Value:0.0283748
> csndIndex:0 Channel:3 Value:0.0283748
> csndIndex:0 Channel:4 Value:0.0567268
> csndIndex:0 Channel:5 Value:0.0567268
> csndIndex:0 Channel:6 Value:0.0850331
> csndIndex:0 Channel:7 Value:0.0850331
> csndIndex:1 Channel:0 Value:0.113652
> csndIndex:1 Channel:1 Value:0.113652
> csndIndex:1 Channel:2 Value:0.141797
> csndIndex:1 Channel:3 Value:0.141797
> csndIndex:1 Channel:4 Value:0.169828
> csndIndex:1 Channel:5 Value:0.169828
> csndIndex:1 Channel:6 Value:0.198098
> csndIndex:1 Channel:7 Value:0.198098
> csndIndex:2 Channel:0 Value:0.225831
> csndIndex:2 Channel:1 Value:0.225831
> csndIndex:2 Channel:2 Value:0.253382
> csndIndex:2 Channel:3 Value:0.253382
> csndIndex:2 Channel:4 Value:0.281097
> csndIndex:2 Channel:5 Value:0.281097
> csndIndex:2 Channel:6 Value:0.308214
> 
> I'll see if I can throw together a quick command line app now..
> 
> On 14 May 2014 22:19, Victor Lazzarini  wrote:
>> does it work on the command line?
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>> 
>>> I thought my processing loop in Cabbage could handle multichannel
>>> signals. And I can remember experimenting without any problems in the
>>> past. Now I get some high pitched artefacts on all channels. Does the
>>> processing function presented below look ok to you guys? (note that
>>> nchnls==getNumOutputChannels())
>>> I'm testing with a simple oscil instrument, outputting the same signal
>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>> value every second channel. My understanding would be that it should
>>> stay the same until channel returns to 0 and the for loop starts all
>>> over again? getNumOutputChannels() returns 8, as does
>>> csound->GetNchnls().
>>> 
>>> 
>>> 
>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>> buffer, MidiBuffer& midiMessages)
>>> {
>>> float* audioBuffer;
>>>   for(int i=0;i>>      {
>>>           if(csndIndex == csound->GetKsmps())
>>>           {
>>>               csCompileResult = csound->PerformKsmps();
>>>               csndIndex = 0;
>>>           }
>>>           if(csCompileResult==OK)
>>>               {
>>>               for(int channel = 0; channel < getNumOutputChannels();
>>> channel++ )
>>>                   {
>>>                   audioBuffer = buffer.getWritePointer(channel);
>>>                   pos = csndIndex*getNumOutputChannels();
>>>                   CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>                   audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>                   }
>>>               }
>>>           else
>>>               buffer.clear();
>>>       }
>>> }
>>> 
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:31
FromRory Walsh
SubjectRe: [Cs-dev] quick question, multi-channel
Unless I'm mistaken, that is what I'm doing?

pos = csndIndex*getNumOutputChannels();
hostBuffer[i] = CSspout[channel+pos]/cs_scale;


On 14 May 2014 23:24, Michael Gogins  wrote:
> Your index computation should be something like this:
>
>               hostOutput[channelI][hostFrameI] += csoundOutput[(csoundFrameI
> * channelN) + channelI] * outputScale;
>
> It looks to me like you are failing to multiply the inner stride by the
> number of channels.
>
> Hope this helps,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, May 14, 2014 at 4:54 PM, Rory Walsh  wrote:
>>
>> I thought my processing loop in Cabbage could handle multichannel
>> signals. And I can remember experimenting without any problems in the
>> past. Now I get some high pitched artefacts on all channels. Does the
>> processing function presented below look ok to you guys? (note that
>> nchnls==getNumOutputChannels())
>> I'm testing with a simple oscil instrument, outputting the same signal
>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>> output the samples. The odd thing is that CSspout[channel+pos] changes
>> value every second channel. My understanding would be that it should
>> stay the same until channel returns to 0 and the for loop starts all
>> over again? getNumOutputChannels() returns 8, as does
>> csound->GetNchnls().
>>
>>
>>
>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>> buffer, MidiBuffer& midiMessages)
>> {
>> float* audioBuffer;
>>     for(int i=0;i>        {
>>             if(csndIndex == csound->GetKsmps())
>>             {
>>                 csCompileResult = csound->PerformKsmps();
>>                 csndIndex = 0;
>>             }
>>             if(csCompileResult==OK)
>>                 {
>>                 for(int channel = 0; channel < getNumOutputChannels();
>> channel++ )
>>                     {
>>                     audioBuffer = buffer.getWritePointer(channel);
>>                     pos = csndIndex*getNumOutputChannels();
>>                     CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>                     audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>                     }
>>                 }
>>             else
>>                 buffer.clear();
>>         }
>> }
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question, multi-channel
you should be able to test any number of channels with jack.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 May 2014, at 23:24, Victor Lazzarini  wrote:

> I mean the Csound command, not your own app.
> 
> Anyway, what you printed looks 2 channels to me.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> On 14 May 2014, at 22:52, Rory Walsh  wrote:
> 
>> I don't have enough channels on my sounds card to test a simple API
>> version(but I guess I don't need if I'm only checking the contents of
>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>> assumption that CSspout[channel+pos] should remain the same until it
>> has looped through all 8 channels correct? If I log the variables it
>> looks like this:
>> 
>> csndIndex:0 Channel:0 Value:0
>> csndIndex:0 Channel:1 Value:0
>> csndIndex:0 Channel:2 Value:0.0283748
>> csndIndex:0 Channel:3 Value:0.0283748
>> csndIndex:0 Channel:4 Value:0.0567268
>> csndIndex:0 Channel:5 Value:0.0567268
>> csndIndex:0 Channel:6 Value:0.0850331
>> csndIndex:0 Channel:7 Value:0.0850331
>> csndIndex:1 Channel:0 Value:0.113652
>> csndIndex:1 Channel:1 Value:0.113652
>> csndIndex:1 Channel:2 Value:0.141797
>> csndIndex:1 Channel:3 Value:0.141797
>> csndIndex:1 Channel:4 Value:0.169828
>> csndIndex:1 Channel:5 Value:0.169828
>> csndIndex:1 Channel:6 Value:0.198098
>> csndIndex:1 Channel:7 Value:0.198098
>> csndIndex:2 Channel:0 Value:0.225831
>> csndIndex:2 Channel:1 Value:0.225831
>> csndIndex:2 Channel:2 Value:0.253382
>> csndIndex:2 Channel:3 Value:0.253382
>> csndIndex:2 Channel:4 Value:0.281097
>> csndIndex:2 Channel:5 Value:0.281097
>> csndIndex:2 Channel:6 Value:0.308214
>> 
>> I'll see if I can throw together a quick command line app now..
>> 
>> On 14 May 2014 22:19, Victor Lazzarini  wrote:
>>> does it work on the command line?
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>>> 
>>>> I thought my processing loop in Cabbage could handle multichannel
>>>> signals. And I can remember experimenting without any problems in the
>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>> processing function presented below look ok to you guys? (note that
>>>> nchnls==getNumOutputChannels())
>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>> value every second channel. My understanding would be that it should
>>>> stay the same until channel returns to 0 and the for loop starts all
>>>> over again? getNumOutputChannels() returns 8, as does
>>>> csound->GetNchnls().
>>>> 
>>>> 
>>>> 
>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>> buffer, MidiBuffer& midiMessages)
>>>> {
>>>> float* audioBuffer;
>>>>  for(int i=0;i>>>     {
>>>>          if(csndIndex == csound->GetKsmps())
>>>>          {
>>>>              csCompileResult = csound->PerformKsmps();
>>>>              csndIndex = 0;
>>>>          }
>>>>          if(csCompileResult==OK)
>>>>              {
>>>>              for(int channel = 0; channel < getNumOutputChannels();
>>>> channel++ )
>>>>                  {
>>>>                  audioBuffer = buffer.getWritePointer(channel);
>>>>                  pos = csndIndex*getNumOutputChannels();
>>>>                  CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>                  audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>                  }
>>>>              }
>>>>          else
>>>>              buffer.clear();
>>>>      }
>>>> }
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:38
FromRory Walsh
SubjectRe: [Cs-dev] quick question, multi-channel
When I try to increase the number of channels in jack and start the
server it says no can do. If I just run with nchnls=8 with jack
started in stereo I get:

 0: dac:system:playback_ (system:playback_)
 *** rtjack: error connecting output ports

How do I set up more channels that I have?

On 14 May 2014 23:35, Victor Lazzarini  wrote:
> you should be able to test any number of channels with jack.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 14 May 2014, at 23:24, Victor Lazzarini  wrote:
>
>> I mean the Csound command, not your own app.
>>
>> Anyway, what you printed looks 2 channels to me.
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 14 May 2014, at 22:52, Rory Walsh  wrote:
>>
>>> I don't have enough channels on my sounds card to test a simple API
>>> version(but I guess I don't need if I'm only checking the contents of
>>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>>> assumption that CSspout[channel+pos] should remain the same until it
>>> has looped through all 8 channels correct? If I log the variables it
>>> looks like this:
>>>
>>> csndIndex:0 Channel:0 Value:0
>>> csndIndex:0 Channel:1 Value:0
>>> csndIndex:0 Channel:2 Value:0.0283748
>>> csndIndex:0 Channel:3 Value:0.0283748
>>> csndIndex:0 Channel:4 Value:0.0567268
>>> csndIndex:0 Channel:5 Value:0.0567268
>>> csndIndex:0 Channel:6 Value:0.0850331
>>> csndIndex:0 Channel:7 Value:0.0850331
>>> csndIndex:1 Channel:0 Value:0.113652
>>> csndIndex:1 Channel:1 Value:0.113652
>>> csndIndex:1 Channel:2 Value:0.141797
>>> csndIndex:1 Channel:3 Value:0.141797
>>> csndIndex:1 Channel:4 Value:0.169828
>>> csndIndex:1 Channel:5 Value:0.169828
>>> csndIndex:1 Channel:6 Value:0.198098
>>> csndIndex:1 Channel:7 Value:0.198098
>>> csndIndex:2 Channel:0 Value:0.225831
>>> csndIndex:2 Channel:1 Value:0.225831
>>> csndIndex:2 Channel:2 Value:0.253382
>>> csndIndex:2 Channel:3 Value:0.253382
>>> csndIndex:2 Channel:4 Value:0.281097
>>> csndIndex:2 Channel:5 Value:0.281097
>>> csndIndex:2 Channel:6 Value:0.308214
>>>
>>> I'll see if I can throw together a quick command line app now..
>>>
>>> On 14 May 2014 22:19, Victor Lazzarini  wrote:
>>>> does it work on the command line?
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>>>>
>>>>> I thought my processing loop in Cabbage could handle multichannel
>>>>> signals. And I can remember experimenting without any problems in the
>>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>>> processing function presented below look ok to you guys? (note that
>>>>> nchnls==getNumOutputChannels())
>>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>>> value every second channel. My understanding would be that it should
>>>>> stay the same until channel returns to 0 and the for loop starts all
>>>>> over again? getNumOutputChannels() returns 8, as does
>>>>> csound->GetNchnls().
>>>>>
>>>>>
>>>>>
>>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>>> buffer, MidiBuffer& midiMessages)
>>>>> {
>>>>> float* audioBuffer;
>>>>>  for(int i=0;i>>>>     {
>>>>>          if(csndIndex == csound->GetKsmps())
>>>>>          {
>>>>>              csCompileResult = csound->PerformKsmps();
>>>>>              csndIndex = 0;
>>>>>          }
>>>>>          if(csCompileResult==OK)
>>>>>              {
>>>>>              for(int channel = 0; channel < getNumOutputChannels();
>>>>> channel++ )
>>>>>                  {
>>>>>                  audioBuffer = buffer.getWritePointer(channel);
>>>>>                  pos = csndIndex*getNumOutputChannels();
>>>>>                  CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>>                  audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>>                  }
>>>>>              }
>>>>>          else
>>>>>              buffer.clear();
>>>>>      }
>>>>> }
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:40
FromMichael Gogins
SubjectRe: [Cs-dev] quick question, multi-channel
AttachmentsNone  None  

I missed that line. ..

On May 14, 2014 6:32 PM, "Rory Walsh" <rorywalsh@ear.ie> wrote:
Unless I'm mistaken, that is what I'm doing?

pos = csndIndex*getNumOutputChannels();
hostBuffer[i] = CSspout[channel+pos]/cs_scale;


On 14 May 2014 23:24, Michael Gogins <michael.gogins@gmail.com> wrote:
> Your index computation should be something like this:
>
>               hostOutput[channelI][hostFrameI] += csoundOutput[(csoundFrameI
> * channelN) + channelI] * outputScale;
>
> It looks to me like you are failing to multiply the inner stride by the
> number of channels.
>
> Hope this helps,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, May 14, 2014 at 4:54 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> I thought my processing loop in Cabbage could handle multichannel
>> signals. And I can remember experimenting without any problems in the
>> past. Now I get some high pitched artefacts on all channels. Does the
>> processing function presented below look ok to you guys? (note that
>> nchnls==getNumOutputChannels())
>> I'm testing with a simple oscil instrument, outputting the same signal
>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>> output the samples. The odd thing is that CSspout[channel+pos] changes
>> value every second channel. My understanding would be that it should
>> stay the same until channel returns to 0 and the for loop starts all
>> over again? getNumOutputChannels() returns 8, as does
>> csound->GetNchnls().
>>
>>
>>
>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>> buffer, MidiBuffer& midiMessages)
>> {
>> float* audioBuffer;
>>     for(int i=0;i<buffer.getNumSamples();i++, csndIndex++)
>>        {
>>             if(csndIndex == csound->GetKsmps())
>>             {
>>                 csCompileResult = csound->PerformKsmps();
>>                 csndIndex = 0;
>>             }
>>             if(csCompileResult==OK)
>>                 {
>>                 for(int channel = 0; channel < getNumOutputChannels();
>> channel++ )
>>                     {
>>                     audioBuffer = buffer.getWritePointer(channel);
>>                     pos = csndIndex*getNumOutputChannels();
>>                     CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>                     audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>                     }
>>                 }
>>             else
>>                 buffer.clear();
>>         }
>> }
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-05-14 23:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question, multi-channel
yes, it’s trying to autoconnect. I need to add something to disable it. Anyway, you could test it to a file. I’ve just done it on OSX and
it’s fine.
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 14 May 2014, at 23:38, Rory Walsh  wrote:

> When I try to increase the number of channels in jack and start the
> server it says no can do. If I just run with nchnls=8 with jack
> started in stereo I get:
> 
> 0: dac:system:playback_ (system:playback_)
> *** rtjack: error connecting output ports
> 
> How do I set up more channels that I have?
> 
> On 14 May 2014 23:35, Victor Lazzarini  wrote:
>> you should be able to test any number of channels with jack.
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 14 May 2014, at 23:24, Victor Lazzarini  wrote:
>> 
>>> I mean the Csound command, not your own app.
>>> 
>>> Anyway, what you printed looks 2 channels to me.
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> On 14 May 2014, at 22:52, Rory Walsh  wrote:
>>> 
>>>> I don't have enough channels on my sounds card to test a simple API
>>>> version(but I guess I don't need if I'm only checking the contents of
>>>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>>>> assumption that CSspout[channel+pos] should remain the same until it
>>>> has looped through all 8 channels correct? If I log the variables it
>>>> looks like this:
>>>> 
>>>> csndIndex:0 Channel:0 Value:0
>>>> csndIndex:0 Channel:1 Value:0
>>>> csndIndex:0 Channel:2 Value:0.0283748
>>>> csndIndex:0 Channel:3 Value:0.0283748
>>>> csndIndex:0 Channel:4 Value:0.0567268
>>>> csndIndex:0 Channel:5 Value:0.0567268
>>>> csndIndex:0 Channel:6 Value:0.0850331
>>>> csndIndex:0 Channel:7 Value:0.0850331
>>>> csndIndex:1 Channel:0 Value:0.113652
>>>> csndIndex:1 Channel:1 Value:0.113652
>>>> csndIndex:1 Channel:2 Value:0.141797
>>>> csndIndex:1 Channel:3 Value:0.141797
>>>> csndIndex:1 Channel:4 Value:0.169828
>>>> csndIndex:1 Channel:5 Value:0.169828
>>>> csndIndex:1 Channel:6 Value:0.198098
>>>> csndIndex:1 Channel:7 Value:0.198098
>>>> csndIndex:2 Channel:0 Value:0.225831
>>>> csndIndex:2 Channel:1 Value:0.225831
>>>> csndIndex:2 Channel:2 Value:0.253382
>>>> csndIndex:2 Channel:3 Value:0.253382
>>>> csndIndex:2 Channel:4 Value:0.281097
>>>> csndIndex:2 Channel:5 Value:0.281097
>>>> csndIndex:2 Channel:6 Value:0.308214
>>>> 
>>>> I'll see if I can throw together a quick command line app now..
>>>> 
>>>> On 14 May 2014 22:19, Victor Lazzarini  wrote:
>>>>> does it work on the command line?
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>>>>> 
>>>>>> I thought my processing loop in Cabbage could handle multichannel
>>>>>> signals. And I can remember experimenting without any problems in the
>>>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>>>> processing function presented below look ok to you guys? (note that
>>>>>> nchnls==getNumOutputChannels())
>>>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>>>> value every second channel. My understanding would be that it should
>>>>>> stay the same until channel returns to 0 and the for loop starts all
>>>>>> over again? getNumOutputChannels() returns 8, as does
>>>>>> csound->GetNchnls().
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>>>> buffer, MidiBuffer& midiMessages)
>>>>>> {
>>>>>> float* audioBuffer;
>>>>>> for(int i=0;i>>>>>    {
>>>>>>         if(csndIndex == csound->GetKsmps())
>>>>>>         {
>>>>>>             csCompileResult = csound->PerformKsmps();
>>>>>>             csndIndex = 0;
>>>>>>         }
>>>>>>         if(csCompileResult==OK)
>>>>>>             {
>>>>>>             for(int channel = 0; channel < getNumOutputChannels();
>>>>>> channel++ )
>>>>>>                 {
>>>>>>                 audioBuffer = buffer.getWritePointer(channel);
>>>>>>                 pos = csndIndex*getNumOutputChannels();
>>>>>>                 CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>>>                 audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>>>                 }
>>>>>>             }
>>>>>>         else
>>>>>>             buffer.clear();
>>>>>>     }
>>>>>> }
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>>> http://p.sf.net/sfu/SauceLabs
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-05-14 23:55
FromRory Walsh
SubjectRe: [Cs-dev] quick question, multi-channel
Fine here too. Ok, must be elsewhere in my code, and hold on. Yes, I
know what it is now. Buried somewhere I bet I have used csound_prams
to set the channels! Arrgghh. Why must I keep cutting myself with
Occam's razor. I really wonder about me at times!

On 14 May 2014 23:50, Victor Lazzarini  wrote:
> yes, it’s trying to autoconnect. I need to add something to disable it. Anyway, you could test it to a file. I’ve just done it on OSX and
> it’s fine.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 14 May 2014, at 23:38, Rory Walsh  wrote:
>
>> When I try to increase the number of channels in jack and start the
>> server it says no can do. If I just run with nchnls=8 with jack
>> started in stereo I get:
>>
>> 0: dac:system:playback_ (system:playback_)
>> *** rtjack: error connecting output ports
>>
>> How do I set up more channels that I have?
>>
>> On 14 May 2014 23:35, Victor Lazzarini  wrote:
>>> you should be able to test any number of channels with jack.
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 14 May 2014, at 23:24, Victor Lazzarini  wrote:
>>>
>>>> I mean the Csound command, not your own app.
>>>>
>>>> Anyway, what you printed looks 2 channels to me.
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2014, at 22:52, Rory Walsh  wrote:
>>>>
>>>>> I don't have enough channels on my sounds card to test a simple API
>>>>> version(but I guess I don't need if I'm only checking the contents of
>>>>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>>>>> assumption that CSspout[channel+pos] should remain the same until it
>>>>> has looped through all 8 channels correct? If I log the variables it
>>>>> looks like this:
>>>>>
>>>>> csndIndex:0 Channel:0 Value:0
>>>>> csndIndex:0 Channel:1 Value:0
>>>>> csndIndex:0 Channel:2 Value:0.0283748
>>>>> csndIndex:0 Channel:3 Value:0.0283748
>>>>> csndIndex:0 Channel:4 Value:0.0567268
>>>>> csndIndex:0 Channel:5 Value:0.0567268
>>>>> csndIndex:0 Channel:6 Value:0.0850331
>>>>> csndIndex:0 Channel:7 Value:0.0850331
>>>>> csndIndex:1 Channel:0 Value:0.113652
>>>>> csndIndex:1 Channel:1 Value:0.113652
>>>>> csndIndex:1 Channel:2 Value:0.141797
>>>>> csndIndex:1 Channel:3 Value:0.141797
>>>>> csndIndex:1 Channel:4 Value:0.169828
>>>>> csndIndex:1 Channel:5 Value:0.169828
>>>>> csndIndex:1 Channel:6 Value:0.198098
>>>>> csndIndex:1 Channel:7 Value:0.198098
>>>>> csndIndex:2 Channel:0 Value:0.225831
>>>>> csndIndex:2 Channel:1 Value:0.225831
>>>>> csndIndex:2 Channel:2 Value:0.253382
>>>>> csndIndex:2 Channel:3 Value:0.253382
>>>>> csndIndex:2 Channel:4 Value:0.281097
>>>>> csndIndex:2 Channel:5 Value:0.281097
>>>>> csndIndex:2 Channel:6 Value:0.308214
>>>>>
>>>>> I'll see if I can throw together a quick command line app now..
>>>>>
>>>>> On 14 May 2014 22:19, Victor Lazzarini  wrote:
>>>>>> does it work on the command line?
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>>>>>>
>>>>>>> I thought my processing loop in Cabbage could handle multichannel
>>>>>>> signals. And I can remember experimenting without any problems in the
>>>>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>>>>> processing function presented below look ok to you guys? (note that
>>>>>>> nchnls==getNumOutputChannels())
>>>>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>>>>> value every second channel. My understanding would be that it should
>>>>>>> stay the same until channel returns to 0 and the for loop starts all
>>>>>>> over again? getNumOutputChannels() returns 8, as does
>>>>>>> csound->GetNchnls().
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>>>>> buffer, MidiBuffer& midiMessages)
>>>>>>> {
>>>>>>> float* audioBuffer;
>>>>>>> for(int i=0;i>>>>>>    {
>>>>>>>         if(csndIndex == csound->GetKsmps())
>>>>>>>         {
>>>>>>>             csCompileResult = csound->PerformKsmps();
>>>>>>>             csndIndex = 0;
>>>>>>>         }
>>>>>>>         if(csCompileResult==OK)
>>>>>>>             {
>>>>>>>             for(int channel = 0; channel < getNumOutputChannels();
>>>>>>> channel++ )
>>>>>>>                 {
>>>>>>>                 audioBuffer = buffer.getWritePointer(channel);
>>>>>>>                 pos = csndIndex*getNumOutputChannels();
>>>>>>>                 CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>>>>                 audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>>>>                 }
>>>>>>>             }
>>>>>>>         else
>>>>>>>             buffer.clear();
>>>>>>>     }
>>>>>>> }
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>>>> http://p.sf.net/sfu/SauceLabs
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>>> http://p.sf.net/sfu/SauceLabs
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https:/

Date2014-05-15 02:20
FromJustin Smith
SubjectRe: [Cs-dev] quick question, multi-channel
AttachmentsNone  None  
If you need to debug behavior when larger channel counts are present, you can use the jack dummy (or maybe even net) backend to create arbitrary numbers of channels.


On Wed, May 14, 2014 at 3:55 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Fine here too. Ok, must be elsewhere in my code, and hold on. Yes, I
know what it is now. Buried somewhere I bet I have used csound_prams
to set the channels! Arrgghh. Why must I keep cutting myself with
Occam's razor. I really wonder about me at times!

On 14 May 2014 23:50, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> yes, it’s trying to autoconnect. I need to add something to disable it. Anyway, you could test it to a file. I’ve just done it on OSX and
> it’s fine.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 14 May 2014, at 23:38, Rory Walsh <rorywalsh@ear.ie> wrote:
>
>> When I try to increase the number of channels in jack and start the
>> server it says no can do. If I just run with nchnls=8 with jack
>> started in stereo I get:
>>
>> 0: dac:system:playback_ (system:playback_)
>> *** rtjack: error connecting output ports
>>
>> How do I set up more channels that I have?
>>
>> On 14 May 2014 23:35, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>> you should be able to test any number of channels with jack.
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 14 May 2014, at 23:24, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>>
>>>> I mean the Csound command, not your own app.
>>>>
>>>> Anyway, what you printed looks 2 channels to me.
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2014, at 22:52, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>
>>>>> I don't have enough channels on my sounds card to test a simple API
>>>>> version(but I guess I don't need if I'm only checking the contents of
>>>>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>>>>> assumption that CSspout[channel+pos] should remain the same until it
>>>>> has looped through all 8 channels correct? If I log the variables it
>>>>> looks like this:
>>>>>
>>>>> csndIndex:0 Channel:0 Value:0
>>>>> csndIndex:0 Channel:1 Value:0
>>>>> csndIndex:0 Channel:2 Value:0.0283748
>>>>> csndIndex:0 Channel:3 Value:0.0283748
>>>>> csndIndex:0 Channel:4 Value:0.0567268
>>>>> csndIndex:0 Channel:5 Value:0.0567268
>>>>> csndIndex:0 Channel:6 Value:0.0850331
>>>>> csndIndex:0 Channel:7 Value:0.0850331
>>>>> csndIndex:1 Channel:0 Value:0.113652
>>>>> csndIndex:1 Channel:1 Value:0.113652
>>>>> csndIndex:1 Channel:2 Value:0.141797
>>>>> csndIndex:1 Channel:3 Value:0.141797
>>>>> csndIndex:1 Channel:4 Value:0.169828
>>>>> csndIndex:1 Channel:5 Value:0.169828
>>>>> csndIndex:1 Channel:6 Value:0.198098
>>>>> csndIndex:1 Channel:7 Value:0.198098
>>>>> csndIndex:2 Channel:0 Value:0.225831
>>>>> csndIndex:2 Channel:1 Value:0.225831
>>>>> csndIndex:2 Channel:2 Value:0.253382
>>>>> csndIndex:2 Channel:3 Value:0.253382
>>>>> csndIndex:2 Channel:4 Value:0.281097
>>>>> csndIndex:2 Channel:5 Value:0.281097
>>>>> csndIndex:2 Channel:6 Value:0.308214
>>>>>
>>>>> I'll see if I can throw together a quick command line app now..
>>>>>
>>>>> On 14 May 2014 22:19, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>>>>> does it work on the command line?
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 14 May 2014, at 21:54, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>>
>>>>>>> I thought my processing loop in Cabbage could handle multichannel
>>>>>>> signals. And I can remember experimenting without any problems in the
>>>>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>>>>> processing function presented below look ok to you guys? (note that
>>>>>>> nchnls==getNumOutputChannels())
>>>>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>>>>> value every second channel. My understanding would be that it should
>>>>>>> stay the same until channel returns to 0 and the for loop starts all
>>>>>>> over again? getNumOutputChannels() returns 8, as does
>>>>>>> csound->GetNchnls().
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>>>>> buffer, MidiBuffer& midiMessages)
>>>>>>> {
>>>>>>> float* audioBuffer;
>>>>>>> for(int i=0;i<buffer.getNumSamples();i++, csndIndex++)
>>>>>>>    {
>>>>>>>         if(csndIndex == csound->GetKsmps())
>>>>>>>         {
>>>>>>>             csCompileResult = csound->PerformKsmps();
>>>>>>>             csndIndex = 0;
>>>>>>>         }
>>>>>>>         if(csCompileResult==OK)
>>>>>>>             {
>>>>>>>             for(int channel = 0; channel < getNumOutputChannels();
>>>>>>> channel++ )
>>>>>>>                 {
>>>>>>>                 audioBuffer = buffer.getWritePointer(channel);
>>>>>>>                 pos = csndIndex*getNumOutputChannels();
>>>>>>>                 CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>>>>                 audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>>>>                 }
>>>>>>>             }
>>>>>>>         else
>>>>>>>             buffer.clear();
>>>>>>>     }
>>>>>>> }
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>>>> http://p.sf.net/sfu/SauceLabs
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>>> http://p.sf.net/sfu/SauceLabs
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-05-15 08:22
Frompeiman khosravi
SubjectRe: [Cs-dev] quick question, multi-channel
AttachmentsNone  None  
At least on osx you can launch jack with as many virtual channels as you want. I think there are two options, one for the physical channels and one for virtual channels. The option is in the setting dialogue of jack pilot. 



On 14 May 2014 23:38, Rory Walsh <rorywalsh@ear.ie> wrote:
When I try to increase the number of channels in jack and start the
server it says no can do. If I just run with nchnls=8 with jack
started in stereo I get:

 0: dac:system:playback_ (system:playback_)
 *** rtjack: error connecting output ports

How do I set up more channels that I have?

On 14 May 2014 23:35, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> you should be able to test any number of channels with jack.
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 14 May 2014, at 23:24, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>
>> I mean the Csound command, not your own app.
>>
>> Anyway, what you printed looks 2 channels to me.
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 14 May 2014, at 22:52, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>>> I don't have enough channels on my sounds card to test a simple API
>>> version(but I guess I don't need if I'm only checking the contents of
>>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>>> assumption that CSspout[channel+pos] should remain the same until it
>>> has looped through all 8 channels correct? If I log the variables it
>>> looks like this:
>>>
>>> csndIndex:0 Channel:0 Value:0
>>> csndIndex:0 Channel:1 Value:0
>>> csndIndex:0 Channel:2 Value:0.0283748
>>> csndIndex:0 Channel:3 Value:0.0283748
>>> csndIndex:0 Channel:4 Value:0.0567268
>>> csndIndex:0 Channel:5 Value:0.0567268
>>> csndIndex:0 Channel:6 Value:0.0850331
>>> csndIndex:0 Channel:7 Value:0.0850331
>>> csndIndex:1 Channel:0 Value:0.113652
>>> csndIndex:1 Channel:1 Value:0.113652
>>> csndIndex:1 Channel:2 Value:0.141797
>>> csndIndex:1 Channel:3 Value:0.141797
>>> csndIndex:1 Channel:4 Value:0.169828
>>> csndIndex:1 Channel:5 Value:0.169828
>>> csndIndex:1 Channel:6 Value:0.198098
>>> csndIndex:1 Channel:7 Value:0.198098
>>> csndIndex:2 Channel:0 Value:0.225831
>>> csndIndex:2 Channel:1 Value:0.225831
>>> csndIndex:2 Channel:2 Value:0.253382
>>> csndIndex:2 Channel:3 Value:0.253382
>>> csndIndex:2 Channel:4 Value:0.281097
>>> csndIndex:2 Channel:5 Value:0.281097
>>> csndIndex:2 Channel:6 Value:0.308214
>>>
>>> I'll see if I can throw together a quick command line app now..
>>>
>>> On 14 May 2014 22:19, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>>> does it work on the command line?
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2014, at 21:54, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>
>>>>> I thought my processing loop in Cabbage could handle multichannel
>>>>> signals. And I can remember experimenting without any problems in the
>>>>> past. Now I get some high pitched artefacts on all channels. Does the
>>>>> processing function presented below look ok to you guys? (note that
>>>>> nchnls==getNumOutputChannels())
>>>>> I'm testing with a simple oscil instrument, outputting the same signal
>>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>>>>> output the samples. The odd thing is that CSspout[channel+pos] changes
>>>>> value every second channel. My understanding would be that it should
>>>>> stay the same until channel returns to 0 and the for loop starts all
>>>>> over again? getNumOutputChannels() returns 8, as does
>>>>> csound->GetNchnls().
>>>>>
>>>>>
>>>>>
>>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>>>>> buffer, MidiBuffer& midiMessages)
>>>>> {
>>>>> float* audioBuffer;
>>>>>  for(int i=0;i<buffer.getNumSamples();i++, csndIndex++)
>>>>>     {
>>>>>          if(csndIndex == csound->GetKsmps())
>>>>>          {
>>>>>              csCompileResult = csound->PerformKsmps();
>>>>>              csndIndex = 0;
>>>>>          }
>>>>>          if(csCompileResult==OK)
>>>>>              {
>>>>>              for(int channel = 0; channel < getNumOutputChannels();
>>>>> channel++ )
>>>>>                  {
>>>>>                  audioBuffer = buffer.getWritePointer(channel);
>>>>>                  pos = csndIndex*getNumOutputChannels();
>>>>>                  CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>>>>>                  audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>>>>>                  }
>>>>>              }
>>>>>          else
>>>>>              buffer.clear();
>>>>>      }
>>>>> }
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-05-16 00:20
FromRory Walsh
SubjectRe: [Cs-dev] quick question, multi-channel
Ah, so that's what the 'dummy' driver settings are for! Nice one. I'm
sure that'll come in handy in the future.

On 15 May 2014 08:22, peiman khosravi  wrote:
> At least on osx you can launch jack with as many virtual channels as you
> want. I think there are two options, one for the physical channels and one
> for virtual channels. The option is in the setting dialogue of jack pilot.
>
>
>
>
> www.peimankhosravi.co.uk || RSS Feed || Concert News
>
>
> On 14 May 2014 23:38, Rory Walsh  wrote:
>>
>> When I try to increase the number of channels in jack and start the
>> server it says no can do. If I just run with nchnls=8 with jack
>> started in stereo I get:
>>
>>  0: dac:system:playback_ (system:playback_)
>>  *** rtjack: error connecting output ports
>>
>> How do I set up more channels that I have?
>>
>> On 14 May 2014 23:35, Victor Lazzarini  wrote:
>> > you should be able to test any number of channels with jack.
>> > ========================
>> > Dr Victor Lazzarini
>> > Senior Lecturer
>> > NUI Maynooth, Ireland
>> > victor dot lazzarini at nuim dot ie
>> >
>> >
>> >
>> >
>> > On 14 May 2014, at 23:24, Victor Lazzarini 
>> > wrote:
>> >
>> >> I mean the Csound command, not your own app.
>> >>
>> >> Anyway, what you printed looks 2 channels to me.
>> >> ========================
>> >> Dr Victor Lazzarini
>> >> Senior Lecturer
>> >> NUI Maynooth, Ireland
>> >> victor dot lazzarini at nuim dot ie
>> >>
>> >>
>> >>
>> >>
>> >> On 14 May 2014, at 22:52, Rory Walsh  wrote:
>> >>
>> >>> I don't have enough channels on my sounds card to test a simple API
>> >>> version(but I guess I don't need if I'm only checking the contents of
>> >>> CsSpout?). Anyway I'm wrapping it into an 8 channel VST. Is my
>> >>> assumption that CSspout[channel+pos] should remain the same until it
>> >>> has looped through all 8 channels correct? If I log the variables it
>> >>> looks like this:
>> >>>
>> >>> csndIndex:0 Channel:0 Value:0
>> >>> csndIndex:0 Channel:1 Value:0
>> >>> csndIndex:0 Channel:2 Value:0.0283748
>> >>> csndIndex:0 Channel:3 Value:0.0283748
>> >>> csndIndex:0 Channel:4 Value:0.0567268
>> >>> csndIndex:0 Channel:5 Value:0.0567268
>> >>> csndIndex:0 Channel:6 Value:0.0850331
>> >>> csndIndex:0 Channel:7 Value:0.0850331
>> >>> csndIndex:1 Channel:0 Value:0.113652
>> >>> csndIndex:1 Channel:1 Value:0.113652
>> >>> csndIndex:1 Channel:2 Value:0.141797
>> >>> csndIndex:1 Channel:3 Value:0.141797
>> >>> csndIndex:1 Channel:4 Value:0.169828
>> >>> csndIndex:1 Channel:5 Value:0.169828
>> >>> csndIndex:1 Channel:6 Value:0.198098
>> >>> csndIndex:1 Channel:7 Value:0.198098
>> >>> csndIndex:2 Channel:0 Value:0.225831
>> >>> csndIndex:2 Channel:1 Value:0.225831
>> >>> csndIndex:2 Channel:2 Value:0.253382
>> >>> csndIndex:2 Channel:3 Value:0.253382
>> >>> csndIndex:2 Channel:4 Value:0.281097
>> >>> csndIndex:2 Channel:5 Value:0.281097
>> >>> csndIndex:2 Channel:6 Value:0.308214
>> >>>
>> >>> I'll see if I can throw together a quick command line app now..
>> >>>
>> >>> On 14 May 2014 22:19, Victor Lazzarini 
>> >>> wrote:
>> >>>> does it work on the command line?
>> >>>> ========================
>> >>>> Dr Victor Lazzarini
>> >>>> Senior Lecturer
>> >>>> NUI Maynooth, Ireland
>> >>>> victor dot lazzarini at nuim dot ie
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> On 14 May 2014, at 21:54, Rory Walsh  wrote:
>> >>>>
>> >>>>> I thought my processing loop in Cabbage could handle multichannel
>> >>>>> signals. And I can remember experimenting without any problems in
>> >>>>> the
>> >>>>> past. Now I get some high pitched artefacts on all channels. Does
>> >>>>> the
>> >>>>> processing function presented below look ok to you guys? (note that
>> >>>>> nchnls==getNumOutputChannels())
>> >>>>> I'm testing with a simple oscil instrument, outputting the same
>> >>>>> signal
>> >>>>> to each channel. I have nchnls set to 8 and I'm using outch 1-8 to
>> >>>>> output the samples. The odd thing is that CSspout[channel+pos]
>> >>>>> changes
>> >>>>> value every second channel. My understanding would be that it should
>> >>>>> stay the same until channel returns to 0 and the for loop starts all
>> >>>>> over again? getNumOutputChannels() returns 8, as does
>> >>>>> csound->GetNchnls().
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> void CabbagePluginAudioProcessor::processBlock (AudioSampleBuffer&
>> >>>>> buffer, MidiBuffer& midiMessages)
>> >>>>> {
>> >>>>> float* audioBuffer;
>> >>>>>  for(int i=0;i> >>>>>     {
>> >>>>>          if(csndIndex == csound->GetKsmps())
>> >>>>>          {
>> >>>>>              csCompileResult = csound->PerformKsmps();
>> >>>>>              csndIndex = 0;
>> >>>>>          }
>> >>>>>          if(csCompileResult==OK)
>> >>>>>              {
>> >>>>>              for(int channel = 0; channel < getNumOutputChannels();
>> >>>>> channel++ )
>> >>>>>                  {
>> >>>>>                  audioBuffer = buffer.getWritePointer(channel);
>> >>>>>                  pos = csndIndex*getNumOutputChannels();
>> >>>>>                  CSspin[channel+pos] = audioBuffer[i]*cs_scale;
>> >>>>>                  audioBuffer[i] = (CSspout[channel+pos]/cs_scale);
>> >>>>>                  }
>> >>>>>              }
>> >>>>>          else
>> >>>>>              buffer.clear();
>> >>>>>      }
>> >>>>> }
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For
>> >>>>> FREE
>> >>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> >>>>> Get unparalleled scalability from the best Selenium testing platform
>> >>>>> available
>> >>>>> Simple to use. Nothing to install. Get started now for free."
>> >>>>> http://p.sf.net/sfu/SauceLabs
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For
>> >>>> FREE
>> >>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> >>>> Get unparalleled scalability from the best Selenium testing platform
>> >>>> available
>> >>>> Simple to use. Nothing to install. Get started now for free."
>> >>>> http://p.sf.net/sfu/SauceLabs
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> >>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> >>> Get unparalleled scalability from the best Selenium testing platform
>> >>> available
>> >>> Simple to use. Nothing to install. Get started now for free."
>> >>> http://p.sf.net/sfu/SauceLabs
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> >> Instantly run your Selenium tests across 300+ browser/OS combos.
>> >> Get unparalleled scalability from the best Selenium testing platform
>> >> available
>> >> Simple to use. Nothing to install. Get started now for free."
>> >> http://p.sf.net/sfu/SauceLabs
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> > Instantly run your Selenium tests across 300+ browser/OS combos.
>> > Get unparalleled scalability from the best Selenium testing platform
>> > available
>> > Simple to use. Nothing to install. Get started now for free."
>> > http://p.sf.net/sfu/SauceLabs
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform
>> available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net