Csound Csound-dev Csound-tekno Search About

[Csnd] ambisonic Csound

Date2010-11-23 18:55
Frompeiman khosravi
Subject[Csnd] ambisonic Csound
Maybe I'm being completely stupid. Using the bformdec1 example I
cannot get the expected result. It sounds weird!

My csd is below. The 8 speaker ring is set up here like this: 1 (front
L), 2 (front R), 3 (Wide L), 4 (Wide R), 5 (side L), 6 (side R), 7
(rear L), 8 (rear R).

I understand that the Octagon setup for bformdec1 is something like this:

4.	Octagon - FFL(22.5),FLL(67.5),BLL(112.5),BBL(157.5),BBR(-157.5),BRR(-112.5),FRR(-67.5),FFR(-22.5).
This is a first-, second- or third-order `in-phase' decode, depending
on the number of input channels.

So I have changed the CSD to reflect this:         outo a1, a3, a5,
a7, a8, a6, a4, a2

And still Zero degrees gives me a sound hard panned to the front left.
Either I'm messing something up or my ears are totally deaf to the
ambisonic charm :-)


Thanks

Peiman





; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
;-odac           -iadc     -d     ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
 -o dac1
;;; for file output any platform


sr = 96000
ksmps = 16
nchnls = 8

instr 1

        ; generate pink noise
        anoise pinkish 10000

        ; two full turns
        kalpha = 0
        kbeta = 0

        ; generate B format
        aw, ax, ay, az, ar, as, at, au, av bformenc1 anoise, kalpha, kbeta

        ; decode B format for 8 channel circle loudspeaker setup
        a1, a2, a3, a4, a5, a6, a7, a8 bformdec1 4, aw, ax, ay, az,
ar, as, at, au, av

        ; write audio out
        outo a1, a3, a5, a7, a8, a6, a4, a2
endin




; Play Instrument #1 for 20 seconds.
i 1 0 20
e






Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-11-23 20:01
FromAnthony Palomba
Subject[Csnd] Re: ambisonic Csound
Pieman, do I need any kind of hardware to experiment with this?



-ap




On Tue, Nov 23, 2010 at 12:55 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
Maybe I'm being completely stupid. Using the bformdec1 example I
cannot get the expected result. It sounds weird!

My csd is below. The 8 speaker ring is set up here like this: 1 (front
L), 2 (front R), 3 (Wide L), 4 (Wide R), 5 (side L), 6 (side R), 7
(rear L), 8 (rear R).

I understand that the Octagon setup for bformdec1 is something like this:

4.      Octagon - FFL(22.5),FLL(67.5),BLL(112.5),BBL(157.5),BBR(-157.5),BRR(-112.5),FRR(-67.5),FFR(-22.5).
This is a first-, second- or third-order `in-phase' decode, depending
on the number of input channels.

So I have changed the CSD to reflect this:         outo a1, a3, a5,
a7, a8, a6, a4, a2

And still Zero degrees gives me a sound hard panned to the front left.
Either I'm messing something up or my ears are totally deaf to the
ambisonic charm :-)


Thanks

Peiman



<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
;-odac           -iadc     -d     ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
 -o dac1
;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 96000
ksmps = 16
nchnls = 8

instr 1

       ; generate pink noise
       anoise pinkish 10000

       ; two full turns
       kalpha = 0
       kbeta = 0

       ; generate B format
       aw, ax, ay, az, ar, as, at, au, av bformenc1 anoise, kalpha, kbeta

       ; decode B format for 8 channel circle loudspeaker setup
       a1, a2, a3, a4, a5, a6, a7, a8 bformdec1 4, aw, ax, ay, az,
ar, as, at, au, av

       ; write audio out
       outo a1, a3, a5, a7, a8, a6, a4, a2
endin

</CsInstruments>
<CsScore>

; Play Instrument #1 for 20 seconds.
i 1 0 20
e


</CsScore>
</CsoundSynthesizer>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-11-23 21:04
Frompeiman khosravi
Subject[Csnd] Re: Re: ambisonic Csound
Hi Anthony,

Well you just need 8 outputs, preferably with speakers! Or just render
to file and open the 8 channel file in audacity.

Best,

Peiman

