But I get the following, I think some of the errors are due to needing web audio swc api. Is there a way to add swc deps, I didn't see any?
Teoti@TEOTI-PC /c/SDKs/JSLibs
$ dts2as --flexHome C:/SDKs/FlexJS_0.6-RC2 --outSWC tonejs.swc tone.d.ts
C:\SDKs\JSLibs\dts2as_generated\src\Tone.as:25
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function extend(child:Function, parent:Function = undefined):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone.as:44
Warning: Incompatible initializer value of type 'int' where 'AudioNode' is expected. An initial value of null will be used instead.
public function receive(channelName:String, input:AudioNode = undefined):Tone { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Buffer.as:6
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function Buffer(url:Object = undefined, callback:Function = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Buffer.as:25
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function load(url:String, callback:Function = undefined):Buffer { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Convolver.as:11
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function load(url:String, callback:Function = undefined):Convolver { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Filter.as:6
Warning: Incompatible initializer value of type 'int' where 'String' is expected. An initial value of "0" will be used instead.
public function Filter(freq:Object = undefined, type:String = undefined, rolloff:Number = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Note.as:12
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function route(channel:Object, callback:Function = undefined):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Note.as:13
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function unroute(channel:Object, callback:Function = undefined):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\OmniOscillator.as:6
Warning: Incompatible initializer value of type 'int' where 'String' is expected. An initial value of "0" will be used instead.
public function OmniOscillator(frequency:Object = undefined, type:String = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Oscillator.as:6
Warning: Incompatible initializer value of type 'int' where 'String' is expected. An initial value of "0" will be used instead.
public function Oscillator(frequency:Object = undefined, type:String = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Player.as:6
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function Player(url:Object = undefined, onload:Function = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Player.as:30
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function load(url:Object, callback:Function = undefined):Player { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\PolySynth.as:6
Warning: Incompatible initializer value of type 'int' where 'Function' is expected. An initial value of null will be used instead.
public function PolySynth(voicesAmount:Object = undefined, voice:Function = undefined) {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\PolySynth.as:12
Warning: Incompatible initializer value of type 'int' where 'Array' is expected. An initial value of null will be used instead.
public function get(params:Array = undefined):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Sampler.as:22
Warning: Incompatible initializer value of type 'int' where 'String' is expected. An initial value of "0" will be used instead.
public function triggerAttack(sample:String = undefined, time:Object = undefined, velocity:Number = undefined):Sampler { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Signal.as:9
Error: Type was not found or was not a compile-time constant: Type.
public function get units():Type { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Signal.as:10
Error: Type was not found or was not a compile-time constant: Type.
public function set units(value:Type):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Source.as:13
Error: Type was not found or was not a compile-time constant: State.
public function get state():Tone.Source.State { return null; }
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Source.as:14
Error: Type was not found or was not a compile-time constant: State.
public function set state(value:Tone.Source.State):void {}
^
C:\SDKs\JSLibs\dts2as_generated\src\Tone\Transport.as:34
Warning: Incompatible initializer value of type 'int' where 'String' is expected. An initial value of "0" will be used instead.
public function nextBeat(subdivision:String = undefined):Number { return 0; }
^
Could not create SWC file. The generated ActionScript contains compile-time errors.
Teoti@TEOTI-PC /c/SDKs/JSLibs
$