root/as3/ASound/branches/gamiken/src/example/Example.as
| リビジョン 2602, 493 bytes (コミッタ: gamiken, コミット時期: 11 ヶ月 前) |
|---|
| Line | |
|---|---|
| 1 | package example |
| 2 | { |
| 3 | |
| 4 | import com.kappaLab.asound.instruments.Instrument; |
| 5 | import com.kappaLab.asound.generators.SinOSC |
| 6 | import flash.display.Sprite; |
| 7 | |
| 8 | public class Example extends Sprite |
| 9 | { |
| 10 | |
| 11 | public function Example() |
| 12 | { |
| 13 | //create instrument |
| 14 | var ins:Instrument = new Instrument(); |
| 15 | //push oscillator |
| 16 | ins.signals.push(new SinOSC()); |
| 17 | //play instrument |
| 18 | ins.play(); |
| 19 | } |
| 20 | } |
| 21 | } |
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。

