Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into 7512-MaximizeButt…
Browse files Browse the repository at this point in the history
…onForResizableInstruments

Conflicts:
* include/SubWindow.h
* src/gui/SubWindow.cpp
  • Loading branch information
michaelgregorius committed Oct 10, 2024
2 parents 9aab76b + 378ff8b commit f677b8c
Show file tree
Hide file tree
Showing 135 changed files with 248,452 additions and 197,049 deletions.
5 changes: 2 additions & 3 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ host = https://www.transifex.com
minimum_perc = 51
#Need to finish at least 51% before merging back

[lmms.lmms]
[o:lmms:p:lmms:r:lmms]
file_filter = data/locale/<lang>.ts
source_file = data/locale/en.ts
source_lang = en
type = QT

type = QT
21,614 changes: 12,016 additions & 9,598 deletions data/locale/cs.ts

Large diffs are not rendered by default.

20,491 changes: 11,456 additions & 9,035 deletions data/locale/de.ts

Large diffs are not rendered by default.

20,641 changes: 11,530 additions & 9,111 deletions data/locale/es.ts

Large diffs are not rendered by default.

18,733 changes: 10,580 additions & 8,153 deletions data/locale/eu.ts

Large diffs are not rendered by default.

21,501 changes: 11,957 additions & 9,544 deletions data/locale/fr.ts

Large diffs are not rendered by default.

17,408 changes: 9,918 additions & 7,490 deletions data/locale/he.ts

Large diffs are not rendered by default.

22,064 changes: 12,242 additions & 9,822 deletions data/locale/hu_HU.ts

Large diffs are not rendered by default.

20,055 changes: 11,234 additions & 8,821 deletions data/locale/id.ts

Large diffs are not rendered by default.

22,655 changes: 12,532 additions & 10,123 deletions data/locale/it.ts

Large diffs are not rendered by default.

20,065 changes: 11,242 additions & 8,823 deletions data/locale/ja.ts

Large diffs are not rendered by default.

22,566 changes: 12,644 additions & 9,922 deletions data/locale/ko.ts

Large diffs are not rendered by default.

21,686 changes: 12,052 additions & 9,634 deletions data/locale/nl.ts

Large diffs are not rendered by default.

22,483 changes: 12,466 additions & 10,017 deletions data/locale/pl.ts

Large diffs are not rendered by default.

20,114 changes: 11,270 additions & 8,844 deletions data/locale/pt.ts

Large diffs are not rendered by default.

22,414 changes: 12,411 additions & 10,003 deletions data/locale/ru.ts

Large diffs are not rendered by default.

21,989 changes: 12,269 additions & 9,720 deletions data/locale/sl.ts

Large diffs are not rendered by default.

22,799 changes: 12,604 additions & 10,195 deletions data/locale/sv.ts

Large diffs are not rendered by default.

22,874 changes: 12,649 additions & 10,225 deletions data/locale/tr.ts

Large diffs are not rendered by default.

20,489 changes: 11,454 additions & 9,035 deletions data/locale/uk.ts

Large diffs are not rendered by default.

21,332 changes: 12,020 additions & 9,312 deletions data/locale/zh_CN.ts

Large diffs are not rendered by default.

19,369 changes: 10,894 additions & 8,475 deletions data/locale/zh_TW.ts

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions data/themes/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -601,35 +601,24 @@ lmms--gui--TrackLabelButton:hover {
background: #3B424A;
border: 1px solid #515B66;
border-radius: none;
font-size: 11px;
font-weight: normal;
padding: 2px 1px;
}

lmms--gui--TrackLabelButton:pressed {
background: #262B30;
border-radius: none;
font-size: 11px;
font-weight: normal;
padding: 2px 1px;
}

lmms--gui--TrackLabelButton:checked {
border: 1px solid #485059;
background: #1C1F24;
background-image: url("resources:track_shadow_p.png");
border-radius: none;
font-size: 11px;
font-weight: normal;
padding: 2px 1px;
}

lmms--gui--TrackLabelButton:checked:pressed {
border: 1px solid #2f353b;
background: #0e1012;
background-image: url("resources:track_shadow_p.png");
font-size: 11px;
padding: 2px 1px;
font-weight: solid;
}

Expand Down
13 changes: 7 additions & 6 deletions include/AudioEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ class AudioPort;
class AudioEngineWorkerThread;


const fpp_t MINIMUM_BUFFER_SIZE = 32;
const fpp_t DEFAULT_BUFFER_SIZE = 256;
constexpr fpp_t MINIMUM_BUFFER_SIZE = 32;
constexpr fpp_t DEFAULT_BUFFER_SIZE = 256;
constexpr fpp_t MAXIMUM_BUFFER_SIZE = 4096;

const int BYTES_PER_SAMPLE = sizeof( sample_t );
const int BYTES_PER_INT_SAMPLE = sizeof( int_sample_t );
const int BYTES_PER_FRAME = sizeof( SampleFrame );
constexpr int BYTES_PER_SAMPLE = sizeof(sample_t);
constexpr int BYTES_PER_INT_SAMPLE = sizeof(int_sample_t);
constexpr int BYTES_PER_FRAME = sizeof(SampleFrame);

