Csound Csound-dev Csound-tekno Search About

[Csnd] vbap changes

Date2012-07-18 12:16
Fromjohn ffitch
Subject[Csnd] vbap changes
Not yet documented in the manual but I have checked it a change to vbap
that is backward compatible

1: vbaplsinit has had the first argument extended.  It was the
dimension and could be 2 or 3.  Now the fractional part times 100
gives a number of the speaker layout, in the range 0 to 99.  Layout 0
is as before.

2: vbap, vbap1 and vbapz take an optional fourth argument in the range
0-99 to select a layout.  This defaults to zero as before.

Question:  in vbaplsinit on says 2.01 but in vbap the argument is 1;
is this clear enough?

Note this does not apply to vbap4, vbap8 or vbap16 as These are being
phased out.  Also does not apply to the vbapXmove opcodes which use
layout 0 only.

I will document soon -- subject to the question above

==John ffitch

Date2012-07-18 14:50
Fromjoachim heintz
SubjectRe: [Csnd] vbap changes
i think this is clear and a very good solution. just needs to be 
properly described.
thanks for this super improvement!
	joachim

Am 18.07.2012 13:16, schrieb john ffitch:
> Question:  in vbaplsinit on says 2.01 but in vbap the argument is 1;
> is this clear enough?


Date2012-07-18 16:18
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] vbap changes
OK; will write documentation

> i think this is clear and a very good solution. just needs to be
> properly described.
> thanks for this super improvement!
> 	joachim
>
> Am 18.07.2012 13:16, schrieb john ffitch:
>> Question:  in vbaplsinit on says 2.01 but in vbap the argument is 1;
>> is this clear enough?



Date2012-07-18 17:42
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] vbap changes
>
> OK; will write documentation
>

Documented. I also renamed vbap1 to vbapg so as not to confuse with vbap4 etc

==John ff



Date2012-08-06 21:42
FromBen Hackbarth
SubjectRe: [Csnd] vbap changes
hi all,

i've had a chance to compile and test vbapg.  i cannot get it to work
-- the resulting panning coefficients are all zeroed out.  below are
the test csd i used (modified from the git manual) and the console
output (i'm on osx 10.7, using git sources from this morning).

also, just a small error in the manual entry: "vbap1" is still used on
occasion, instead of vbapg.



-o vbap4.wav -W ;;; for file output any platform



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

vbaplsinit 2.01, 4, 0, 90, 180, 270

instr 1

asig rand 0.01
kaz  line 0, p3, p4				;come from right rear speaker &	
k1, k2, k3, k4 vbapg  180, 100, kaz, 1             ;change spread of soundsource
printks "vbap coeffs: %f %f %f %f\n", 1, k1, k2, k3, k4
printks "spread of source = %d\n", 1, kaz	;print spread value
outq asig*k1, asig*k2,asig*k3,asig*k4

endin



i 1 0 12 100

e





SECTION 1:
new alloc for instr 1:
WARNING: Warning: truncating elevation to 2-D plane

vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 0
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 8
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 17
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 25
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 33
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 42
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 50
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 58
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 67
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 75
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 83
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 92
vbap coeffs: 0.000000 0.000000 0.000000 0.000000
spread of source = 100
B  0.000 .. 12.000 T 12.000 TT 12.000 M:  0.00000  0.00000  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.		   overall amps:  0.00000  0.00000  0.00000  0.00000
	   overall samples out of range:        0        0        0        0

regards,
--  ben


On Wed, Jul 18, 2012 at 9:42 AM,   wrote:
>>
>> OK; will write documentation
>>
>
> Documented. I also renamed vbap1 to vbapg so as not to confuse with vbap4 etc
>
> ==John ff
>
>
>
>
> 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"
>