Skip to content

Commit 83e5264

Browse files
committed
Formatting: Remove double-dots from comments and other strings
1 parent 82dc6d1 commit 83e5264

File tree

209 files changed

+508
-509
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+508
-509
lines changed

extras/BinaryBuilder/Source/Main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int main (int argc, char* argv[])
199199
{
200200
const File file (files[i]);
201201

202-
// (avoid source control files and hidden files..)
202+
// avoid source control files and hidden files
203203
if (! isHiddenFile (file, sourceDirectory))
204204
{
205205
if (file.getParentDirectory() != sourceDirectory)

modules/juce_audio_basics/buffers/juce_AudioDataConverters.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,12 @@ class AudioConversionTests final : public UnitTest
508508
unitTest.expect (! clippingFailed);
509509
}
510510

511-
// convert data from the source to dest format..
511+
// convert data from the source to dest format...
512512
std::unique_ptr<AudioData::Converter> conv (new AudioData::ConverterInstance<AudioData::Pointer<F1, E1, AudioData::NonInterleaved, AudioData::Const>,
513513
AudioData::Pointer<F2, E2, AudioData::NonInterleaved, AudioData::NonConst>>());
514514
conv->convertSamples (inPlace ? reversed : converted, original, numSamples);
515515

516-
// ..and back again..
516+
// ...and back again
517517
conv.reset (new AudioData::ConverterInstance<AudioData::Pointer<F2, E2, AudioData::NonInterleaved, AudioData::Const>,
518518
AudioData::Pointer<F1, E1, AudioData::NonInterleaved, AudioData::NonConst>>());
519519
if (! inPlace)

modules/juce_audio_basics/buffers/juce_AudioDataConverters.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class JUCE_API AudioData
7474
// These types can be used as the Constness template parameter for the AudioData::Pointer class.
7575

7676
class NonConst; /**< Used as a template parameter for AudioData::Pointer. Indicates that the pointer can be used for non-const data. */
77-
class Const; /**< Used as a template parameter for AudioData::Pointer. Indicates that the samples can only be used for const data.. */
77+
class Const; /**< Used as a template parameter for AudioData::Pointer. Indicates that the samples can only be used for const data. */
7878

7979

8080
//==============================================================================
@@ -342,17 +342,17 @@ class JUCE_API AudioData
342342
This object can be used to read and write from blocks of encoded audio samples. To create one, you specify
343343
the audio format as a series of template parameters, e.g.
344344
@code
345-
// this creates a pointer for reading from a const array of 16-bit little-endian packed samples.
345+
// this creates a pointer for reading from a const array of 16-bit little-endian packed samples
346346
AudioData::Pointer <AudioData::Int16,
347347
AudioData::LittleEndian,
348348
AudioData::NonInterleaved,
349349
AudioData::Const> pointer (someRawAudioData);
350350
351-
// These methods read the sample that is being pointed to
351+
// these methods read the sample that is being pointed to
352352
float firstSampleAsFloat = pointer.getAsFloat();
353353
int32 firstSampleAsInt = pointer.getAsInt32();
354-
++pointer; // moves the pointer to the next sample.
355-
pointer += 3; // skips the next 3 samples.
354+
++pointer; // moves the pointer to the next sample
355+
pointer += 3; // skips the next 3 samples
356356
@endcode
357357
358358
The convertSamples() method lets you copy a range of samples from one format to another, automatically
@@ -488,7 +488,7 @@ class JUCE_API AudioData
488488
++source;
489489
}
490490
}
491-
else // copy backwards if we're increasing the sample width..
491+
else // copy backwards if we're increasing the sample width
492492
{
493493
dest += numSamples;
494494
source += numSamples;

modules/juce_audio_basics/midi/juce_MidiMessage.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ MidiMessage::MidiMessage (const void* const d, const int dataSize, const double
145145
: timeStamp (t), size (dataSize)
146146
{
147147
jassert (dataSize > 0);
148-
// this checks that the length matches the data..
148+
// this checks that the length matches the data
149149
jassert (dataSize > 3 || *(uint8*)d >= 0xf0 || getMessageLengthFromFirstByte (*(uint8*)d) == size);
150150

151151
memcpy (allocateSpace (dataSize), d, (size_t) dataSize);
@@ -156,7 +156,7 @@ MidiMessage::MidiMessage (const int byte1, const double t) noexcept
156156
{
157157
packedData.asBytes[0] = (uint8) byte1;
158158

159-
// check that the length matches the data..
159+
// check that the length matches the data
160160
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 1);
161161
}
162162

@@ -166,7 +166,7 @@ MidiMessage::MidiMessage (const int byte1, const int byte2, const double t) noex
166166
packedData.asBytes[0] = (uint8) byte1;
167167
packedData.asBytes[1] = (uint8) byte2;
168168

169-
// check that the length matches the data..
169+
// check that the length matches the data
170170
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 2);
171171
}
172172

