Csound Csound-dev Csound-tekno Search About

[Csnd-dev] array output for vbap

Date2019-01-27 11:45
Fromjoachim heintz
Subject[Csnd-dev] array output for vbap
i tried to use vbap in this way:

    nchnls = 4
    vbaplsinit 2, 4, -45, 45, 135, -135

    ...

    aOut[] vbap aTon, iAzi, 0, gkSpreadToene
    out aOut

it did not work (csound segfaults), and i think it is simply related to 
the fact that csound expects the array to be created before, like:

    aOut[] init 4
    aOut vbap aTon, iAzi, 0, gkSpreadToene
    out aOut

can vbap be changed so that it can be used as i expected (and as it is 
written in the manual)?

the size of the audio array would depend on the ilsnum in vbaplsinit 
(perhaps different in different setups).

Date2019-01-27 21:06
Fromjohn
SubjectRe: [Csnd-dev] array output for vbap
I thought one was allowed more than one speaker array so vbap would need 

Date2019-01-27 21:21
Fromjoachim heintz
SubjectRe: [Csnd-dev] array output for vbap
yes it must be related to the speaker setup, and in a setup to the 
number of loudspeakers.
for instance:

  vbapslinit 2.01, 4, ...
  vbaplsinit 2.02, 6, ...

aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6



On 27/01/19 22:06, john wrote:
> I thought one was allowed more than one speaker array so vbap would need
> to knwwhich seaker layout?  Will look as I get time.

Date2019-01-27 21:25
Fromjoachim heintz
SubjectRe: [Csnd-dev] array output for vbap
last line must read setup 2, so correct is:

 >  vbapslinit 2.01, 4, ...
 >  vbaplsinit 2.02, 6, ...
 >
 > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
 > aOut[] vbap aSound, kAzi, 0, 0, 2  -> aOut is of length 6

On 27/01/19 22:21, joachim heintz wrote:
> yes it must be related to the speaker setup, and in a setup to the
> number of loudspeakers.
> for instance:
>
>  vbapslinit 2.01, 4, ...
>  vbaplsinit 2.02, 6, ...
>
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6
>
>
>
> On 27/01/19 22:06, john wrote:
>> I thought one was allowed more than one speaker array so vbap would need
>> to knwwhich seaker layout?  Will look as I get time.
>>

Date2019-01-27 21:44
Fromjohn
SubjectRe: [Csnd-dev] array output for vbap
I think I have it working.  Will commit in a minute but this example runs


; Select audio/midi flags here according to platform
-odac  ;;;realtime audio out
;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o vbap.wav -W ;;; for file output any platform



sr = 44100
ksmps = 32
nchnls = 4	;quad
0dbfs  = 1

vbaplsinit 2, 4, 0, 90, 180, 270

instr 1

asig diskin2 "beats.wav", 1, 0, 1	;loop beats.wav
kaz  line 0, p3, p4			;come from right rear speaker &
;;aa[] init 4
aa[]   vbap  asig, 180, 100, kaz			;change spread of 
soundsource
      printks "spread of source = %d\n", 1, kaz	;print spread value
      out aa

endin



i 1 0 12 100

e




On Sun, 27 Jan 2019, joachim heintz wrote:

> yes it must be related to the speaker setup, and in a setup to the number of 
> loudspeakers.
> for instance:
>
> vbapslinit 2.01, 4, ...
> vbaplsinit 2.02, 6, ...
>
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6
>
>
>
> On 27/01/19 22:06, john wrote:
>> I thought one was allowed more than one speaker array so vbap would need
>> to knwwhich seaker layout?  Will look as I get time.
>> 

Date2019-01-28 13:16
Fromjoachim heintz
SubjectRe: [Csnd-dev] array output for vbap
wow!

i have tested with the csd below. and all is perfect.  thanks!!

	joachim







sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1


vbaplsinit 2.01, 4, -45, 45, 135, -135
vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90

instr Test

aSound pinkish .1
kAzi line 0, p3, 360
aOut1[] vbap aSound, kAzi, 0, 0, 1
aOut2[] vbap aSound, kAzi, 0, 0, 2

print lenarray(aOut1), lenarray(aOut2)

fout "out1.wav", 14, aOut1
fout "out2.wav", 14, aOut2

endin



i "Test" 0 5





On 27/01/19 22:44, john wrote:
>
> vbapslinit 2.01, 4, ...
> vbaplsinit 2.02, 6, ...
>
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4

