Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global automation from MidiImport #5223

Merged
merged 2 commits into from
Oct 15, 2019

Conversation

Veratil
Copy link
Contributor

@Veratil Veratil commented Oct 6, 2019

Completes step 1 from #403

@LmmsBot
Copy link

LmmsBot commented Oct 6, 2019

Downloads for this pull request

Generated by the LMMS pull requests bot.
SHA: ff93d48

@PhysSong
Copy link
Member

The rest of this PR looks fine.

@PhysSong PhysSong merged commit 170d28f into LMMS:master Oct 15, 2019
@Reflexe
Copy link
Member

Reflexe commented Oct 16, 2019

This PR is broken with VS builds. see https://ci.appveyor.com/project/Lukas-W/lmms/builds/28005325/job/1d524yxraw2rrw5q

MidiImport.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TrackContentObject::movePosition(class MidiTime const &)" (?movePosition@TrackContentObject@@UAEXABVMidiTime@@@Z) [C:\projects\lmms\build\plugins\MidiImport\midiimport.vcxproj]
MidiImport.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TrackContentObject::changeLength(class MidiTime const &)" (?changeLength@TrackContentObject@@UAEXABVMidiTime@@@Z) [C:\projects\lmms\build\plugins\MidiImport\midiimport.vcxproj]
C:\projects\lmms\build\plugins\Debug\midiimport.dll : fatal error LNK1120: 2 unresolved externals 

@Veratil
Copy link
Contributor Author

Veratil commented Oct 16, 2019

This PR is broken with VS builds. see https://ci.appveyor.com/project/Lukas-W/lmms/builds/28005325/job/1d524yxraw2rrw5q

MidiImport.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TrackContentObject::movePosition(class MidiTime const &)" (?movePosition@TrackContentObject@@UAEXABVMidiTime@@@Z) [C:\projects\lmms\build\plugins\MidiImport\midiimport.vcxproj]
MidiImport.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TrackContentObject::changeLength(class MidiTime const &)" (?changeLength@TrackContentObject@@UAEXABVMidiTime@@@Z) [C:\projects\lmms\build\plugins\MidiImport\midiimport.vcxproj]
C:\projects\lmms\build\plugins\Debug\midiimport.dll : fatal error LNK1120: 2 unresolved externals 

I don't see how this PR would affect that, I didn't touch those functions.

@PhysSong
Copy link
Member

I'm not sure why MinGW builds pass while MSVC builds fail, but I found the reason: class TrackContentObject is not marked as exported. Changing class TrackContentObject to class LMMS_EXPORT TrackContentObject in Track.h will fix this.

PhysSong added a commit that referenced this pull request Oct 16, 2019
Fix a build error introduced in #5223.
PhysSong added a commit to PhysSong/lmms that referenced this pull request Oct 16, 2019
Fix a build error introduced in LMMS#5223.
PhysSong added a commit that referenced this pull request Oct 16, 2019
Fix a build error introduced in #5223.
@PhysSong
Copy link
Member

I found that MIDI import still uses global automation because Song::tempoAutomationPattern() uses it.

@Veratil
Copy link
Contributor Author

Veratil commented Jan 17, 2021

I found that MIDI import still uses global automation because Song::tempoAutomationPattern() uses it.

There's also a few calls to AutomationPattern::globalAutomationPattern which in turn calls Engine::getSong()->globalAutomationTrack(). The hole gets deeper. 🤔

@PhysSong
Copy link
Member

There's also a few calls to AutomationPattern::globalAutomationPattern which in turn calls Engine::getSong()->globalAutomationTrack().

True, but after removing Song::tempoAutomationPattern and its usage, new global automation patterns can be created only by manual GUI actions.

sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
Fix a build error introduced in LMMS#5223.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants