"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/bit_invader/bit_invader.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.

bit_invader.cpp  (lmms-1.2.0-rc7):bit_invader.cpp  (lmms-1.2.0-rc8)
skipping to change at line 421 skipping to change at line 421
m_graph->setModel( &b->m_graph ); m_graph->setModel( &b->m_graph );
m_sampleLengthKnob->setModel( &b->m_sampleLength ); m_sampleLengthKnob->setModel( &b->m_sampleLength );
m_interpolationToggle->setModel( &b->m_interpolation ); m_interpolationToggle->setModel( &b->m_interpolation );
m_normalizeToggle->setModel( &b->m_normalize ); m_normalizeToggle->setModel( &b->m_normalize );
} }
void bitInvaderView::sinWaveClicked() void bitInvaderView::sinWaveClicked()
{ {
m_graph->model()->clearInvisible();
m_graph->model()->setWaveToSine(); m_graph->model()->setWaveToSine();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::triangleWaveClicked() void bitInvaderView::triangleWaveClicked()
{ {
m_graph->model()->clearInvisible();
m_graph->model()->setWaveToTriangle(); m_graph->model()->setWaveToTriangle();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::sawWaveClicked() void bitInvaderView::sawWaveClicked()
{ {
m_graph->model()->clearInvisible();
m_graph->model()->setWaveToSaw(); m_graph->model()->setWaveToSaw();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::sqrWaveClicked() void bitInvaderView::sqrWaveClicked()
{ {
m_graph->model()->clearInvisible();
m_graph->model()->setWaveToSquare(); m_graph->model()->setWaveToSquare();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::noiseWaveClicked() void bitInvaderView::noiseWaveClicked()
{ {
m_graph->model()->clearInvisible();
m_graph->model()->setWaveToNoise(); m_graph->model()->setWaveToNoise();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::usrWaveClicked() void bitInvaderView::usrWaveClicked()
{ {
QString fileName = m_graph->model()->setWaveToUser(); QString fileName = m_graph->model()->setWaveToUser();
ToolTip::add( m_usrWaveBtn, fileName ); if (!fileName.isEmpty())
Engine::getSong()->setModified();
/*
m_graph->model()->setWaveToNoise();
Engine::getSong()->setModified();
// zero sample_shape
for (int i = 0; i < sample_length; i++)
{
sample_shape[i] = 0;
}
// load user shape
sampleBuffer buffer;
QString af = buffer.openAudioFile();
if ( af != "" )
{ {
buffer.setAudioFile( af ); ToolTip::add(m_usrWaveBtn, fileName);
m_graph->model()->clearInvisible();
// copy buffer data Engine::getSong()->setModified();
sample_length = min( sample_length, static_cast<int>(
buffer.frames() ) );
for ( int i = 0; i < sample_length; i++ )
{
sample_shape[i] = (float)*buffer.data()[i];
}
} }
sampleChanged();
*/
} }
void bitInvaderView::smoothClicked() void bitInvaderView::smoothClicked()
{ {
m_graph->model()->smooth(); m_graph->model()->smooth();
Engine::getSong()->setModified(); Engine::getSong()->setModified();
} }
void bitInvaderView::interpolationToggled( bool value ) void bitInvaderView::interpolationToggled( bool value )
{ {
 End of changes. 8 change blocks. 
27 lines changed or deleted 9 lines changed or added

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