Date2019-02-22 01:20
From"Dr. Richard Boulanger"
SubjectRe: [Csnd-dev] array output for vbap
both crash for me with a segfault - in QT and in the Terminal
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Mon, Jan 28, 2019 at 8:16 AM joachim heintz <jh@joachimheintz.de> wrote:
wow!

i have tested with the csd below. and all is perfect.  thanks!!

        joachim


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1


vbaplsinit 2.01, 4, -45, 45, 135, -135
vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90

instr Test

aSound pinkish .1
kAzi line 0, p3, 360
aOut1[] vbap aSound, kAzi, 0, 0, 1
aOut2[] vbap aSound, kAzi, 0, 0, 2

print lenarray(aOut1), lenarray(aOut2)

fout "out1.wav", 14, aOut1
fout "out2.wav", 14, aOut2

endin

</CsInstruments>
<CsScore>
i "Test" 0 5
</CsScore>
</CsoundSynthesizer>



On 27/01/19 22:44, john wrote:
>
> vbapslinit 2.01, 4, ...
> vbaplsinit 2.02, 6, ...
>
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
> aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6

Date2019-02-22 11:29
Fromjoachim heintz
SubjectRe: [Csnd-dev] array output for vbap
did you pulll and build from git?



On 22/02/19 02:20, Dr. Richard Boulanger wrote:
> both crash for me with a segfault - in QT and in the Terminal
> _____________________________________________
> *Dr. Richard Boulanger*
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
> ______________________________________________
> President of *Boulanger Labs* - http://boulangerlabs.com
> Author & Editor of *The Csound Book* -
> http://mitpress.mit.edu/books/csound-book
> Author & Editor of *The Audio Programming Book* -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/#about
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:
> http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu 
> facebook: https://www.facebook.com/richard.boulanger.58
>
>
>
> On Mon, Jan 28, 2019 at 8:16 AM joachim heintz  > wrote:
>
>     wow!
>
>     i have tested with the csd below. and all is perfect.  thanks!!
>
>             joachim
>
>
>     
>     
>     
>     
>
>     sr = 44100
>     ksmps = 32
>     nchnls = 2
>     0dbfs = 1
>
>
>     vbaplsinit 2.01, 4, -45, 45, 135, -135
>     vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90
>
>     instr Test
>
>     aSound pinkish .1
>     kAzi line 0, p3, 360
>     aOut1[] vbap aSound, kAzi, 0, 0, 1
>     aOut2[] vbap aSound, kAzi, 0, 0, 2
>
>     print lenarray(aOut1), lenarray(aOut2)
>
>     fout "out1.wav", 14, aOut1
>     fout "out2.wav", 14, aOut2
>
>     endin
>
>     
>     
>     i "Test" 0 5
>     
>     
>
>
>
>     On 27/01/19 22:44, john wrote:
>     >
>     > vbapslinit 2.01, 4, ...
>     > vbaplsinit 2.02, 6, ...
>     >
>     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
>     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6

Date2019-02-22 13:29
From"Dr. Richard Boulanger"
SubjectRe: [Csnd-dev] array output for vbap
no.  I was just using the latest binary release and the latest Qt from Tarmo.
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Fri, Feb 22, 2019 at 6:29 AM joachim heintz <jh@joachimheintz.de> wrote:
did you pulll and build from git?



On 22/02/19 02:20, Dr. Richard Boulanger wrote:
> both crash for me with a segfault - in QT and in the Terminal
> _____________________________________________
> *Dr. Richard Boulanger*
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
> ______________________________________________
> President of *Boulanger Labs* - http://boulangerlabs.com
> Author & Editor of *The Csound Book* -
> http://mitpress.mit.edu/books/csound-book
> Author & Editor of *The Audio Programming Book* -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/#about
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:
> http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>
> facebook: https://www.facebook.com/richard.boulanger.58
>
>
>
> On Mon, Jan 28, 2019 at 8:16 AM joachim heintz <jh@joachimheintz.de
> <mailto:jh@joachimheintz.de>> wrote:
>
>     wow!
>
>     i have tested with the csd below. and all is perfect.  thanks!!
>
>             joachim
>
>
>     <CsoundSynthesizer>
>     <CsOptions>
>     </CsOptions>
>     <CsInstruments>
>
>     sr = 44100
>     ksmps = 32
>     nchnls = 2
>     0dbfs = 1
>
>
>     vbaplsinit 2.01, 4, -45, 45, 135, -135
>     vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90
>
>     instr Test
>
>     aSound pinkish .1
>     kAzi line 0, p3, 360
>     aOut1[] vbap aSound, kAzi, 0, 0, 1
>     aOut2[] vbap aSound, kAzi, 0, 0, 2
>
>     print lenarray(aOut1), lenarray(aOut2)
>
>     fout "out1.wav", 14, aOut1
>     fout "out2.wav", 14, aOut2
>
>     endin
>
>     </CsInstruments>
>     <CsScore>
>     i "Test" 0 5
>     </CsScore>
>     </CsoundSynthesizer>
>
>
>
>     On 27/01/19 22:44, john wrote:
>     >
>     > vbapslinit 2.01, 4, ...
>     > vbaplsinit 2.02, 6, ...
>     >
>     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
>     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6
>

