Archive: getosc & getspec


29th October 2003 22:56 UTC

getosc & getspec
Ok so I'm assuming you use these to get certain values of v at specified spots on the scope and what not, but what do all the parameters mean?


29th October 2003 23:48 UTC

Read the fricking AVS help. Sheesh.

getosc(band,width,channel)
= returns waveform data centered at 'band', (0..1), sampled 'width' (0..1) wide.
'channel' can be: 0=center, 1=left, 2=right. return value is (-1..1)

getspec(band,width,channel)
= returns spectrum data centered at 'band', (0..1), sampled 'width' (0..1) wide.
'channel' can be: 0=center, 1=left, 2=right. return value is (0..1)


30th October 2003 00:55 UTC

I think he was asking for a more in depth about what the different things inside the parenthesis mean.
Band=Position along the Waveform or Spectrum Data=0 for lowest frequencies, 1 for highest frequencies.
Width=Width of the Waveform of Spectrum Data being used around the set point in band=0 for just the data at band, 1 for the whole set of data
channel=channel your listening to=0-center, 1-left, 2-right


30th October 2003 01:48 UTC

You can just make a x=i*2-1;y=getosc(...); scope and experiment with all the options. Last time I checked, AVS didn't explode when I tried out new stuff.


30th October 2003 02:17 UTC

Yeah thanks for that unconed, real nice. Anyways, you've been quite helpful Super Toast, thanks.


30th October 2003 03:14 UTC

No problem, but UnConeD does have a point, like for myself I learn better when I do it myself, but that is just me, glad I could help you.


30th October 2003 08:48 UTC

does v equal getosc(i,0,i)? I believe it does, since I tried by overlaying them, though some certainty is never wrong ;).


30th October 2003 11:44 UTC

Deamon: the third parameter should only be 0, 1 or 2, nothing else. Using 'i' means it's rounded, and that it uses the center channel for the left half, and the left channel for the right half.


31st October 2003 22:53 UTC

ok, :) thanks


1st November 2003 02:49 UTC

but yes, v is meant to be getspec(i,0,0).

(as far as i know)


1st November 2003 10:13 UTC

getspec or getosc depending on which input type (waveform or spectrum) you select, I assume?


1st November 2003 15:53 UTC

Nope. They're totally independent of the osc/spec selection.... that one is perfectly restricted to v.
SSC by default is set to waveform, so v is getosc(i,0,0) by default, getspec(i,0,0) if you choose so.


2nd November 2003 12:56 UTC

yeah, I meant that :p. Thanks for clearing it up anyways.


3rd November 2003 00:39 UTC

although if I remember correctly, there is still a difference between v and get***(i,0,0). I believe that they don't work with the exact same part of the spectrum(may be wrong).


3rd November 2003 01:03 UTC

Your right anubis, I did some equal() tests and they never would equal each other, but the rounded, (ceil or floor or |0 values), would equal each other.