Skip to content

Commit 04e4a5a

Browse files
Merge pull request hydrogen-music#2296 from theGreatWhiteShark/fix/note-length-in-pattern-2290
Revert "AudioEngine: truncate custom note length on pattern end" (hydrogen-music#2290)
2 parents 2247b09 + 4f4a236 commit 04e4a5a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/core/AudioEngine/AudioEngine.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,16 +3231,6 @@ void AudioEngine::updateNoteQueue( unsigned nIntervalLengthInFrames )
32313231
pAutomationPath->get_value( fPos ) );
32323232
}
32333233

3234-
// Ensure the custom length of the note does not exceed
3235-
// the length of the current pattern.
3236-
if ( pCopiedNote->getLength() != LENGTH_ENTIRE_SAMPLE ) {
3237-
pCopiedNote->setLength(
3238-
std::min(
3239-
static_cast<long>(pCopiedNote->getLength()),
3240-
static_cast<long>(pPattern->getLength()) -
3241-
m_pQueuingPosition->getPatternTickPosition() ) );
3242-
}
3243-
32443234
#if AUDIO_ENGINE_DEBUG
32453235
AE_DEBUGLOG( QString( "m_pQueuingPosition: %1, new note: %2" )
32463236
.arg( m_pQueuingPosition->toQString() )

0 commit comments

Comments
 (0)