Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
VcvLightBase.cpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/vcvrack/VcvLightBase.h"
#include "erb/vcvrack/VcvModule.h"
#include <rack.hpp>
namespace erb
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : ctor
==============================================================================
*/
VcvLightBase::VcvLightBase (VcvModule & module)
{
module.add (*this);
}
/*
==============================================================================
Name : index
==============================================================================
*/
size_t VcvLightBase::index () const
{
return _index;
}
/*
==============================================================================
Name : set_norm_val
==============================================================================
*/
void VcvLightBase::set_norm_val (float norm_val)
{
_light_ptr->setBrightness (norm_val);
}
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : impl_bind
==============================================================================
*/
void VcvLightBase::impl_bind (size_t index, rack::engine::Light & light)
{
_index = index;
_light_ptr = &light;
}
/*
==============================================================================
Name : impl_notify_audio_buffer_start
==============================================================================
*/
void VcvLightBase::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.