Skip to content

Commit

Permalink
add tf1s and tf1snp to filters.lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Smith committed May 28, 2021
1 parent 2329a8e commit 93cb01a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions filters.lib
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,34 @@ with {
a2d = (a0 - a1*c + csq)/d;
};

//-----------------------------`(fi.)tf1s`-------------------------------

This comment has been minimized.

Copy link
@sletz

sletz May 29, 2021

Member

This tf1s name was already used in the library here https://github.com/grame-cncm/faustlibraries/blob/master/filters.lib#L1354, so I guess it is a naming mistake?

This comment has been minimized.

Copy link
@josmithiii

josmithiii May 30, 2021

Collaborator

The name was correct, it just wasn't needed.  I already took out the redundant new one.

This comment has been minimized.

Copy link
@sletz

sletz May 30, 2021

Member

OK, nice!

// First-order special case of tf2s above
//
// #### Usage
//
// ```
// _ : tf1s(b1,b0,a0) : _
// ```
//----------------------------------------------
declare tf1s author "Julius O. Smith III";
declare tf1s copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>";
declare tf1s license "MIT-style STK-4.3 license";
tf1s(b1,b0,a0,w1) = fi.tf2s(b1,b0,0,a0,0,w1); // FIXME: Faust compiler does not fully optimize - does C++?

//-----------------------------`(fi.)tf1snp`-------------------------------
// First-order special case of tf2snp above
//
// #### Usage
//
// ```
// _ : tf1snp(b1,b0,a0) : _
// ```
//----------------------------------------------
declare tf1snp author "Julius O. Smith III";
declare tf1snp copyright "Copyright (C) 2003-2019 by Julius O. Smith III <[email protected]>";
declare tf1snp license "MIT-style STK-4.3 license";
tf1snp(b1,b0,a0,w1) = fi.tf2snp(b1,b0,0,a0,0,w1); // FIXME: Faust compiler does not fully optimize - does C++?

//-----------------------------`(fi.)tf3slf`-------------------------------
// Analogous to tf2s above, but third order, and using the typical
// low-frequency-matching bilinear-transform constant 2/T ("lf" series)
Expand Down

0 comments on commit 93cb01a

Please sign in to comment.