Libraryless. Click here for Pure Java version (4764L/27K).
1 | sclass RenderFrequencySample_Sine is RenderFrequencySample { |
2 | public double get(Complex c, double frac) { |
3 | double phi = frac*twoPi(); |
4 | ret c.re() * sin(phi) + c.im() * sin(phi+pi()/2); |
5 | } |
6 | } |
Began life as a copy of #1033263
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033264 |
Snippet name: | RenderFrequencySample_Sine |
Eternal ID of this version: | #1033264/8 |
Text MD5: | 7a37c62e7aa7bff3016f441dfe1ec874 |
Transpilation MD5: | 3bdcc7c5579d83bb78e4456aba899699 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-18 11:19:55 |
Source code size: | 202 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 314 |
Version history: | 7 change(s) |
Referenced in: | [show references] |