-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from mimium-org/release/0.3.1
release/0.3.1
- Loading branch information
Showing
45 changed files
with
610 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 100, | ||
"contributorsPerLine": 7, | ||
"skipCi": true, | ||
"contributors": [ | ||
{ | ||
"login": "t-sin", | ||
"name": "Shinichi Tanaka", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/4403863?v=4", | ||
"profile": "https://t-sin.github.io", | ||
"contributions": [ | ||
"doc" | ||
] | ||
}, | ||
{ | ||
"login": "syougikakugenn", | ||
"name": "kyo", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/74606612?v=4", | ||
"profile": "http://deepdrilledwell.secret.jp/ddw/", | ||
"contributions": [ | ||
"doc" | ||
] | ||
}, | ||
{ | ||
"login": "baku89", | ||
"name": "Baku 麦", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/2124392?v=4", | ||
"profile": "http://baku89.com", | ||
"contributions": [ | ||
"financial" | ||
] | ||
}, | ||
{ | ||
"login": "yuichkun", | ||
"name": "Yuichi Yogo", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/14039540?v=4", | ||
"profile": "https://github.com/yuichkun", | ||
"contributions": [ | ||
"financial" | ||
] | ||
}, | ||
{ | ||
"login": "nama-gatsuo", | ||
"name": "Ayumu Nagamatsu", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/7838131?v=4", | ||
"profile": "http://ayumu-nagamatsu.com", | ||
"contributions": [ | ||
"financial" | ||
] | ||
}, | ||
{ | ||
"login": "zigen", | ||
"name": "zigen", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/3610296?v=4", | ||
"profile": "https://horol.org", | ||
"contributions": [ | ||
"financial" | ||
] | ||
}, | ||
{ | ||
"login": "hitoshitakeuchi", | ||
"name": "Hitoshi Takeuchi", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/6305267?v=4", | ||
"profile": "http://hitoshitakeuchi.com", | ||
"contributions": [ | ||
"financial" | ||
] | ||
}, | ||
{ | ||
"login": "Inqb8tr-jp", | ||
"name": "Inqb8tr-jp", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/79005925?v=4", | ||
"profile": "https://github.com/Inqb8tr-jp", | ||
"contributions": [ | ||
"financial", | ||
"infra" | ||
] | ||
} | ||
], | ||
"projectName": "mimium", | ||
"projectOwner": "mimium-org", | ||
"repoType": "github", | ||
"repoHost": "https://github.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
fn biquad(x,a1,a2,b0,b1,b2){ | ||
fn Wbiquad(x,a1,a2){ | ||
return x - a1*self -a2*mem(self) | ||
} | ||
W = Wbiquad(x,a1,a2) | ||
W1 = mem(W) | ||
W2 = mem(W1) | ||
return b0*W + b1*W1 + b2*W2 | ||
} | ||
fn getGain(gain){ | ||
return 10 ^(gain/40.0) | ||
} | ||
fn getOmega(fc,fs){ | ||
PI = 3.14159565 | ||
return 2*PI*fc/fs | ||
} | ||
fn getAlpha(omega,q){ | ||
return sin(omega)/(2*q) | ||
} | ||
|
||
fn calcCoeffs(fc,gain,q,fs,paramfn:(float,float,float)->(float,float,float,float,float)){ | ||
A = getGain(gain) | ||
omega = getOmega(fc,fs) | ||
alpha =getAlpha(omega,q) | ||
return paramfn(A,omega,alpha) | ||
} | ||
|
||
fn peakfilter(x,fc,gain,q,fs){ | ||
coeffs = calcCoeffs(fc,gain,q,fs, |A,omega,alpha|{ | ||
a0 = 1.0 + alpha / A | ||
a1 = (-2.0 * cos(omega) )/a0 | ||
a2 = ( 1.0 - alpha / A )/a0 | ||
b0 = ( 1.0 + alpha * A )/a0 | ||
b1 = (-2.0 * cos(omega) )/a0 | ||
b2 = ( 1.0 - alpha * A )/a0 | ||
return (a1,a2,b0,b1,b2) | ||
} ) | ||
a1,a2,b0,b1,b2 = coeffs | ||
return biquad(x,a1,a2,b0,b1,b2) | ||
} | ||
|
||
// fn lowpass(x,fc,gain,q,fs){ | ||
// A = getGain(gain) | ||
// omega = getOmega(fc,fs) | ||
// alpha =getAlpha(omega,q) | ||
|
||
// a0 = 1+alpha | ||
// a1 = -2*cos(omega) /a0 | ||
// a2 = (1-alpha)/a0 | ||
// cosomegatmp = 1-cos(omega) | ||
// b0 = cosomegatmp/(2*a0) | ||
// b1 = b0/2 | ||
// b2 = b1 | ||
// return biquad(x,a1,a2,b0,b1,b2) | ||
// } | ||
|
||
// fn peakfilter(x,fc,gain,q,fs){ | ||
// A = getGain(gain) | ||
// omega = getOmega(fc,fs) | ||
// alpha = getAlpha(omega,q) | ||
// a0 = 1.0 + alpha / A | ||
// a1 = (-2.0 * cos(omega) )/a0 | ||
// a2 = ( 1.0 - alpha / A )/a0 | ||
// b0 = ( 1.0 + alpha * A )/a0 | ||
// b1 = (-2.0 * cos(omega) )/a0 | ||
// b2 = ( 1.0 - alpha * A )/a0 | ||
// return biquad(x,a1,a2,b0,b1,b2) | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.