On 23 November 2010 20:01, Anthony Palomba  wrote:
> Pieman, do I need any kind of hardware to experiment with this?
>
>
>
> -ap
>
>
>
>
> On Tue, Nov 23, 2010 at 12:55 PM, peiman khosravi 
> wrote:
>>
>> Maybe I'm being completely stupid. Using the bformdec1 example I
>> cannot get the expected result. It sounds weird!
>>
>> My csd is below. The 8 speaker ring is set up here like this: 1 (front
>> L), 2 (front R), 3 (Wide L), 4 (Wide R), 5 (side L), 6 (side R), 7
>> (rear L), 8 (rear R).
>>
>> I understand that the Octagon setup for bformdec1 is something like this:
>>
>> 4.      Octagon -
>> FFL(22.5),FLL(67.5),BLL(112.5),BBL(157.5),BBR(-157.5),BRR(-112.5),FRR(-67.5),FFR(-22.5).
>> This is a first-, second- or third-order `in-phase' decode, depending
>> on the number of input channels.
>>
>> So I have changed the CSD to reflect this:         outo a1, a3, a5,
>> a7, a8, a6, a4, a2
>>
>> And still Zero degrees gives me a sound hard panned to the front left.
>> Either I'm messing something up or my ears are totally deaf to the
>> ambisonic charm :-)
>>
>>
>> Thanks
>>
>> Peiman
>>
>>
>>
>> 
>> 
>> ; Select audio/midi flags here according to platform
>> ; Audio out   Audio in    No messages
>> ;-odac           -iadc     -d     ;;;RT audio I/O
>> ; For Non-realtime ouput leave only the line below:
>>  -o dac1
>> ;;; for file output any platform
>> 
>> 
>> sr = 96000
>> ksmps = 16
>> nchnls = 8
>>
>> instr 1
>>
>>        ; generate pink noise
>>        anoise pinkish 10000
>>
>>        ; two full turns
>>        kalpha = 0
>>        kbeta = 0
>>
>>        ; generate B format
>>        aw, ax, ay, az, ar, as, at, au, av bformenc1 anoise, kalpha, kbeta
>>
>>        ; decode B format for 8 channel circle loudspeaker setup
>>        a1, a2, a3, a4, a5, a6, a7, a8 bformdec1 4, aw, ax, ay, az,
>> ar, as, at, au, av
>>
>>        ; write audio out
>>        outo a1, a3, a5, a7, a8, a6, a4, a2
>> endin
>>
>> 
>> 
>>
>> ; Play Instrument #1 for 20 seconds.
>> i 1 0 20
>> e
>>
>>
>> 
>> 
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-11-24 00:37
Frompeiman khosravi
Subject[Csnd] Re: Re: ambisonic Csound
I have another question. Is 2nd order ambisonic possible with 6
outputs (speakers) in Csound?

Best,

Peiman


On 23 November 2010 21:04, peiman khosravi  wrote:
> Hi Anthony,
>
> Well you just need 8 outputs, preferably with speakers! Or just render
> to file and open the 8 channel file in audacity.
>
> Best,
>
> Peiman
>
> On 23 November 2010 20:01, Anthony Palomba  wrote:
>> Pieman, do I need any kind of hardware to experiment with this?
>>
>>
>>
>> -ap
>>
>>
>>
>>
>> On Tue, Nov 23, 2010 at 12:55 PM, peiman khosravi 
>> wrote:
>>>
>>> Maybe I'm being completely stupid. Using the bformdec1 example I
>>> cannot get the expected result. It sounds weird!
>>>
>>> My csd is below. The 8 speaker ring is set up here like this: 1 (front
>>> L), 2 (front R), 3 (Wide L), 4 (Wide R), 5 (side L), 6 (side R), 7
>>> (rear L), 8 (rear R).
>>>
>>> I understand that the Octagon setup for bformdec1 is something like this:
>>>
>>> 4.      Octagon -
>>> FFL(22.5),FLL(67.5),BLL(112.5),BBL(157.5),BBR(-157.5),BRR(-112.5),FRR(-67.5),FFR(-22.5).
>>> This is a first-, second- or third-order `in-phase' decode, depending
>>> on the number of input channels.
>>>
>>> So I have changed the CSD to reflect this:         outo a1, a3, a5,
>>> a7, a8, a6, a4, a2
>>>
>>> And still Zero degrees gives me a sound hard panned to the front left.
>>> Either I'm messing something up or my ears are totally deaf to the
>>> ambisonic charm :-)
>>>
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>>
>>>
>>> 
>>> 
>>> ; Select audio/midi flags here according to platform
>>> ; Audio out   Audio in    No messages
>>> ;-odac           -iadc     -d     ;;;RT audio I/O
>>> ; For Non-realtime ouput leave only the line below:
>>>  -o dac1
>>> ;;; for file output any platform
>>> 
>>> 
>>> sr = 96000
>>> ksmps = 16
>>> nchnls = 8
>>>
>>> instr 1
>>>
>>>        ; generate pink noise
>>>        anoise pinkish 10000
>>>
>>>        ; two full turns
>>>        kalpha = 0
>>>        kbeta = 0
>>>
>>>        ; generate B format
>>>        aw, ax, ay, az, ar, as, at, au, av bformenc1 anoise, kalpha, kbeta
>>>
>>>        ; decode B format for 8 channel circle loudspeaker setup
>>>        a1, a2, a3, a4, a5, a6, a7, a8 bformdec1 4, aw, ax, ay, az,
>>> ar, as, at, au, av
>>>
>>>        ; write audio out
>>>        outo a1, a3, a5, a7, a8, a6, a4, a2
>>> endin
>>>
>>> 
>>> 
>>>
>>> ; Play Instrument #1 for 20 seconds.
>>> i 1 0 20
>>> e
>>>
>>>
>>> 
>>> 
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"