@@ -177,7 +177,7 @@ MidiMessage::MidiMessage (const int byte1, const int byte2, const int byte3, con
177177
packedData.asBytes[1] = (uint8) byte2;
178178
packedData.asBytes[2] = (uint8) byte3;
179179

180-
// check that the length matches the data..
180+
// check that the length matches the data
181181
jassert (byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == 3);
182182
}
183183

modules/juce_audio_basics/midi/juce_MidiMessage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class JUCE_API MidiMessage
7878
template <typename... Data>
7979
MidiMessage (int byte1, int byte2, int byte3, Data... otherBytes) : size (3 + sizeof... (otherBytes))
8080
{
81-
// this checks that the length matches the data..
81+
// this checks that the length matches the data
8282
jassert (size > 3 || byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == size);
8383

8484
const uint8 data[] = { (uint8) byte1, (uint8) byte2, (uint8) byte3, static_cast<uint8> (otherBytes)... };

modules/juce_audio_basics/mpe/juce_MPEInstrument.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ class MPEInstrumentTests final : public UnitTest
991991
expectNote (test.getNote (3, 2), 100, 0, 8192, 64, MPENote::keyDown);
992992
}
993993
{
994-
// pathological case: second note-on for same note should retrigger it.
994+
// pathological case: second note-on for same note should retrigger it
995995
UnitTestInstrument test;
996996
test.setZoneLayout (testLayout);
997997
test.noteOn (3, 0, MPEValue::from7BitInt (100));
@@ -1037,21 +1037,21 @@ class MPEInstrumentTests final : public UnitTest
10371037
test.noteOn (3, 60, MPEValue::from7BitInt (100)); // note in lower zone
10381038
test.noteOn (10, 60, MPEValue::from7BitInt (100)); // note in upper zone
10391039

1040-
// sustain pedal on per-note channel shouldn't do anything.
1040+
// sustain pedal on per-note channel shouldn't do anything
10411041
test.sustainPedal (3, true);
10421042
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDown);
10431043

10441044
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDown);
10451045
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
10461046
expectEquals (test.noteKeyStateChangedCallCounter, 0);
10471047

1048-
// sustain pedal on non-zone channel shouldn't do anything either.
1048+
// sustain pedal on non-zone channel shouldn't do anything either
10491049
test.sustainPedal (7, true);
10501050
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDown);
10511051
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
10521052
expectEquals (test.noteKeyStateChangedCallCounter, 0);
10531053

1054-
// sustain pedal on master channel should sustain notes on _that_ zone.
1054+
// sustain pedal on master channel should sustain notes on _that_ zone
10551055
test.sustainPedal (1, true);
10561056
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDownAndSustained);
10571057
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
@@ -1100,19 +1100,19 @@ class MPEInstrumentTests final : public UnitTest
11001100
test.noteOn (3, 60, MPEValue::from7BitInt (100)); // note in lower zone
11011101
test.noteOn (10, 60, MPEValue::from7BitInt (100)); // note in upper zone
11021102

1103-
// sostenuto pedal on per-note channel shouldn't do anything.
1103+
// sostenuto pedal on per-note channel shouldn't do anything
11041104
test.sostenutoPedal (3, true);
11051105
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDown);
11061106
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
11071107
expectEquals (test.noteKeyStateChangedCallCounter, 0);
11081108

1109-
// sostenuto pedal on non-zone channel shouldn't do anything either.
1109+
// sostenuto pedal on non-zone channel shouldn't do anything either
11101110
test.sostenutoPedal (9, true);
11111111
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDown);
11121112
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
11131113
expectEquals (test.noteKeyStateChangedCallCounter, 0);
11141114