const float OUTPUT_SAMPLE_MULTIPLIER = 32767.0f;
constexpr float OUTPUT_SAMPLE_MULTIPLIER = 32767.0f;

class LMMS_EXPORT AudioEngine : public QObject
{
Expand Down
2 changes: 2 additions & 0 deletions include/AutomationEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ protected slots:
QScrollBar * m_leftRightScroll;
QScrollBar * m_topBottomScroll;

void adjustLeftRightScoll(int value);

TimePos m_currentPosition;

Action m_action;
Expand Down
5 changes: 3 additions & 2 deletions include/DummyEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class DummyEffect : public Effect
m_originalPluginData( originalPluginData )
{
setName();
setDontRun(true);
}

~DummyEffect() override = default;
Expand All @@ -107,9 +108,9 @@ class DummyEffect : public Effect
return &m_controls;
}

bool processAudioBuffer( SampleFrame*, const fpp_t ) override
ProcessStatus processImpl(SampleFrame*, const fpp_t) override
{
return false;
return ProcessStatus::Sleep;
}

const QDomElement& originalPluginData() const
Expand Down
2 changes: 1 addition & 1 deletion include/Editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Editor : public QMainWindow
DropToolBar * addDropToolBar(Qt::ToolBarArea whereToAdd, QString const & windowTitle);
DropToolBar * addDropToolBar(QWidget * parent, Qt::ToolBarArea whereToAdd, QString const & windowTitle);

void closeEvent( QCloseEvent * _ce ) override;
void closeEvent(QCloseEvent * event) override;
protected slots:
virtual void play() {}
virtual void record() {}
Expand Down
40 changes: 31 additions & 9 deletions include/Effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ class LMMS_EXPORT Effect : public Plugin
return "effect";
}


virtual bool processAudioBuffer( SampleFrame* _buf,
const fpp_t _frames ) = 0;
//! Returns true if audio was processed and should continue being processed
bool processAudioBuffer(SampleFrame* buf, const fpp_t frames);

inline ch_cnt_t processorCount() const
{
Expand Down Expand Up @@ -174,14 +173,29 @@ class LMMS_EXPORT Effect : public Plugin


protected:
enum class ProcessStatus
{
//! Unconditionally continue processing
Continue,

//! Calculate the RMS out sum and call `checkGate` to determine whether to stop processing
ContinueIfNotQuiet,

//! Do not continue processing
Sleep
};

/**
Effects should call this at the end of audio processing
* The main audio processing method that runs when plugin is not asleep
*/
virtual ProcessStatus processImpl(SampleFrame* buf, const fpp_t frames) = 0;

/**
* Optional method that runs when plugin is sleeping (not enabled,
* not running, not in the Okay state, or in the Don't Run state)
*/
virtual void processBypassedImpl() {}

If the setting "Keep effects running even without input" is disabled,
after "decay" ms of a signal below "gate", the effect is turned off
and won't be processed again until it receives new audio input
*/
void checkGate( double _out_sum );

gui::PluginView* instantiateView( QWidget * ) override;

Expand Down Expand Up @@ -212,6 +226,14 @@ class LMMS_EXPORT Effect : public Plugin


private:
/**
If the setting "Keep effects running even without input" is disabled,
after "decay" ms of a signal below "gate", the effect is turned off
and won't be processed again until it receives new audio input
*/
void checkGate(double outSum);


EffectChain * m_parent;
void resample( int _i, const SampleFrame* _src_buf,
sample_rate_t _src_sr,
Expand Down
12 changes: 8 additions & 4 deletions include/gui_templates.h → include/FontHelper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* gui_templates.h - GUI-specific templates
* FontHelper.h - Header function to help with fonts
*
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
Expand All @@ -22,12 +22,16 @@
*
*/

#ifndef LMMS_GUI_TEMPLATES_H
#define LMMS_GUI_TEMPLATES_H
#ifndef LMMS_FONT_HELPER_H
#define LMMS_FONT_HELPER_H

#include <QApplication>
#include <QFont>

constexpr int DEFAULT_FONT_SIZE = 12;
constexpr int SMALL_FONT_SIZE = 10;
constexpr int LARGE_FONT_SIZE = 14;

namespace lmms::gui
{

Expand All @@ -40,4 +44,4 @@ inline QFont adjustedToPixelSize(QFont font, int size)

} // namespace lmms::gui

#endif // LMMS_GUI_TEMPLATES_H
#endif // LMMS_FONT_HELPER_H
3 changes: 2 additions & 1 deletion include/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class MainWindow : public QMainWindow
LMMS_EXPORT SubWindow* addWindowedWidget(QWidget *w, Qt::WindowFlags windowFlags = QFlag(0));


void refocus();

///
/// \brief Asks whether changes made to the project are to be saved.
///
Expand Down Expand Up @@ -195,7 +197,6 @@ private slots:
void finalize();

void toggleWindow( QWidget *window, bool forceShow = false );
void refocus();

void exportProject(bool multiExport = false);
void handleSaveResult(QString const & filename, bool songSavedSuccessfully);
Expand Down
Loading

0 comments on commit f677b8c

Please sign in to comment.