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

5
LINES

< > BotCompany Repo | #1033249 // cos_squareWave - like cosine but square wave-y [dev.]

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

Libraryless. Click here for Pure Java version (41L/1K).

static double cos_squareWave(double phi) {
  /*double phase = frac(phi/(pi()*2));
  ret phase < .5 ? 1 : -1;*/
  todo();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033249
Snippet name: cos_squareWave - like cosine but square wave-y [dev.]
Eternal ID of this version: #1033249/3
Text MD5: a5f92e37167c25c83915aa6bac4e1f3a
Transpilation MD5: ec833950aca1fea643412d23afe39102
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-17 22:02:34
Source code size: 126 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 71 / 104
Version history: 2 change(s)
Referenced in: [show references]