1115-
// sostenuto pedal on master channel should sustain notes on *that* zone.
1115+
// sostenuto pedal on master channel should sustain notes on *that* zone
11161116
test.sostenutoPedal (1, true);
11171117
expectNote (test.getNote (3, 60), 100, 0, 8192, 64, MPENote::keyDownAndSustained);
11181118
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
@@ -1195,7 +1195,7 @@ class MPEInstrumentTests final : public UnitTest
11951195
MPEValue::centreValue(), MPEValue::centreValue());
11961196

11971197
{
1198-
// case 1: the note to exclude is not the most recent one.
1198+
// case 1: the note to exclude is not the most recent one
11991199

12001200
MPEInstrument test;
12011201
test.setZoneLayout (testLayout);
@@ -1210,7 +1210,7 @@ class MPEInstrumentTests final : public UnitTest
12101210
expect (test.getMostRecentNoteOtherThan (testNote).initialNote == 61);
12111211
}
12121212
{
1213-
// case 2: the note to exclude is the most recent one.
1213+
// case 2: the note to exclude is the most recent one
12141214

12151215
MPEInstrument test;
12161216
test.setZoneLayout (testLayout);
@@ -1373,7 +1373,7 @@ class MPEInstrumentTests final : public UnitTest
13731373
expectNote (test.getNote (10, 60), 100, 0, 8192, 64, MPENote::keyDown);
13741374
expectEquals (test.notePitchbendChangedCallCounter, 3);
13751375

1376-
// applying pitchbend on an unrelated channel should do nothing.
1376+
// applying pitchbend on an unrelated channel should do nothing
13771377
test.pitchbend (8, MPEValue::from14BitInt (3333));
13781378
expectNote (test.getNote (3, 60), 100, 0, 1111, 64, MPENote::keyDown);
13791379
expectNote (test.getNote (4, 60), 100, 0, 8192, 64, MPENote::keyDown);
@@ -1442,7 +1442,7 @@ class MPEInstrumentTests final : public UnitTest
14421442
// - release the note
14431443
// - press same note again without sending a pitchbend or timbre message before the note-on
14441444
// - the note should be turned on with a default value for pitchbend/timbre,
1445-
// and *not* the last value received on channel.
1445+
// and *not* the last value received on channel
14461446

14471447
test.noteOn (3, 60, MPEValue::from7BitInt (100));
14481448
test.pitchbend (3, MPEValue::from14BitInt (5555));
@@ -1938,15 +1938,15 @@ class MPEInstrumentTests final : public UnitTest
19381938
test.noteOn (15, 63, MPEValue::from7BitInt (100));
19391939
expectEquals (test.getNumPlayingNotes(), 4);
19401940

1941-
// on note channel: ignore.
1941+
// on note channel: ignore
19421942
test.processNextMidiEvent (MidiMessage::allControllersOff (3));
19431943
expectEquals (test.getNumPlayingNotes(), 4);
19441944

1945-
// on unused channel: ignore.
1945+
// on unused channel: ignore
19461946
test.processNextMidiEvent (MidiMessage::allControllersOff (9));
19471947
expectEquals (test.getNumPlayingNotes(), 4);
19481948

1949-
// on master channel: release notes in that zone only.
1949+
// on master channel: release notes in that zone only
19501950
test.processNextMidiEvent (MidiMessage::allControllersOff (1));
19511951
expectEquals (test.getNumPlayingNotes(), 2);
19521952
test.processNextMidiEvent (MidiMessage::allControllersOff (16));
@@ -2136,7 +2136,7 @@ class MPEInstrumentTests final : public UnitTest
21362136
}
21372137
}
21382138
{
2139-
// custom pitchbend range in legacy mode.
2139+
// custom pitchbend range in legacy mode
21402140
UnitTestInstrument test;
21412141
test.enableLegacyMode (11);
21422142

@@ -2145,7 +2145,7 @@ class MPEInstrumentTests final : public UnitTest
21452145
expectDoubleWithinRelativeError (test.getMostRecentNote (1).totalPitchbendInSemitones, -5.5, 0.01);
21462146
}
21472147
{
2148-
// sustain pedal should be per channel in legacy mode.
2148+
// sustain pedal should be per channel in legacy mode
21492149
UnitTestInstrument test;
21502150
test.enableLegacyMode();
21512151

@@ -2168,7 +2168,7 @@ class MPEInstrumentTests final : public UnitTest
21682168

21692169
}
21702170
{
2171-
// sostenuto pedal should be per channel in legacy mode.
2171+
// sostenuto pedal should be per channel in legacy mode
21722172
UnitTestInstrument test;
21732173
test.enableLegacyMode();
21742174

modules/juce_audio_basics/mpe/juce_MPESynthesiser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ MPESynthesiserVoice* MPESynthesiser::findVoiceToSteal (MPENote noteToStealVoiceF
211211
usableVoicesToStealArray.add (voice);
212212

213213
// NB: Using a functor rather than a lambda here due to scare-stories about
214-
// compilers generating code containing heap allocations..
214+
// compilers generating code containing heap allocations.
215215
struct Sorter
216216
{
217217
bool operator() (const MPESynthesiserVoice* a, const MPESynthesiserVoice* b) const noexcept { return a->noteOnTime < b->noteOnTime; }
@@ -334,7 +334,7 @@ void MPESynthesiser::turnOffAllVoices (bool allowTailOff)
334334
}
335335
}
336336

337-
// finally make sure the MPE Instrument also doesn't have any notes anymore.
337+
// finally make sure the MPE Instrument also doesn't have any notes anymore
338338
instrument.releaseAllNotes();
339339
}
340340