Date2019-02-22 14:03
Fromjoachim heintz
SubjectRe: [Csnd-dev] array output for vbap
it is new (if you follow back this thread) so can only work if you build 
csound from git develop.



On 22/02/19 14:29, Dr. Richard Boulanger wrote:
> no.  I was just using the latest binary release and the latest Qt from
> Tarmo.
> _____________________________________________
> *Dr. Richard Boulanger*
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
> ______________________________________________
> President of *Boulanger Labs* - http://boulangerlabs.com
> Author & Editor of *The Csound Book* -
> http://mitpress.mit.edu/books/csound-book
> Author & Editor of *The Audio Programming Book* -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/#about
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:
> http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu 
> facebook: https://www.facebook.com/richard.boulanger.58
>
>
>
> On Fri, Feb 22, 2019 at 6:29 AM joachim heintz  > wrote:
>
>     did you pulll and build from git?
>
>
>
>     On 22/02/19 02:20, Dr. Richard Boulanger wrote:
>     > both crash for me with a segfault - in QT and in the Terminal
>     > _____________________________________________
>     > *Dr. Richard Boulanger*
>     > Professor of Electronic Production and Design
>     > Professional Writing and Music Technology Division
>     > Berklee College of Music
>     > ______________________________________________
>     > OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
>     > ______________________________________________
>     > President of *Boulanger Labs* - http://boulangerlabs.com
>     > Author & Editor of *The Csound Book* -
>     > http://mitpress.mit.edu/books/csound-book
>     > Author & Editor of *The Audio Programming Book* -
>     > http://mitpress.mit.edu/books/audio-programming-book
>     > ______________________________________________
>     > about: http://www.boulangerlabs.com/#about
>     > about:
>     http://www.csounds.com/community/developers/dr-richard-boulanger/
>     > music:
>     >
>     http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
>     > ______________________________________________
>     > email: rboulanger@berklee.edu 
>     >
>     > facebook: https://www.facebook.com/richard.boulanger.58
>     >
>     >
>     >
>     > On Mon, Jan 28, 2019 at 8:16 AM joachim heintz
>     
>     > >> wrote:
>     >
>     >     wow!
>     >
>     >     i have tested with the csd below. and all is perfect.  thanks!!
>     >
>     >             joachim
>     >
>     >
>     >     
>     >     
>     >     
>     >     
>     >
>     >     sr = 44100
>     >     ksmps = 32
>     >     nchnls = 2
>     >     0dbfs = 1
>     >
>     >
>     >     vbaplsinit 2.01, 4, -45, 45, 135, -135
>     >     vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90
>     >
>     >     instr Test
>     >
>     >     aSound pinkish .1
>     >     kAzi line 0, p3, 360
>     >     aOut1[] vbap aSound, kAzi, 0, 0, 1
>     >     aOut2[] vbap aSound, kAzi, 0, 0, 2
>     >
>     >     print lenarray(aOut1), lenarray(aOut2)
>     >
>     >     fout "out1.wav", 14, aOut1
>     >     fout "out2.wav", 14, aOut2
>     >
>     >     endin
>     >
>     >     
>     >     
>     >     i "Test" 0 5
>     >     
>     >     
>     >
>     >
>     >
>     >     On 27/01/19 22:44, john wrote:
>     >     >
>     >     > vbapslinit 2.01, 4, ...
>     >     > vbaplsinit 2.02, 6, ...
>     >     >
>     >     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
>     >     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6
>     >

