Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
VcvOutputBase.cpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/vcvrack/VcvOutputBase.h"
#include "erb/vcvrack/VcvModule.h"
#include <rack.hpp>
namespace erb
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : ctor
==============================================================================
*/
VcvOutputBase::VcvOutputBase (VcvModule & module)
{
module.add (*this);
}
/*
==============================================================================
Name : index
==============================================================================
*/
size_t VcvOutputBase::index () const
{
return _index;
}
/*
==============================================================================
Name : set_norm_val
==============================================================================
*/
void VcvOutputBase::set_norm_val (float norm_val)
{
_output_ptr->setVoltage (norm_val * 5.f);
}
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : impl_bind
==============================================================================
*/
void VcvOutputBase::impl_bind (size_t index, rack::engine::Output & output)
{
_index = index;
_output_ptr = &output;
}
/*
==============================================================================
Name : impl_notify_audio_buffer_start
==============================================================================
*/
void VcvOutputBase::impl_notify_audio_buffer_start ()
{
// nothing
}
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
933b124a7This file is pinned to the selected release. Download the original to open it in your design tool.