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