Libraryless. Click here for Pure Java version (56L/1K).
// 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. // From: https://en.wikipedia.org/wiki/Vibrato // "The extent of vibrato for solo singers is usually less than a semitone (100 cents) either side of the note" // => cent = 100 // "while singers in a choir typically use narrower vibrato with an extent of less than a tenth of a semitone (10 cents) either side" // => cent = 10 // "Wind and bowed instruments generally use vibratos with an extent of less than half a semitone either side." // => cent = 50 static double vibratoCentToFrequencyPercentage(double cent) { ret (plusOneSemitone()-1)*cent; }
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: | 132 / 206 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |