shithub: leaf

ref: adff8a84ea9ea74abc7f375c02fd3e37c955250b
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