Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
124113e
Rebase against master
tresf Feb 18, 2025
9e07736
Fix Qt6 DMG on Apple (#7240)
tresf May 7, 2024
1afd5d5
Fixes after rebase
tresf May 17, 2024
1d6338a
Fix embed.cpp compilation
tresf May 18, 2024
b1f0ace
Fix Qt6 signature change for nativeEventFilter (#7254)
Rossmaxx May 19, 2024
8dd521a
fix broken signal slot connections (#7274)
Rossmaxx May 21, 2024
5471ab1
Enabled VSTs on Qt 6 (#7273)
Rossmaxx May 21, 2024
e028d13
Changed bar lines to follow snap size (#7034)
BoredGuy1 May 20, 2024
c55f76c
Fix compilation
PhysSong Sep 16, 2024
1497298
Fix MSVC builds
PhysSong Sep 16, 2024
045a059
fix nullptr deref in AudioFileProcessor (qt6 branch) (#7532)
RiedleroD Oct 6, 2024
5a1b745
Remove Core5Compat usage
messmerd Oct 23, 2024
e23b0a4
Fix bad merge
tresf Feb 18, 2025
73c62f2
Fixes after rebase
tresf Feb 18, 2025
54a327d
Simplify QTX_WRAP_CPP call
tresf Feb 18, 2025
b6d7b14
Remove comments that are obvious to a developer
tresf Feb 18, 2025
bffc40d
Whitespace
tresf Feb 18, 2025
2d8c043
Try using Qt 6 for MSVC CI
messmerd Feb 19, 2025
92b59d9
Fix MSVC build
messmerd Feb 19, 2025
f18fc47
Fix GuiApplication on MSVC
messmerd Feb 19, 2025
de4576e
Fix interpolateInRgb
messmerd Feb 19, 2025
ee20d28
Try building with patched Calf
messmerd Feb 20, 2025
f93cae4
Fix submodule
messmerd Feb 20, 2025
47524c6
Fix OpulenZ build
messmerd Feb 20, 2025
4b9af99
Try to fix zyn
tresf Feb 21, 2025
3d7046d
Fix comment
tresf Feb 21, 2025
25bd0b2
Ty to fix zyn (again)
tresf Feb 21, 2025
7941dbf
Ty to fix RemotePluginBase
tresf Feb 21, 2025
a47a2ed
Revert "Ty to fix RemotePluginBase"
tresf Feb 21, 2025
cd9a832
Update plugins/ZynAddSubFx/CMakeLists.txt
tresf Feb 21, 2025
10632b3
Fix vertical & horizontal scroll wheel in SongEditor
tresf Feb 24, 2025
3bf6805
AppImage: Fix finding of Qt6 libs
tresf Feb 24, 2025
bf2b36d
Merge branch 'master' into qt6
tresf Mar 12, 2025
bd288e4
Fix implicit QString --> QFileInfo conversion
tresf Mar 12, 2025
4ba9393
Merge branch 'master' into qt6
tresf Mar 15, 2025
1daea18
Point submodule to lmms
tresf Mar 15, 2025
f1bee30
Merge branch 'master' into qt6
tresf Mar 31, 2025
043319c
Merge branch 'master' into 'qt6'
messmerd May 22, 2025
02f35ed
Fix multiple deprecation warnings
messmerd Jul 10, 2025
6b59994
Fix for Clang compiler
messmerd Jul 10, 2025
cf4bf5c
Build with latest Qt LTS version now that we use MSVC 2022
messmerd Jul 10, 2025
a71147e
Update jurplel/install-qt-action to v4.3.0
messmerd Jul 10, 2025
5f740e4
Bump minimum Qt6 version for MSVC
messmerd Jul 10, 2025
4f58756
Fix incorrect Qt version checks
messmerd Jul 10, 2025
9f93dde
`QSize()` != `QSize(0, 0)`
messmerd Jul 10, 2025
903572e
Merge branch 'master' into qt6
messmerd Jul 10, 2025
418a680
Fix more deprecation warnings
messmerd Jul 10, 2025
87d6b91
Fix style
messmerd Jul 11, 2025
10969b1
Simplify Spectrum Analyzer mouse events
messmerd Jul 11, 2025
48422da
Minor changes
messmerd Jul 11, 2025
b9244a8
Merge branch 'master' into qt6
messmerd Oct 20, 2025
42d8b67
Fix deprecated QCheckBox signal
messmerd Oct 21, 2025
fbee2e7
Fix setContent helper functions
messmerd Oct 21, 2025
36736e5
Remove QMultiMap usage from ControlLayout
messmerd Oct 24, 2025
ccdf3f8
Remove SIGNAL and SLOT macros
messmerd Nov 3, 2025
2039c96
Revert TrackView.cpp changes
messmerd Nov 3, 2025
1839955
Merge branch 'master' into qt6
messmerd Nov 3, 2025
65f6b1e
Remove Q_DISABLE_MOVE usage since it does not seem to be available in…
messmerd Nov 3, 2025
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
Prev Previous commit
Next Next commit
Merge branch 'master' into qt6
  • Loading branch information
tresf committed Mar 31, 2025
commit f1bee3016f3af6ab3cd2e067998edf913794a42f
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ MESSAGE(
"* Debug using UBSanitizer : ${STATUS_DEBUG_UBSAN}\n"
"* Debug packaging commands : ${STATUS_DEBUG_CPACK}\n"
"* Profile using GNU profiler : ${STATUS_GPROF}\n"
"* Debug assertions : ${STATUS_ASSERTIONS}\n"
"* Experimental Qt6 support : ${STATUS_QT6}\n"
)

Expand Down
6 changes: 6 additions & 0 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2434,6 +2434,12 @@
updateKnifePos(me, false);
}

// Update Strum position if we are on knife mode
if (m_editMode == EditMode::Strum && m_strumEnabled)
{
updateStrumPos(me, false, me->modifiers() & Qt::ShiftModifier);
}

if( pos.y() > PR_TOP_MARGIN || m_action != Action::None )
{
bool edit_note = ( pos.y() > noteEditTop() )
Expand Down Expand Up @@ -2879,81 +2885,81 @@
* Notes above the clicked note (relative to each chord) will be strummed down, notes below will be strummed up.
* Holding shift raises the amount of movement to a power, causing the strum to be curved/warped.
*/
void PianoRoll::updateStrumPos(QMouseEvent* me, bool initial, bool warp)
{
if (!hasValidMidiClip()) { return; }
// Calculate the TimePos from the mouse
int mouseViewportPos = me->x() - m_whiteKeyWidth;
int mouseTickPos = mouseViewportPos * TimePos::ticksPerBar() / m_ppb + m_currentPosition;
// Should we add quantization? probably not?
if (initial)
{
m_strumStartTime = mouseTickPos;
m_strumStartVertical = me->y();
}
m_strumCurrentTime = mouseTickPos;
m_strumCurrentVertical = me->y();
int strumTicksHorizontal = m_strumCurrentTime - m_strumStartTime;
float strumPower = fastPow10f(0.01f * (m_strumCurrentVertical - m_strumStartVertical));

if (initial)
{
m_midiClip->addJournalCheckPoint();

Note* clickedNote = noteUnderMouse();
if (clickedNote == nullptr) { return; }

for (NoteVector chord: m_selectedChords)
{
for (Note* note: chord)
{
// Save the current note position
note->setOldPos(note->pos());
// if this is the clicked note, calculate it's ratio up the chord
if (note == clickedNote && chord.size() > 1)
{
m_strumHeightRatio = 1.f * std::distance(chord.begin(), std::find(chord.begin(), chord.end(), clickedNote)) / (chord.size() - 1);
}
}
}
}

for (NoteVector chord: m_selectedChords)
{
// Don't strum a chord with only one note
if (chord.size() <= 1) { continue; }
for (size_t i = 0; i < chord.size(); ++i)
{
float heightRatio = 1.f * i / (chord.size() - 1);
float ratio = 0.0f;

if (heightRatio == m_strumHeightRatio)
{
ratio = 1.f;
}
else if (heightRatio < m_strumHeightRatio)
{
ratio = heightRatio / m_strumHeightRatio;
}
else
{
ratio = (1.f - heightRatio) / (1.f - m_strumHeightRatio);
}

if (warp)
{
ratio = std::pow(ratio, strumPower);
}
chord.at(i)->setPos(std::max(0, static_cast<tick_t>(chord.at(i)->oldPos() + ratio * strumTicksHorizontal)));
}
}
m_midiClip->rearrangeAllNotes();
m_midiClip->updateLength();
m_midiClip->dataChanged();
}



Check notice on line 2962 in src/gui/editors/PianoRoll.cpp

View check run for this annotation

codefactor.io / CodeFactor

src/gui/editors/PianoRoll.cpp#L2888-L2962

Complex Method
void PianoRoll::dragNotes(int x, int y, bool alt, bool shift, bool ctrl)
{
// dragging one or more notes around
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.