mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add compost auto_pan, vocal_cancelled
This commit is contained in:
parent
e588c4925a
commit
b7cf29d767
3 changed files with 213 additions and 0 deletions
53
sprout/compost/effects/vocal_cancelled.hpp
Normal file
53
sprout/compost/effects/vocal_cancelled.hpp
Normal file
|
@ -0,0 +1,53 @@
|
|||
#ifndef SPROUT_COMPOST_EFFECTS_VOCAL_CANCELLED_HPP
|
||||
#define SPROUT_COMPOST_EFFECTS_VOCAL_CANCELLED_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/utility/lvalue_forward.hpp>
|
||||
#include <sprout/functional/minus.hpp>
|
||||
#include <sprout/range/adaptor/transformed.hpp>
|
||||
#include <sprout/compost/formats/left_channel.hpp>
|
||||
#include <sprout/compost/formats/right_channel.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace compost {
|
||||
namespace effects {
|
||||
//
|
||||
// vocal_cancelled_forwarder
|
||||
//
|
||||
class vocal_cancelled_forwarder {};
|
||||
|
||||
//
|
||||
// vocal_cancelled
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::compost::effects::vocal_cancelled_forwarder vocal_cancelled{};
|
||||
} // anonymous-namespace
|
||||
|
||||
//
|
||||
// operator|
|
||||
//
|
||||
template<typename Range>
|
||||
inline SPROUT_CONSTEXPR auto
|
||||
operator|(Range&& lhs, sprout::compost::effects::vocal_cancelled_forwarder const& rhs)
|
||||
-> decltype(
|
||||
sprout::lvalue_forward<Range>(lhs) | sprout::compost::formats::left_channel
|
||||
| sprout::adaptors::transformed(
|
||||
sprout::lvalue_forward<Range>(lhs) | sprout::compost::formats::right_channel,
|
||||
sprout::minus<>()
|
||||
)
|
||||
)
|
||||
{
|
||||
return sprout::lvalue_forward<Range>(lhs) | sprout::compost::formats::left_channel
|
||||
| sprout::adaptors::transformed(
|
||||
sprout::lvalue_forward<Range>(lhs) | sprout::compost::formats::right_channel,
|
||||
sprout::minus<>()
|
||||
)
|
||||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::vocal_cancelled;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_EFFECTS_VOCAL_CANCELLED_HPP
|
Loading…
Add table
Add a link
Reference in a new issue