Changeset 30294 for lang/actionscript

Show
Ignore:
Timestamp:
02/20/09 01:30:06 (3 years ago)
Author:
tekisuke
Message:

@4ノイズの波形を発音のたびにリセットするように戻しました。ただし、LFOのときにはリセットしません。

Location:
lang/actionscript/flmml/trunk/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/MChannel.as

    r29726 r30294  
    5151            m_oscMod1 = m_oscSet1.getCurrent(); 
    5252            m_oscSet2 = new MOscillator(); 
     53            m_oscSet2.asLFO(); 
    5354            m_oscSet2.setForm(MOscillator.SINE); 
    5455            m_oscMod2 = m_oscSet2.getCurrent(); 
  • lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/MOscNoise.as

    r29726 r30294  
    88        protected var m_noiseFreq:Number; 
    99        protected var m_counter:uint; 
     10        protected var m_resetPhase:Boolean; 
    1011        protected static var s_init:int = 0; 
    1112        protected static var s_table:Vector.<Number> = new Vector.<Number>(TABLE_LEN, true); 
     
    1718            m_phase = 0; 
    1819            m_counter = 0; 
     20            m_resetPhase = true; 
     21        } 
     22        public function disableResetPhase():void { 
     23            m_resetPhase = false; 
    1924        } 
    2025        public static function boot():void { 
     
    2631        } 
    2732        public override function resetPhase():void { 
    28             //m_phase = 0; 
     33            if (m_resetPhase) m_phase = 0; 
    2934            //m_counter = 0; 
    3035        } 
  • lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/MOscillator.as

    r28310 r30294  
    4040            setForm(PULSE); 
    4141        } 
    42  
     42        public function asLFO():void { 
     43            if (m_osc[NOISE]) ((MOscNoise)(m_osc[NOISE])).disableResetPhase(); 
     44        } 
    4345        public static function boot():void { 
    4446            if (s_init) return;