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

Namespaces

namespace  graph
 

Functions

juce::AudioBuffer< float > graph::toAudioBuffer (choc::buffer::ChannelArrayView< float > view)
 Creates a juce::AudioBuffer from a choc::buffer::BufferView.
 
template<typename SampleType >
choc::buffer::BufferView< SampleType, choc::buffer::SeparateChannelLayout > graph::toBufferView (juce::AudioBuffer< SampleType > &buffer)
 Converts a juce::AudioBuffer<SampleType> to a choc::buffer::BufferView.
 
choc::buffer::FrameRange graph::createFrameRange (std::integral auto start, std::integral auto end)
 Creates a FrameRange from any integral type.
 
juce::MidiMessage graph::toMidiMessage (const choc::midi::Sequence::Event &e)
 Converts a choc::midi event to a juce::MidiMessage.
 
template<typename BufferViewType , typename SampleType , typename SmoothingType >
void graph::multiplyBy (BufferViewType &view, juce::SmoothedValue< SampleType, SmoothingType > &value) noexcept
 Mutiplies a choc::buffer::BufferView by a juce::SmoothedValue.
 
template<typename BufferType , typename GainType >
void graph::applyGainRamp (BufferType &&buffer, GainType startGain, GainType endGain) noexcept
 Applies a gain ram to a choc::buffer::BufferView.
 
choc::buffer::FrameRange graph::frameRangeWithStartAndLength (choc::buffer::FrameCount start, choc::buffer::FrameCount length)
 Returns a FrameRange with a start and length.
 
choc::buffer::ChannelRange graph::channelRangeWithStartAndLength (choc::buffer::ChannelCount start, choc::buffer::ChannelCount length)
 Returns a ChannelRange with a start and length.
 
template<typename Buffer >
void graph::sanitise (Buffer &buffer)
 
template<typename SampleType , template< typename > typename LayoutType>
void graph::sanityCheckView (const choc::buffer::BufferView< SampleType, LayoutType > &view)
 Checks that the channels have valid pointers if they have a non-zero number of frames.