TracktionEngine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
tracktion_DAWprojectMapping.h File Reference

Classes

class  tracktion::engine::dawproject::IDGenerator
 ID generator for DAWproject XML elements. More...
 
class  tracktion::engine::dawproject::IDRefResolver
 ID reference resolver for parsing DAWproject XML. More...
 

Namespaces

namespace  tracktion
 
namespace  tracktion::engine
 
namespace  tracktion::engine::dawproject
 DAWproject interchange format support.
 
namespace  tracktion::engine::dawproject::xml
 DAWproject XML element and attribute names.
 

Functions

float tracktion::engine::dawproject::velocityToNormalized (int velocity)
 Velocity conversion between tracktion (0-127 int) and DAWproject (0.0-1.0 normalized).
 
int tracktion::engine::dawproject::normalizedToVelocity (float normalized)
 
float tracktion::engine::dawproject::controllerValueToNormalized (int value, int controllerType)
 MIDI controller value conversion.
 
int tracktion::engine::dawproject::normalizedToControllerValue (float normalized, int controllerType)
 
const char * tracktion::engine::dawproject::controllerTypeToExpression (int type)
 Maps tracktion MidiControllerEvent type to DAWproject expression type string.
 
int tracktion::engine::dawproject::expressionToControllerType (const juce::String &expression)
 Maps DAWproject expression type string to tracktion MidiControllerEvent type.
 
double tracktion::engine::dawproject::ticksToBeats (int64_t ticks, int ticksPerQuarterNote=defaultTicksPerQuarterNote)
 
int64_t tracktion::engine::dawproject::beatsToTicks (double beats, int ticksPerQuarterNote=defaultTicksPerQuarterNote)
 
juce::String tracktion::engine::dawproject::colourToDAWprojectString (juce::Colour colour)
 Color conversion between tracktion (juce::Colour) and DAWproject (CSS-style hex string).
 
juce::Colour tracktion::engine::dawproject::dawprojectStringToColour (const juce::String &str)
 
double tracktion::engine::dawproject::gainToDecibels (float gain)
 Volume conversion between linear gain and decibels.
 
float tracktion::engine::dawproject::decibelsToGain (double dB)
 
void tracktion::engine::dawproject::setAttributeIfNotEmpty (juce::XmlElement &element, const char *name, const juce::String &value)
 XML helper functions.
 
void tracktion::engine::dawproject::setAttributeIfValid (juce::XmlElement &element, const char *name, double value)
 
std::unique_ptr< juce::XmlElement > tracktion::engine::dawproject::createXmlElement (const char *tagName)
 
juce::XmlElement * tracktion::engine::dawproject::addChildElement (juce::XmlElement &parent, const char *tagName)
 
double tracktion::engine::dawproject::parseDouble (const juce::String &str, double defaultValue=0.0)
 Parses a double from a string, handling potential formatting differences.
 
int tracktion::engine::dawproject::parseInt (const juce::String &str, int defaultValue=0)
 Parses an int from a string.
 
bool tracktion::engine::dawproject::parseBool (const juce::String &str, bool defaultValue=false)
 Parses a bool from a string or attribute value.