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

3
LINES

< > BotCompany Repo | #1032949 // pianoKeyFrequency - key is -8 to 99 or 1 to 88 or so

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

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

static Frequency pianoKeyFrequency(double key) {
  ret toFrequency(440*pow(plusOneSemitone(), key-49));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032949
Snippet name: pianoKeyFrequency - key is -8 to 99 or 1 to 88 or so
Eternal ID of this version: #1032949/2
Text MD5: 84df39094ee9261b6733677c0b078697
Transpilation MD5: a3d0368e3e0a0189a44809180273490d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 06:23:51
Source code size: 107 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 77 / 114
Version history: 1 change(s)
Referenced in: [show references]