Skip to content

File port.h

File List > DaisySP > DaisySP-LGPL > Source > Utility > port.h

Go to the documentation of this file

Source Code

/*
Copyright (c) 2023 Electrosmith, Corp, Robbin Whittle, John ffitch, Paul Batchelor

Use of this source code is governed by the LGPL V2.1
license that can be found in the LICENSE file or at
https://opensource.org/license/lgpl-2-1/
*/

#pragma once
#ifndef DSY_PORT_H
#define DSY_PORT_H
#ifdef __cplusplus

namespace daisysp
{
class Port
{
  public:
    Port() {}
    ~Port() {}
    void Init(float sample_rate, float htime);

    float Process(float in);


    inline void SetHtime(float htime) { htime_ = htime; }
    inline float GetHtime() { return htime_; }

  private:
    float htime_;
    float c1_, c2_, yt1_, prvhtim_;
    float sample_rate_, onedsr_;
};
} // namespace daisysp
#endif
#endif