mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-10-05 13:00:00 +00:00
add adaptor piped, taken, dropped, window, offset, adapted_xxx
This commit is contained in:
parent
5c9a8153de
commit
cc4ade67fd
47 changed files with 1349 additions and 76 deletions
|
@ -15,7 +15,5 @@
|
|||
#include <sprout/compost/effects/chorus.hpp>
|
||||
#include <sprout/compost/effects/noise_gated.hpp>
|
||||
#include <sprout/compost/effects/superposed.hpp>
|
||||
#include <sprout/compost/effects/jointed.hpp>
|
||||
#include <sprout/compost/effects/copied.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_EFFECTS_HPP
|
||||
|
|
|
@ -65,6 +65,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::changed_volume;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -150,6 +150,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::chorus;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -79,6 +79,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::clipped;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -120,6 +120,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::compressed;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#ifndef SPROUT_COMPOST_EFFECTS_COPIED_HPP
|
||||
#define SPROUT_COMPOST_EFFECTS_COPIED_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/adaptor/copied.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace compost {
|
||||
namespace effects {
|
||||
//
|
||||
// copied
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::copied_forwarder copied{};
|
||||
} // anonymous-namespace
|
||||
} // namespace effects
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_EFFECTS_COPIED_HPP
|
|
@ -72,6 +72,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::distorted;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -71,6 +71,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::fuzzed;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
#ifndef SPROUT_COMPOST_EFFECTS_JOINTED_HPP
|
||||
#define SPROUT_COMPOST_EFFECTS_JOINTED_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/adaptor/jointed.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace compost {
|
||||
namespace effects {
|
||||
//
|
||||
// jointed
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::jointed_forwarder jointed{};
|
||||
} // anonymous-namespace
|
||||
} // namespace effects
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_EFFECTS_JOINTED_HPP
|
|
@ -110,6 +110,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::noise_gated;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -100,6 +100,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::overdriven;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -60,6 +60,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::rectified;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -143,6 +143,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::reverbed;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -71,6 +71,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::superposed;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -111,6 +111,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::tremolo;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -149,6 +149,8 @@ namespace sprout {
|
|||
;
|
||||
}
|
||||
} // namespace effects
|
||||
|
||||
using sprout::compost::effects::vibrato;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -92,6 +92,10 @@ namespace sprout {
|
|||
SPROUT_STATIC_CONSTEXPR sprout::compost::formats::as_pcm_wave_forwarder<std::int16_t> as_pcm_wave16{};
|
||||
} // anonymous-namespace
|
||||
} // namespace formats
|
||||
|
||||
using sprout::compost::formats::as_pcm_wave;
|
||||
using sprout::compost::formats::as_pcm_wave8;
|
||||
using sprout::compost::formats::as_pcm_wave16;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
8
sprout/compost/ranges.hpp
Normal file
8
sprout/compost/ranges.hpp
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef SPROUT_COMPOST_RANGES_HPP
|
||||
#define SPROUT_COMPOST_RANGES_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/compost/ranges/jointed.hpp>
|
||||
#include <sprout/compost/ranges/copied.hpp>
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_RANGES_HPP
|
20
sprout/compost/ranges/copied.hpp
Normal file
20
sprout/compost/ranges/copied.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef SPROUT_COMPOST_RANGES_COPIED_HPP
|
||||
#define SPROUT_COMPOST_RANGES_COPIED_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/adaptor/copied.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace compost {
|
||||
namespace ranges {
|
||||
//
|
||||
// copied
|
||||
//
|
||||
using sprout::adaptors::copied;
|
||||
} // namespace ranges
|
||||
|
||||
using sprout::compost::ranges::copied;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_RANGES_COPIED_HPP
|
20
sprout/compost/ranges/jointed.hpp
Normal file
20
sprout/compost/ranges/jointed.hpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef SPROUT_COMPOST_RANGES_JOINTED_HPP
|
||||
#define SPROUT_COMPOST_RANGES_JOINTED_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/range/adaptor/jointed.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace compost {
|
||||
namespace ranges {
|
||||
//
|
||||
// jointed
|
||||
//
|
||||
using sprout::adaptors::jointed;
|
||||
} // namespace ranges
|
||||
|
||||
using sprout::compost::ranges::jointed;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_COMPOST_RANGES_JOINTED_HPP
|
|
@ -32,9 +32,11 @@ namespace sprout {
|
|||
// blanked
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked{};
|
||||
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked{};
|
||||
} // anonymous-namespace
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::blanked;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ namespace sprout {
|
|||
//
|
||||
// sawtooth_wave
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::sawtooth_wave_forwarder sawtooth_wave{};
|
||||
} // anonymous-namespace
|
||||
using sprout::adaptors::sawtooth_wave;
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::sawtooth_wave;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ namespace sprout {
|
|||
//
|
||||
// sinusoidal
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::sinusoidal_forwarder sinusoidal{};
|
||||
} // anonymous-namespace
|
||||
using sprout::adaptors::sinusoidal;
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::sinusoidal;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ namespace sprout {
|
|||
//
|
||||
// square_wave
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::square_wave_forwarder square_wave{};
|
||||
} // anonymous-namespace
|
||||
using sprout::adaptors::square_wave;
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::square_wave;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ namespace sprout {
|
|||
//
|
||||
// triangle_wave
|
||||
//
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR sprout::adaptors::triangle_wave_forwarder triangle_wave{};
|
||||
} // anonymous-namespace
|
||||
using sprout::adaptors::triangle_wave;
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::triangle_wave;
|
||||
} // namespace compost
|
||||
} // namespace sprout
|
||||
|
||||
|
|
|
@ -146,6 +146,8 @@ namespace sprout {
|
|||
);
|
||||
}
|
||||
} // namespace waves
|
||||
|
||||
using sprout::compost::waves::white_noise;
|
||||
} // namespace compost
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue