lib/minim/src/ddf/minim/UGen.java
/**
	 * Generates one sample frame for this UGen.
	 * 
	 * @param channels
	 *            An array that represents one sample frame. To generate a mono
	 *            signal, pass an array of length 1, if stereo an array of
	 *            length 2, and so on. How a UGen deals with multi-channel sound
	 *            will be implementation dependent.
	 */
Generates one sample frame for this UGen.

@param channels
An array that represents one sample frame. To generate a mono
signal, pass an array of length 1, if stereo an array of
length 2, and so on. How a UGen deals with multi-channel sound
will be implementation dependent.
Generates one sample frame for this UGen . @param channels An array that represents one sample frame . To generate a mono signal pass an array of length 1 if stereo an array of length 2 and so on . How a UGen deals with multi - channel sound will be implementation dependent .
public final void tick(float[] channels)
	{
		if ( m_nOutputs > 0 )
		{
			m_currentTick = ( m_currentTick + 1 ) % ( m_nOutputs );
		}
		if ( 0 == m_currentTick )
		{
			for ( int i = 0; i < m_allInputs.size(); ++i )
			{
				m_allInputs.get( i ).tick();
			}
			uGenerate( channels );
			for( int i = 0; i < channels.length && i < m_lastValues.length; ++i )
			{
				m_lastValues[i] = channels[i];
			}
		}
		else
		{
			for( int i = 0; i < channels.length && i < m_lastValues.length; ++i )
			{
				channels[i] = m_lastValues[i];
			}
		}
	}
public final void tick ( float [ ] channels ) { if ( m_nOutputs > 0 ) { m_currentTick = ( m_currentTick + 1 ) % ( m_nOutputs ) ; } if ( 0 == m_currentTick ) { for ( int i = 0 ; i < m_allInputs . size ( ) ; ++ i ) { m_allInputs . get ( i ) . tick ( ) ; } uGenerate ( channels ) ; for ( int i = 0 ; i < channels . length && i < m_lastValues . length ; ++ i ) { m_lastValues [ i ] = channels [ i ] ; } } else { for ( int i = 0 ; i < channels . length && i < m_lastValues . length ; ++ i ) { channels [ i ] = m_lastValues [ i ] ; } } }
Generates one sample frame for this UGen.
Generates one sample frame for this UGen .
// only tick once per sampleframe when multiple outputs // and then uGenerate for this UGen