Date2019-02-22 14:04
From"Dr. Richard Boulanger"
SubjectRe: [Csnd-dev] array output for vbap
thanks.  I will do that later today.  -dB
_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
______________________________________________


On Fri, Feb 22, 2019 at 9:03 AM joachim heintz <jh@joachimheintz.de> wrote:
it is new (if you follow back this thread) so can only work if you build
csound from git develop.



On 22/02/19 14:29, Dr. Richard Boulanger wrote:
> no.  I was just using the latest binary release and the latest Qt from
> Tarmo.
> _____________________________________________
> *Dr. Richard Boulanger*
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> ______________________________________________
> OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
> ______________________________________________
> President of *Boulanger Labs* - http://boulangerlabs.com
> Author & Editor of *The Csound Book* -
> http://mitpress.mit.edu/books/csound-book
> Author & Editor of *The Audio Programming Book* -
> http://mitpress.mit.edu/books/audio-programming-book
> ______________________________________________
> about: http://www.boulangerlabs.com/#about
> about: http://www.csounds.com/community/developers/dr-richard-boulanger/
> music:
> http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
> ______________________________________________
> email: rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>
> facebook: https://www.facebook.com/richard.boulanger.58
>
>
>
> On Fri, Feb 22, 2019 at 6:29 AM joachim heintz <jh@joachimheintz.de
> <mailto:jh@joachimheintz.de>> wrote:
>
>     did you pulll and build from git?
>
>
>
>     On 22/02/19 02:20, Dr. Richard Boulanger wrote:
>     > both crash for me with a segfault - in QT and in the Terminal
>     > _____________________________________________
>     > *Dr. Richard Boulanger*
>     > Professor of Electronic Production and Design
>     > Professional Writing and Music Technology Division
>     > Berklee College of Music
>     > ______________________________________________
>     > OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger)
>     > ______________________________________________
>     > President of *Boulanger Labs* - http://boulangerlabs.com
>     > Author & Editor of *The Csound Book* -
>     > http://mitpress.mit.edu/books/csound-book
>     > Author & Editor of *The Audio Programming Book* -
>     > http://mitpress.mit.edu/books/audio-programming-book
>     > ______________________________________________
>     > about: http://www.boulangerlabs.com/#about
>     > about:
>     http://www.csounds.com/community/developers/dr-richard-boulanger/
>     > music:
>     >
>     http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/
>     > ______________________________________________
>     > email: rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>
>     <mailto:rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>>
>     > facebook: https://www.facebook.com/richard.boulanger.58
>     >
>     >
>     >
>     > On Mon, Jan 28, 2019 at 8:16 AM joachim heintz
>     <jh@joachimheintz.de <mailto:jh@joachimheintz.de>
>     > <mailto:jh@joachimheintz.de <mailto:jh@joachimheintz.de>>> wrote:
>     >
>     >     wow!
>     >
>     >     i have tested with the csd below. and all is perfect.  thanks!!
>     >
>     >             joachim
>     >
>     >
>     >     <CsoundSynthesizer>
>     >     <CsOptions>
>     >     </CsOptions>
>     >     <CsInstruments>
>     >
>     >     sr = 44100
>     >     ksmps = 32
>     >     nchnls = 2
>     >     0dbfs = 1
>     >
>     >
>     >     vbaplsinit 2.01, 4, -45, 45, 135, -135
>     >     vbaplsinit 2.02, 6, -30, 30, 90, 150, -150, -90
>     >
>     >     instr Test
>     >
>     >     aSound pinkish .1
>     >     kAzi line 0, p3, 360
>     >     aOut1[] vbap aSound, kAzi, 0, 0, 1
>     >     aOut2[] vbap aSound, kAzi, 0, 0, 2
>     >
>     >     print lenarray(aOut1), lenarray(aOut2)
>     >
>     >     fout "out1.wav", 14, aOut1
>     >     fout "out2.wav", 14, aOut2
>     >
>     >     endin
>     >
>     >     </CsInstruments>
>     >     <CsScore>
>     >     i "Test" 0 5
>     >     </CsScore>
>     >     </CsoundSynthesizer>
>     >
>     >
>     >
>     >     On 27/01/19 22:44, john wrote:
>     >     >
>     >     > vbapslinit 2.01, 4, ...
>     >     > vbaplsinit 2.02, 6, ...
>     >     >
>     >     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 4
>     >     > aOut[] vbap aSound, kAzi, 0, 0, 1  -> aOut is of length 6
>     >
>