-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Some fixes to recent files #3621
Changes from 4 commits
ac9f4a2
62ec0a3
6973671
3dae75f
1a630ba
1d68a41
75ec937
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE lmms-project> | ||
<lmms-project version="1.0" creator="LMMS" creatorversion="1.2.0-rc3.15" type="song"> | ||
<head timesig_numerator="4" mastervol="100" timesig_denominator="4" bpm="140" masterpitch="0"/> | ||
<song> | ||
<trackcontainer width="600" x="5" y="5" maximized="0" height="300" visible="1" type="song" minimized="0"> | ||
<track muted="0" type="0" name="TripleOscillator" solo="0"> | ||
<instrumenttrack pan="0" fxch="0" usemasterpitch="1" pitchrange="1" pitch="0" basenote="57" vol="100"> | ||
<instrument name="tripleoscillator"> | ||
<tripleoscillator phoffset2="0" userwavefile0="" finer0="0" userwavefile1="" finer1="0" userwavefile2="" finer2="0" coarse0="0" coarse1="-12" coarse2="-24" finel0="0" finel1="0" modalgo1="2" modalgo2="2" finel2="0" pan0="0" modalgo3="2" pan1="0" stphdetun0="0" pan2="0" stphdetun1="0" wavetype0="0" stphdetun2="0" wavetype1="0" wavetype2="0" vol0="33" vol1="33" phoffset0="0" phoffset1="0" vol2="33"/> | ||
</instrument> | ||
<eldata fres="0.5" ftype="0" fcut="14000" fwet="0"> | ||
<elvol lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
<elcut lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
<elres lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
</eldata> | ||
<chordcreator chord="0" chordrange="1" chord-enabled="0"/> | ||
<arpeggiator arptime="100" arprange="1" arpskip="0" arptime_denominator="4" arptime_syncmode="0" arpmode="0" arpcycle="0" arp-enabled="0" arp="0" arptime_numerator="4" arpdir="0" arpmiss="0" arpgate="100"/> | ||
<midiport inputcontroller="0" fixedoutputvelocity="-1" inputchannel="0" outputcontroller="0" writable="0" outputchannel="1" fixedinputvelocity="-1" fixedoutputnote="-1" outputprogram="1" basevelocity="63" readable="0"/> | ||
<fxchain numofeffects="0" enabled="0"/> | ||
</instrumenttrack> | ||
</track> | ||
<track muted="0" type="2" name="Sample track" solo="0"> | ||
<sampletrack pan="0" vol="100"> | ||
<fxchain numofeffects="0" enabled="0"/> | ||
</sampletrack> | ||
</track> | ||
<track muted="0" type="1" name="Beat/Bassline 0" solo="0"> | ||
<bbtrack> | ||
<trackcontainer width="640" x="610" y="5" maximized="0" height="400" visible="0" type="bbtrackcontainer" minimized="0"> | ||
<track muted="0" type="0" name="Kicker" solo="0"> | ||
<instrumenttrack pan="0" fxch="0" usemasterpitch="1" pitchrange="1" pitch="0" basenote="57" vol="100"> | ||
<instrument name="kicker"> | ||
<kicker decay_numerator="4" decay_denominator="4" distend="0.8" click="0.4" endnote="0" version="1" decay_syncmode="0" decay="440" noise="0" slope="0.06" dist="0.8" env="0.163" startnote="1" startfreq="150" endfreq="40" gain="1"/> | ||
</instrument> | ||
<eldata fres="0.5" ftype="0" fcut="14000" fwet="0"> | ||
<elvol lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
<elcut lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
<elres lspd_denominator="4" sustain="0.5" pdel="0" userwavefile="" dec="0.5" lamt="0" latt="0" rel="0.1" amt="0" x100="0" att="0" lpdel="0" hold="0.5" lspd_syncmode="0" lshp="0" lspd="0.1" ctlenvamt="0" lspd_numerator="4"/> | ||
</eldata> | ||
<chordcreator chord="0" chordrange="1" chord-enabled="0"/> | ||
<arpeggiator arptime="100" arprange="1" arpskip="0" arptime_denominator="4" arptime_syncmode="0" arpmode="0" arpcycle="0" arp-enabled="0" arp="0" arptime_numerator="4" arpdir="0" arpmiss="0" arpgate="100"/> | ||
<midiport inputcontroller="0" fixedoutputvelocity="-1" inputchannel="0" outputcontroller="0" writable="0" outputchannel="1" fixedinputvelocity="-1" fixedoutputnote="-1" outputprogram="1" basevelocity="63" readable="0"/> | ||
<fxchain numofeffects="0" enabled="0"/> | ||
</instrumenttrack> | ||
<pattern steps="16" muted="0" type="0" name="Kicker" pos="0"/> | ||
</track> | ||
</trackcontainer> | ||
</bbtrack> | ||
</track> | ||
<track muted="0" type="5" name="Automation track" solo="0"> | ||
<automationtrack/> | ||
</track> | ||
</trackcontainer> | ||
<track muted="0" type="6" name="Automation track" solo="0"> | ||
<automationtrack/> | ||
<automationpattern tens="1" mute="0" prog="0" name="Numerator" pos="0" len="192"> | ||
<object id="4975896"/> | ||
</automationpattern> | ||
<automationpattern tens="1" mute="0" prog="0" name="Denominator" pos="0" len="192"> | ||
<object id="6613237"/> | ||
</automationpattern> | ||
<automationpattern tens="1" mute="0" prog="0" name="Tempo" pos="0" len="192"> | ||
<object id="6054005"/> | ||
</automationpattern> | ||
<automationpattern tens="1" mute="0" prog="0" name="Master volume" pos="0" len="192"> | ||
<object id="1345820"/> | ||
</automationpattern> | ||
<automationpattern tens="1" mute="0" prog="0" name="Master pitch" pos="0" len="192"> | ||
<object id="5865711"/> | ||
</automationpattern> | ||
</track> | ||
<fxmixer width="543" x="5" y="310" maximized="0" height="335" visible="1" minimized="0"> | ||
<fxchannel num="0" muted="0" volume="1" name="Master" soloed="0"> | ||
<fxchain numofeffects="0" enabled="0"/> | ||
</fxchannel> | ||
</fxmixer> | ||
<ControllerRackView width="350" x="680" y="310" maximized="0" height="200" visible="1" minimized="0"/> | ||
<pianoroll width="640" x="5" y="5" maximized="0" height="480" visible="0" minimized="0"/> | ||
<automationeditor width="640" x="-36" y="0" maximized="0" height="400" visible="0" minimized="0"/> | ||
<projectnotes width="640" x="700" y="10" maximized="0" height="400" visible="0" minimized="0"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
p, li { white-space: pre-wrap; } | ||
</style></head><body style=" font-family:'Noto Sans'; font-size:9pt; font-weight:400; font-style:normal;"> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#e0e0e0;">Enter project notes here</span></p></body></html>]]></projectnotes> | ||
<timeline lp1pos="192" lp0pos="0" lpstate="0"/> | ||
<controllers/> | ||
</song> | ||
</lmms-project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,7 +282,8 @@ void ConfigManager::addRecentlyOpenedProject( const QString & file ) | |
{ | ||
QFileInfo recentFile( file ); | ||
if( recentFile.suffix().toLower() == "mmp" || | ||
recentFile.suffix().toLower() == "mmpz" ) | ||
recentFile.suffix().toLower() == "mmpz" || | ||
recentFile.suffix().toLower() == "mpt" ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could remove the one tab of indentation here so these two lines are at the same level There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||
{ | ||
m_recentlyOpenedProjects.removeAll( file ); | ||
if( m_recentlyOpenedProjects.size() > 50 ) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -846,13 +846,15 @@ int main( int argc, char * * argv ) | |
else if( ConfigManager::inst()-> | ||
value( "app", "openlastproject" ).toInt() && | ||
!ConfigManager::inst()-> | ||
recentlyOpenedProjects().isEmpty() ) | ||
recentlyOpenedProjects().isEmpty() && | ||
!recoveryFilePresent ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And here you could add another tab There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added even more for a casual look. Bohemic chic. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haha, it'll maybe look weird in some editors that don't have the same spaces for tabs like github does, don't you think? |
||
{ | ||
QString f = ConfigManager::inst()-> | ||
recentlyOpenedProjects().first(); | ||
QFileInfo recentFile( f ); | ||
|
||
if ( recentFile.exists() ) | ||
if ( recentFile.exists() && | ||
recentFile.suffix().toLower() != "mpt" ) | ||
{ | ||
Engine::getSong()->loadProject( f ); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what we should do with the creator version, this way we'd need to update it for every version, otherwise the users would keep getting the 'Project version mismatch' tool tip on each new project, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the
creatorversion
manually. It could be automated with the--upgrade
command. For another release though...