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

13
LINES

< > BotCompany Repo | #1032443 // vibratoCentToFrequencyPercentage

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

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

1  
// Calculate how many percent a frequency changes when a vibrato of a certain "cent" (of a semitone - that's the technical term they use) is applied.
2  
3  
// From: https://en.wikipedia.org/wiki/Vibrato
4  
// "The extent of vibrato for solo singers is usually less than a semitone (100 cents) either side of the note"
5  
//   => cent = 100
6  
// "while singers in a choir typically use narrower vibrato with an extent of less than a tenth of a semitone (10 cents) either side"
7  
//   => cent = 10
8  
// "Wind and bowed instruments generally use vibratos with an extent of less than half a semitone either side."
9  
//   => cent = 50
10  
11  
static double vibratoCentToFrequencyPercentage(double cent) {
12  
  ret (plusOneSemitone()-1)*cent;
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032443
Snippet name: vibratoCentToFrequencyPercentage
Eternal ID of this version: #1032443/5
Text MD5: c6cfdc514712f106b7b8f26db1062a29
Transpilation MD5: 33986c8b15594cd0418da26de17b1277
Author: stefan
Category: javax / audio
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-05 09:00:20
Source code size: 721 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 133 / 209
Version history: 4 change(s)
Referenced in: [show references]