1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Formatting

This commit is contained in:
Tom Poole 2023-09-29 16:41:53 +01:00
parent ff0cb4ad5b
commit 4153d59e39
279 changed files with 1281 additions and 1281 deletions

View file

@ -1103,7 +1103,7 @@ public:
const int x = timeToViewScaling.getXForTime (tempoConverter.getTimeForQuarter (quarterPos));
const auto barSignature = barSignaturesConverter.getBarSignatureForQuarter (quarterPos);
const int lineWidth = (approximatelyEqual (quarterPos, barSignature.position)) ? heavyLineWidth : lightLineWidth;
const int beatsSinceBarStart = roundToInt( barSignaturesConverter.getBeatDistanceFromBarStartForQuarter (quarterPos));
const int beatsSinceBarStart = roundToInt (barSignaturesConverter.getBeatDistanceFromBarStartForQuarter (quarterPos));
const int lineHeight = (beatsSinceBarStart == 0) ? rulerHeight : rulerHeight / 2;
rects.addWithoutMerging (Rectangle<int> (x - lineWidth / 2, 2 * rulerHeight - lineHeight, lineWidth, lineHeight));
}
@ -2196,7 +2196,7 @@ private:
void addTrackViews (ARARegionSequence* regionSequence)
{
const auto insertIntoMap = [](auto& map, auto key, auto value) -> auto&
const auto insertIntoMap = [] (auto& map, auto key, auto value) -> auto&
{
auto it = map.insert ({ std::move (key), std::move (value) });
return *(it.first->second);

View file

@ -111,7 +111,7 @@ public:
ignoreUnused (style, minSliderPos, maxSliderPos);
auto r = Rectangle<int> (x + haloRadius, y, width - (haloRadius * 2), height);
auto backgroundBar = r.withSizeKeepingCentre(r.getWidth(), 2);
auto backgroundBar = r.withSizeKeepingCentre (r.getWidth(), 2);
sliderPos = (sliderPos - minSliderPos) / static_cast<float> (width);
@ -312,7 +312,7 @@ private:
class AUv3SynthProcessor final : public AudioProcessor
{
public:
AUv3SynthProcessor ()
AUv3SynthProcessor()
: AudioProcessor (BusesProperties().withOutput ("Output", AudioChannelSet::stereo(), true)),
currentRecording (1, 1), currentProgram (0)
{

View file

@ -2358,7 +2358,7 @@ public:
// These accessors are just for an 'overview' and won't give the exact
// state of the audio engine at a particular point in time.
// If you call getNumVoices(), get the result '10', and then call
// getPlaybackPosiiton(9), there's a chance the audio engine will have
// getPlaybackPosiiton (9), there's a chance the audio engine will have
// been updated to remove some voices in the meantime, so the returned
// value won't correspond to an existing voice.
int getNumVoices() const { return synthesiser.getNumVoices(); }