"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/widgets/EnvelopeAndLfoView.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

EnvelopeAndLfoView.cpp  (lmms-1.2.0-rc7):EnvelopeAndLfoView.cpp  (lmms-1.2.0-rc8)
skipping to change at line 456 skipping to change at line 456
( 1 - m_sustainKnob->value<float> () ) * ( 1 - m_sustainKnob->value<float> () ) *
avail_height ) - 2, 4, 4, avail_height ) - 2, 4, 4,
end_points_bg_color ); end_points_bg_color );
p.fillRect( x4, static_cast<int>( y_base - avail_height + p.fillRect( x4, static_cast<int>( y_base - avail_height +
( 1 - m_sustainKnob->value<float> () ) * ( 1 - m_sustainKnob->value<float> () ) *
avail_height ) - 1, 2, 2, avail_height ) - 1, 2, 2,
end_points_color ); end_points_color );
p.fillRect( x5 - 1, y_base - 2, 4, 4, end_points_bg_color ); p.fillRect( x5 - 1, y_base - 2, 4, 4, end_points_bg_color );
p.fillRect( x5, y_base - 1, 2, 2, end_points_color ); p.fillRect( x5, y_base - 1, 2, 2, end_points_color );
int LFO_GRAPH_W = s_lfoGraph->width() - 6; // substract border int LFO_GRAPH_W = s_lfoGraph->width() - 3; // substract border
int LFO_GRAPH_H = s_lfoGraph->height() - 6; // substract border int LFO_GRAPH_H = s_lfoGraph->height() - 6; // substract border
int graph_x_base = LFO_GRAPH_X + 3; int graph_x_base = LFO_GRAPH_X + 2;
int graph_y_base = LFO_GRAPH_Y + 3 + LFO_GRAPH_H / 2; int graph_y_base = LFO_GRAPH_Y + 3 + LFO_GRAPH_H / 2;
const float frames_for_graph = SECS_PER_LFO_OSCILLATION * const float frames_for_graph = SECS_PER_LFO_OSCILLATION *
Engine::mixer()->baseSampleRate() / 10; Engine::mixer()->baseSampleRate() / 10;
const float lfo_gray_amount = 1.0f - fabsf( m_lfoAmountKnob->value<float> () ); const float lfo_gray_amount = 1.0f - fabsf( m_lfoAmountKnob->value<float> () );
p.setPen( QPen( QColor( static_cast<int>( 96 * lfo_gray_amount ), p.setPen( QPen( QColor( static_cast<int>( 96 * lfo_gray_amount ),
static_cast<int>( 255 - 159 * lfo_gray_amount ), static_cast<int>( 255 - 159 * lfo_gray_amount ),
static_cast<int>( 128 - 32 * static_cast<int>( 128 - 32 *
lfo_gray_amount ) ), lfo_gray_amount ) ),
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)