Subversion Repositories DIN Is Noise

Rev

Rev 2097 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
964 jag 1
/*
2
* custom_periodic.cc
2302 jag 3
* DIN Is Noise is copyright (c) 2006-2025 Jagannathan Sampath
1713 jag 4
* DIN Is Noise is released under GNU Public License 2.0
1479 jag 5
* For more information, please visit https://dinisnoise.org/
964 jag 6
*/
7
 
8
#include "custom_periodic.h"
9
#include "console.h"
10
 
1539 jag 11
custom_periodic::custom_periodic (const std::string& name, float _div) : fname (name), crv (fname) {
964 jag 12
  sol (&crv);
1539 jag 13
  div = _div;
964 jag 14
}
15
 
16
custom_periodic::~custom_periodic () {
17
  crv.save (fname);
18
}
19
 
20
float custom_periodic::operator() (float a, float ea) {
1539 jag 21
  return sol (a / div);
964 jag 22
}
23