This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
============================================================================== | |
PluginEditor.cpp | |
============================================================================== | |
*/ | |
#include "PluginProcessor.h" | |
#include "PluginEditor.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String RelativeTime::toString (bool includeDays) const | |
{ | |
String result; | |
result.preallocateBytes (32); | |
if (numSeconds < 0) | |
result << '-'; | |
bool empty = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Stop watch to measure time intervals | |
\code{.cpp} | |
ElapsedTime timer; | |
// do stuff | |
DBG ("Doing stuff took: " << String (timer.elapsed()) << " milliseconds"); | |
timer.pause(); | |
// that doesn't count | |
timer.resume(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChoiceParameterRadioGroup : public Component, | |
private Button::Listener, | |
private AudioProcessorValueTreeState::Listener | |
{ | |
public: | |
enum Orientation | |
{ | |
horizontal, | |
vertical | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
============================================================================== | |
MouseOverChecker.h | |
Created: 13 Aug 2019 1:26:42pm | |
Author: Daniel Walz | |
============================================================================== | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, json | |
if len (sys.argv) < 4: | |
print "Usage: " + sys.argv[0] + " <font.otf> <font_metadata.json> fontname" | |
exit (-1) | |
fontname = sys.argv[3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <JuceHeader.h> | |
class AutoReleasePool : private juce::Timer | |
{ | |
public: | |
using Ptr = juce::ReferenceCountedObjectPtr<juce::ReferenceCountedObject>; | |
AutoReleasePool() | |
{ | |
startTimerHz (1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MainComponent.h" | |
//============================================================================== | |
MainComponent::MainComponent() | |
{ | |
text.append ("Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n", juce::Font (14.0f), juce::Colours::white); | |
text.append ("sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n", juce::Font (20.0f), juce::Colours::white); | |
text.append ("Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi\n", juce::Font (8.0f), juce::Colours::white); | |
text.append ("ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit\n", juce::Font (18.0f), juce::Colours::red); | |
text.append ("in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n", juce::Colours::blue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
\file LomseComponent.h | |
\author Daniel Walz - Foleys Finest Audio (ffAudio) | |
This uses JUCE www.juce.com | |
and lenmus https://github.com/lenmus/lomse | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename T> | |
class MFSafePointer | |
{ | |
public: | |
MFSafePointer() = default; | |
~MFSafePointer() | |
{ | |
reset(); | |
} |
OlderNewer