Csound Csound-dev Csound-tekno Search About

[Csnd] mix down audio array

Date2019-02-15 13:46
FromEduardo Moguillansky
Subject[Csnd] mix down audio array
Which opcode can mix down an array of audio signals to a mono signal?

thanks

   eduardo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 14:02
FromVictor Lazzarini
SubjectRe: [Csnd] mix down audio array
Addition is overloaded for arrays, so

a1 = array[0] + array[1] + array[2] …

should work.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 15 Feb 2019, at 13:46, Eduardo Moguillansky  wrote:
> 
> Which opcode can mix down an array of audio signals to a mono signal?
> 
> thanks
> 
>   eduardo
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 14:02
FromTarmo Johannes
SubjectRe: [Csnd] mix down audio array
Hi,

There are sum and sumarray  but manual does not say they work with a signals. Is it really so? Can they  made to supoort a arrays as well?

Tarmo

Saatja Eduardo Moguillansky <eduardo.moguillansky@gmail.com kirjutas kuupäeval R, 15. veebruar 2019 15:46 järgmist:
Which opcode can mix down an array of audio signals to a mono signal?

thanks

   eduardo

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-02-15 14:53
FromVictor Lazzarini
SubjectRe: [Csnd] mix down audio array
I’ve added sumarray for audio array variables now in GIT, but not tested it yet.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 15 Feb 2019, at 14:02, Tarmo Johannes  wrote:
> 
> Hi,
> 
> There are sum and sumarray  but manual does not say they work with a signals. Is it really so? Can they  made to supoort a arrays as well?
> 
> Tarmo
> 
> Saatja Eduardo Moguillansky  Which opcode can mix down an array of audio signals to a mono signal?
> 
> thanks
> 
>    eduardo
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 16:26
FromEduardo Moguillansky
SubjectRe: [Csnd] mix down audio array
thanks!
testing it right now, there is something wrong there, I am getting a 
distorted signal

instr 1
     ; kamps[] fillarray 0.1, 0.1
     ; kfreqs[] fillarray 440, 4000
     ; aa[] poly 2, "oscili", kamps, kfreqs
     aa[] init 2
     aa[0] oscili 0.1, 440
     aa[1] oscili 0.1, 1000
     a0 sumarray aa
     outch 1, a0
endin

On 15.02.19 15:53, Victor Lazzarini wrote:
> I’ve added sumarray for audio array variables now in GIT, but not tested it yet.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 15 Feb 2019, at 14:02, Tarmo Johannes  wrote:
>>
>> Hi,
>>
>> There are sum and sumarray  but manual does not say they work with a signals. Is it really so? Can they  made to supoort a arrays as well?
>>
>> Tarmo
>>
>> Saatja Eduardo Moguillansky > Which opcode can mix down an array of audio signals to a mono signal?
>>
>> thanks
>>
>>     eduardo
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>          https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 16:37
FromVictor Lazzarini
SubjectRe: [Csnd] mix down audio array
ok probably something stupid. I'll have a look

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 15 Feb 2019, at 16:26, Eduardo Moguillansky  wrote:
> 
> thanks!
> testing it right now, there is something wrong there, I am getting a distorted signal
> 
> instr 1
>     ; kamps[] fillarray 0.1, 0.1
>     ; kfreqs[] fillarray 440, 4000
>     ; aa[] poly 2, "oscili", kamps, kfreqs
>     aa[] init 2
>     aa[0] oscili 0.1, 440
>     aa[1] oscili 0.1, 1000
>     a0 sumarray aa
>     outch 1, a0
> endin
> 
>> On 15.02.19 15:53, Victor Lazzarini wrote:
>> I’ve added sumarray for audio array variables now in GIT, but not tested it yet.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 15 Feb 2019, at 14:02, Tarmo Johannes  wrote:
>>> 
>>> Hi,
>>> 
>>> There are sum and sumarray  but manual does not say they work with a signals. Is it really so? Can they  made to supoort a arrays as well?
>>> 
>>> Tarmo
>>> 
>>> Saatja Eduardo Moguillansky >> Which opcode can mix down an array of audio signals to a mono signal?
>>> 
>>> thanks
>>> 
>>>    eduardo
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-02-15 17:08
FromVictor Lazzarini
SubjectRe: [Csnd] mix down audio array
Should be working now.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 15 Feb 2019, at 16:26, Eduardo Moguillansky  wrote:
> 
> thanks!
> testing it right now, there is something wrong there, I am getting a distorted signal
> 
> instr 1
>     ; kamps[] fillarray 0.1, 0.1
>     ; kfreqs[] fillarray 440, 4000
>     ; aa[] poly 2, "oscili", kamps, kfreqs
>     aa[] init 2
>     aa[0] oscili 0.1, 440
>     aa[1] oscili 0.1, 1000
>     a0 sumarray aa
>     outch 1, a0
> endin
> 
> On 15.02.19 15:53, Victor Lazzarini wrote:
>> I’ve added sumarray for audio array variables now in GIT, but not tested it yet.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 15 Feb 2019, at 14:02, Tarmo Johannes  wrote:
>>> 
>>> Hi,
>>> 
>>> There are sum and sumarray  but manual does not say they work with a signals. Is it really so? Can they  made to supoort a arrays as well?
>>> 
>>> Tarmo
>>> 
>>> Saatja Eduardo Moguillansky >> Which opcode can mix down an array of audio signals to a mono signal?
>>> 
>>> thanks
>>> 
>>>    eduardo
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here