チェンジセット 2599

差分発生行の前後
無視リスト:
コミット日時:
2009/05/09 00:37:50 (4 年前)
コミッタ:
gamiken
ログメッセージ:

ADD Example

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/ASound/branches/gamiken/ASound.as3proj

    r2402 r2599  
    1515  <classpaths> 
    1616    <class path="src" /> 
     17    <class path="..\..\..\Library\AS3\Tweensy\trunk\releases\source\cs4\original" /> 
    1718  </classpaths> 
    1819  <!-- Build options --> 
     
    6465  <!-- Class files to compile (other referenced classes will automatically be included) --> 
    6566  <compileTargets> 
    66     <compile path="src\exsample\Celt.as" /> 
     67    <compile path="src\exsample\Exsample.as" /> 
    6768  </compileTargets> 
    6869  <!-- Paths to exclude from the Project Explorer tree --> 
  • as3/ASound/branches/gamiken/obj/ASoundConfig.old

    r2402 r2599  
    99    <source-path append="true"> 
    1010      <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src</path-element> 
     11      <path-element>D:\Kappa-lab\Flash\Library\AS3\Tweensy\trunk\releases\source\cs4\original</path-element> 
    1112      <path-element>c:\program files\flashdevelop\Library\AS3\classes</path-element> 
    1213    </source-path> 
    1314  </compiler> 
    1415  <file-specs> 
    15     <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src\exsample\Celt.as</path-element> 
     16    <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src\exsample\exsample4\Exsample4.as</path-element> 
    1617  </file-specs> 
    1718  <default-background-color>#FFFFFF</default-background-color> 
  • as3/ASound/branches/gamiken/obj/ASoundConfig.xml

    r2402 r2599  
    99    <source-path append="true"> 
    1010      <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src</path-element> 
     11      <path-element>D:\Kappa-lab\Flash\Library\AS3\Tweensy\trunk\releases\source\cs4\original</path-element> 
    1112      <path-element>c:\program files\flashdevelop\Library\AS3\classes</path-element> 
    1213    </source-path> 
    1314  </compiler> 
    1415  <file-specs> 
    15     <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src\exsample\Celt.as</path-element> 
     16    <path-element>D:\Kappa-lab\Flash\ASound\branches\gamiken\src\exsample\Exsample.as</path-element> 
    1617  </file-specs> 
    1718  <default-background-color>#FFFFFF</default-background-color> 
  • as3/ASound/branches/gamiken/src/com/kappaLab/asound/instruments/Bass.as

    r2399 r2599  
    1717            time:uint = 50)  
    1818        { 
    19             this.initFreq = initFreq 
    20             this.endFreq = endFreq 
     19            this.initFreq = initFreq; 
     20            this.endFreq = endFreq; 
    2121            this.time = time; 
    22             signals[0] = new BassOSC(initFreq,endFreq,time) 
     22            signals[0] = new BassOSC(initFreq, endFreq, time); 
    2323            generateEnvelop(0, [1,1,0, 200]); 
    24         } 
     24        }; 
     25         
    2526        override public function play():void 
    2627        { 
    27             super.play() 
    28             BassOSC(signals[0]).frequency = initFreq 
     28            super.play(); 
     29            BassOSC(signals[0]).frequency = initFreq; 
    2930        } 
    3031    } 
  • as3/ASound/branches/gamiken/src/exsample/Exsample2.as

    r2400 r2599  
    22{ 
    33     
     4    import com.kappaLab.asound.effects.DelayEffect; 
    45    import com.kappaLab.asound.filters.ResonatFilter; 
    56    import com.kappaLab.asound.generators.NoiseOSC; 
     
    1415        public function Exsample2()  
    1516        { 
    16             //dualOSC(); 
    17             //envelop(); 
    18             filter(); 
    19         } 
    20          
    21         private function filter():void 
    22         { 
    2317            var ins:Instrument = new Instrument(); 
    24             ins.signals.push(new SinOSC(220)); 
    25             ins.signals.push(new SinOSC(800)); 
    26             ins.signals.push(new SawOSC(900)); 
    27             ins.signals.push(new NoiseOSC()); 
    28             ins.generateEnvelop(0, [1, 1000, 0, 1000]); 
    29             ins.filters.push(new ResonatFilter(ins)) 
    30             ins.play();             
    31         } 
    32          
    33         private function envelop():void 
    34         { 
    35             var ins:Instrument = new Instrument(); 
    36             ins.signals.push(new SinOSC(220)); 
    37             ins.generateEnvelop(0, [1, 1000, 0, 1000]); 
     18            ins.signals.push(new SinOSC(200)); 
     19            ins.effects.push(new DelayEffect(ins, 1000, 1, .5)); 
    3820            ins.play(); 
    39         } 
    40          
    41         private function dualOSC():void 
    42         { 
    43             var ins:Instrument = new Instrument(); 
    44             ins.signals.push(new SinOSC(220)); 
    45             ins.signals.push(new SinOSC(420)); 
    46             ins.play(); 
     21 
    4722        } 
    4823         
  • as3/ASound/branches/gamiken/src/exsample/exsample4/Exsample4.as

    r2400 r2599  
    1212    import flash.display.Sprite; 
    1313    import flash.events.SampleDataEvent; 
     14     
     15    import com.flashdynamix.utils.SWFProfiler 
    1416 
    1517    public class Exsample4 extends Sprite  
     
    1820        public function Exsample4()  
    1921        { 
     22            SWFProfiler.init(this) 
    2023            var r:Instrument = new RandomHarmonics() 
    2124            var r2:Instrument = new RandomHarmonics();