modules/juce_audio_basics/sources/juce_BufferingAudioSource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ BufferingAudioSource::BufferingAudioSource (PositionableAudioSource* s,
5050
jassert (source != nullptr);
5151

5252
jassert (numberOfSamplesToBuffer > 1024); // not much point using this class if you're
53-
// not using a larger buffer..
53+
// not using a larger buffer
5454
}
5555

5656
BufferingAudioSource::~BufferingAudioSource()

modules/juce_audio_basics/sources/juce_ResamplingAudioSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void ResamplingAudioSource::getNextAudioBlock (const AudioSourceChannelInfo& inf
134134

135135
if (localRatio > 1.0001)
136136
{
137-
// for down-sampling, pre-apply the filter..
137+
// for down-sampling, pre-apply the filter
138138

139139
for (int i = channelsToProcess; --i >= 0;)
140140
applyFilter (buffer.getWritePointer (i, endOfBufferPos), numToDo, filterStates[i]);
@@ -178,7 +178,7 @@ void ResamplingAudioSource::getNextAudioBlock (const AudioSourceChannelInfo& inf
178178

179179
if (localRatio < 0.9999)
180180
{
181-
// for up-sampling, apply the filter after transposing..
181+
// for up-sampling, apply the filter after transposing
182182
for (int i = channelsToProcess; --i >= 0;)
183183
applyFilter (info.buffer->getWritePointer (i, info.startSample), info.numSamples, filterStates[i]);
184184
}

modules/juce_audio_basics/synthesisers/juce_Synthesiser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ SynthesiserVoice* Synthesiser::findVoiceToSteal (SynthesiserSound* soundToPlay,
553553
usableVoicesToStealArray.add (voice);
554554

555555
// NB: Using a functor rather than a lambda here due to scare-stories about
556-
// compilers generating code containing heap allocations..
556+
// compilers generating code containing heap allocations.
557557
struct Sorter
558558
{
559559
bool operator() (const SynthesiserVoice* a, const SynthesiserVoice* b) const noexcept { return a->wasStartedBefore (*b); }
@@ -578,7 +578,7 @@ SynthesiserVoice* Synthesiser::findVoiceToSteal (SynthesiserSound* soundToPlay,
578578
if (top == low)
579579
top = nullptr;
580580

581-
// The oldest note that's playing with the target pitch is ideal..
581+
// The oldest note that's playing with the target pitch is ideal.
582582
for (auto* voice : usableVoicesToStealArray)
583583
if (voice->getCurrentlyPlayingNote() == midiNoteNumber)
584584
return voice;

0 commit comments

Comments
 (0)