Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Triplets in Automation Editor
  • Loading branch information
zonkmachine committed Feb 14, 2017
commit fa68fe9ffb6fdadfa0ce21c138d4ccd9a32f516c
11 changes: 10 additions & 1 deletion src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ AutomationEditor::AutomationEditor() :
{
m_quantizeModel.addItem( "1/" + QString::number( 1 << i ) );
}
for( int i = 0; i < 5; ++i )
{
m_quantizeModel.addItem( "1/" +
QString::number( (1 << i) * 3 ) );
}

if( s_toolYFlip == NULL )
{
s_toolYFlip = new QPixmap( embed::getIconPixmap(
Expand Down Expand Up @@ -1953,7 +1959,10 @@ void AutomationEditor::zoomingYChanged()

void AutomationEditor::setQuantization()
{
int quantization = DefaultTicksPerTact / (1 << m_quantizeModel.value());;
int quantization = m_quantizeModel.value() < 7
? 1 << m_quantizeModel.value()
: ( 1 << ( m_quantizeModel.value() - 7 ) ) * 3;
quantization = DefaultTicksPerTact / quantization;
AutomationPattern::setQuantization(quantization);
}

Expand Down