Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1033264 // RenderFrequencySample_Sine

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4764L/27K).

sclass RenderFrequencySample_Sine is RenderFrequencySample {
  public double get(Complex c, double frac) {
    double phi = frac*twoPi();
    ret c.re() * sin(phi) + c.im() * sin(phi+pi()/2);
  }
}

Author comment

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: 191 / 313
Version history: 7 change(s)
Referenced in: [show references]