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
/** | |
* Stylish Gradient Buttons | |
*/ | |
/** | |
* Designed and coded by Anatoli Nicolae | |
* http://dribbble.com/anatolinicolae | |
*/ | |
body { | |
background: #f5f5f5; |
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
<!-- Example #1 - no styling --> | |
Made with ❤ in Switzerland | |
Made with ♥ in Switzerland | |
Made with ♡ in Switzerland | |
Made with ❤️ in Switzerland | |
Made with ♥️ in Switzerland | |
<!-- Example #2 - inline-styled ❤ --> | |
Made with <span style="color: #e25555;">♥</span> in Switzerland | |
Made with <span style="color: #e25555;">♥</span> in Switzerland |
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 MyAudioCallback : public AudioIODeviceCallback | |
{ | |
public: | |
MyAudioCallback() {} | |
void audioDeviceIOCallback(const float **inputChannelData, int numInputChannels, | |
float **outputChannelData, int numOutputChannels, int numSamples) override | |
{ | |
for (int i = 0; i < numSamples; ++i) | |
{ | |
float sample = jmap(m_rnd.nextFloat(), 0.0f, 1.0f, -0.1f, 0.1f); |
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 MyAudioSource : public AudioSource | |
{ | |
public: | |
MyAudioSource() {} | |
void prepareToPlay(int samplesPerBlockExpected, double sampleRate) override | |
{} | |
void releaseResources() override | |
{} | |
void getNextAudioBlock(const AudioSourceChannelInfo & bufferToFill) override | |
{ |
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
// Requires the Juce audio_utils module for AudioProcessorPlayer | |
class MyAudioProcessor : public AudioProcessor | |
{ | |
public: | |
MyAudioProcessor() {} | |
const String getName() const override { return "MyAudioProcessor"; } | |
void prepareToPlay(double sampleRate, int maximumExpectedSamplesPerBlock) override {} | |
void releaseResources() override {} | |
void processBlock(AudioBuffer<float>& buffer, MidiBuffer & midiMessages) override |