Colin Wallace
bf1b61023c
Use ampToDbfs instead of 20*log10 x.
...
The function's there (in lmms_math.h) for a reason :)
2018-03-16 20:35:08 -07:00
Colin Wallace
b706ee208d
Replace more instances new/delete with owning types ( #4245 )
...
* Use owning types when possible.
Note: the QByteArray s is detached to mimic previous behavior;
detach() guarantees that the QByteArray uniquely owns its data, since
otherwise it's COW. This may be relevant in case Plugin:instantiate
modifies s.data() -- this way the original QString is safe.
* Make m_filter a unique_ptr.
* Make m_activeRenderer a unique_ptr
* use std::string instead of strcpy + buffers
2018-03-15 18:46:55 -07:00
Colin Wallace
80ce77fc91
Merge pull request #4249 from Wallacoloo/refactor/ModelViewTypes
...
Make *ModelView a templated type instead of macro-based class
2018-03-13 22:54:34 -07:00
Colin Wallace
7adad4790e
Merge pull request #4063 from Sawuare/Widgets
...
Use "Set value" as title for QInputDialog of some widgets.
2018-03-13 21:52:57 -07:00
Colin Wallace
45f9fc03c2
Make *ModelView a templated type instead of macro-based class.
...
Among other things, this makes it easier to grep for FloatModelView,
BoolModelView, IntModelView in the code base.
2018-03-13 20:57:34 -07:00
Colin Wallace
748cc0e3e3
Merge pull request #4235 from Wallacoloo/refactor/use-unique-ptr
...
refactor: Use unique_ptr for memory management
2018-03-12 22:45:59 -07:00
Colin Wallace
ec3c9cdf10
Only use specific std:: items we need.
...
Also, fix `using std::unique_ptr` to `using std::make_unique` in
stdshims.h
2018-03-11 09:07:00 -07:00
Colin Wallace
c8d9cc02d5
Use namespace std instead of prefixing {move,unique_ptr} with std::.
2018-03-10 23:30:30 -08:00
Colin Wallace
ba278becbd
Don't use #pragma; don't redefine make_unique if using C++14
2018-03-10 23:29:22 -08:00
Colin Wallace
a9d097cad9
Prefer emplace_back; take argument by value.
...
We copy the QString, so it makes sense to accept it by value and _move_
it into the collection instead. This causes the caller to move any
rvalue QString into the function, and then the QString is never actually
copied at all.
2018-03-10 16:08:21 -08:00
liushuyu
8120db292a
i18n: update strings
2018-03-10 13:25:58 -07:00
liushuyu
c8ba4c548c
Merge remote-tracking branch 'upstream/stable-1.2'
2018-03-10 13:23:02 -07:00
Colin Wallace
876615e3a3
Warn when compiling with C++14 or greater.
2018-03-10 00:28:58 -08:00
Colin Wallace
0f993895d4
Fix missing includes
2018-03-09 23:48:07 -08:00
Colin Wallace
fd871e46c9
refactor: Use unique_ptr for memory management
2018-03-09 23:03:19 -08:00
Tres Finocchiaro
d2c370a953
Enable FPE on Mac ( #4213 )
...
Allow #3687 to work on Mac
2018-03-09 11:41:17 -05:00
Orbital Ink
e9b83378f9
Typo - Phrygolydian to phrygian ( #4223 )
2018-03-07 16:44:16 +01:00
Hyunin Song
0a5d056bdb
Merge branch 'stable-1.2'
...
# Conflicts:
# .travis/osx..install.sh
# .travis/osx..script.sh
# cmake/linux/package_linux.sh.in
# data/locale/en.ts
# src/core/CMakeLists.txt
# src/core/ProjectRenderer.cpp
# src/gui/FileBrowser.cpp
2018-03-07 23:54:28 +09:00
Hyunjin Song
ec0f47e9e3
Fix AppImage tool path
2018-03-07 23:27:28 +09:00
tresf
38b69a7e3a
Fix incrementation of LcdSpinBox QInputDialog
...
Closes #4218
2018-03-06 14:35:24 -05:00
Hyunjin Song
788c990ae1
Remove MIDI connection from factory files ( #4207 )
2018-03-06 09:57:40 +09:00
Hyunjin Song
533f475943
Ensure correct length of automation patterns in BB editor ( #4212 )
...
When the length of an automation pattern is an integer multiple of one bar, it was displayed with wrong length. This commit fixes the bug.
2018-03-06 09:57:16 +09:00
Tres Finocchiaro
1d63bd3b4e
Use Canonical Paths for Relative Paths Calculations ( #4211 )
...
Fix redundant path elements
Closes #4173
2018-03-03 22:46:07 -05:00
Hyunjin Song
926b6542ae
Don't restore audio device during exporting ( #4083 )
...
Fixes deadlock on multi-track export with SDL
2018-03-02 13:28:56 +09:00
Tres Finocchiaro
9f1c73bc12
Fix theme after upgrade
...
Closes #4199
2018-03-01 20:37:04 -05:00
Oskar Wallgren
063a505026
Turn journalling off when moving fader ( #4147 )
2018-03-01 19:03:02 +01:00
tresf
a8e8746011
Add support for .pat previews, drag+drop
...
Closes #4202
2018-02-28 21:34:45 -05:00
Dominic Clark
31775752b4
Fix rendering cancellation with VSTs ( #4189 )
2018-02-27 16:08:42 +01:00
Oskar Wallgren
33d2b71b01
Piano Roll - Erase on mouse button drag in erase mode ( #4150 )
2018-02-27 15:59:15 +01:00
tresf
fc9c3eadef
Fix the AppImages
2018-02-27 01:54:26 -05:00
tresf
edc8f43d5b
Use bundled jack if missing
...
Closes #4094
2018-02-27 01:54:26 -05:00
Tres Finocchiaro
3980e54667
Better wine prefix detection ( #4176 )
...
Closes #4108
2018-02-23 13:20:35 -05:00
Hyunin Song
0f0b08b852
Travis: replace homebrew/versions/qt55 with qt5
2018-02-17 13:01:19 +09:00
noahb01
a39ea2b163
Reset window title after render
...
Closes #4160
2018-02-08 23:40:15 -05:00
Oskar Wallgren
c3b4767836
Add journaling checkpoint to recording notes ( #4144 )
2018-02-01 19:45:05 +01:00
Dominic Clark
27007c258a
Fix command line rendering with VSTs ( #4093 )
...
Fix command line rendering with VSTs
2018-01-26 10:48:46 -05:00
Filip Hron
a193ec25f2
Fix patman logo
...
Closes #3660
Supercedes #4121
2018-01-17 17:05:38 -05:00
DomClark
e2c71e3369
Fix lack of sound in iZotope plugins ( #4095 )
2018-01-17 15:56:01 +09:00
DomClark
d0b3be7f00
Wait for reply when updating sample rate
2018-01-17 15:56:01 +09:00
DomClark
709fc7948b
Set buffer size during plugin init
...
Fixes AmpliTube crash
2018-01-17 15:56:01 +09:00
DomClark
6e0dda692a
Remove plugin lock from RemoteVstPlugin
2018-01-17 15:56:01 +09:00
tresf
46512fdf19
Fix macOS compilation without SDL
...
Closes #4105
2018-01-09 21:34:24 -05:00
tresf
9f08e285bb
Fix $PATH for creating AppImages
2018-01-07 02:37:11 -05:00
tresf
9547575c50
Move exprtk to non-volatile branch
...
Fix Travis-CI for #4089
2018-01-05 17:25:14 -05:00
Mark-Agent003
59eba30d33
Add File Browser Styling ( #4085 )
...
Use CSS to style the selected and hovered items in the File Browser
2018-01-05 11:43:24 -05:00
tresf
5c3c052712
Remove QT5 flags
...
Fix a regression caused by #4041 , closes #4077
2018-01-02 09:53:54 -05:00
David Carlier
bd8c27249f
Using the cmake variable will insure the proper value
...
regardless of the platform (already available in 2.0.7 version)
2018-01-02 13:09:03 +01:00
liushuyu
96c5f05120
update i18n and add i18n maint script
2017-12-30 01:21:00 -07:00
Michael Gregorius
ab2cc42eea
Make Song::setModified more compact
...
Implement a comment from a code review by pulling condition of the
second if clause into the first one.
2017-12-26 00:33:11 +01:00
Michael Gregorius
9acff89ad3
Remove Song's dependency to MainWindow
...
Finally remove Song's dependency to MainWindow by moving the window
title update which is triggered due to a changed project file name from
the class Song into MainWindow.
Implementation details:
Add a new signal projectFileNameChanged to Song and connect the new slot
method MainWindow::onProjectFileNameChanged to it. Update the window
title whenever the slot is triggered.
Add a new private method Song::setProjectFileName which sets the project
file name and emits the signal (only if the file name really changes).
Call setProjectFileName everywhere where m_fileName was manipulated
directly. This is done to ensure that the signal can be potentially
emitted in all relevant situations.
Remove the calls to gui->mainWindow from
Song::createNewProjectFromTemplate.
These changes finally remove the include to "MainWindow.h". The include
for "ConfigManager.h" was previously done implicitly through the include
of "MainWindow.h" and therefore had to be added explicitly after the
latter is removed.
2017-12-26 00:33:11 +01:00