Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Aug 29, 2023
1 parent fde9243 commit 7cc1934
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/NotePlayHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ void NotePlayHandle::processTimePos(const TimePos& time, float pitchValue, bool
{
if (!detuning() || time < songGlobalParentOffset() + pos()) { return; }

if (isRecording && m_origin == Origin::OriginMidiInput)
if (isRecording && m_origin == Origin::MidiInput)
{
detuning()->automationClip()->recordValue(time - songGlobalParentOffset() - pos(), pitchValue / 100);
}
Expand Down
1 change: 0 additions & 1 deletion src/tracks/InstrumentTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,6 @@ bool InstrumentTrack::play( const TimePos & _start, const fpp_t _frames,
// Handle automation: detuning
for (const auto& processHandle : m_processHandles)
{
(*it)->processTimePos(_start, m_pitchModel.value(), GuiApplication::instance()->pianoRoll()->isRecording());
processHandle->processTimePos(_start, m_pitchModel.value(), GuiApplication::instance()->pianoRoll()->isRecording());
}

Expand Down

0 comments on commit 7cc1934

Please sign in to comment.