shithub: leaf

ref: fe27383f5704ddc2d8ed4fad975fe937bca129c1
dir: /TestPlugin/Source/Globals.h/

View raw version
/*
  ==============================================================================

    Globals.h
    Created: 17 Jan 2017 12:16:12pm
    Author:  Michael R Mulshine

  ==============================================================================
*/

#ifndef GLOBALS_H_INCLUDED
#define GLOBALS_H_INCLUDED

#include "../JuceLibraryCode/JuceHeader.h"

#define TEST 1


String floatArrayToString(Array<float> arr)
{
    String s = "";
    for (auto key : arr)
    {
        s.append(String(key), 6);
        s.append(" ", 1);
    }
    return s;
}

String intArrayToString(Array<int> arr)
{
    String s = "";
    for (auto key : arr)
    {
        s.append(String(key), 6);
        s.append(" ", 1);
    }
    return s;
}




#endif  // GLOBALS_H_INCLUDED