[Stk] newbie question

Josep M Comajuncosas josep.comajuncosas@wanadoo.es
Sat, 24 Mar 2007 11:32:27 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0033_01C76E08.1A6F1630
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,
just an , I guess, idiomatic question about the Stk library.
Say I use one of the generator classes
 
SineWave sine;
sine.setFrequency(...)
 
I don't see where is the SineWave instance err..instanced, like
 
SineWave sine = new SineWave();
 
as those are not class methods but instance methods. Is the sine constructed
just by declaring it?
Am I lost somewhere?
 
Thanks in advance...
Josep M

------=_NextPart_000_0033_01C76E08.1A6F1630
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3020" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>just =
an , I guess,=20
idiomatic question about the Stk library.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>Say I =
use one of the=20
generator classes</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D901222510-24032007>SineWave=20
sine;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007>sine.setFrequency(...)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>I =
don't see where is=20
the SineWave instance err..instanced, like</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D901222510-24032007>SineWave sine =3D new=20
SineWave();</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>as =
those are not=20
class methods but instance methods. Is the sine constructed just by =
declaring=20
it?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>Am I =
lost=20
somewhere?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D901222510-24032007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>Thanks =
in=20
advance...</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D901222510-24032007>Josep=20
M</SPAN></FONT></DIV></BODY></HTML>

------=_NextPart_000_0033_01C76E08.1A6F1630--