Skip to content

Commit

Permalink
More concise display of freq delta.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Jun 10, 2022
1 parent 34d6585 commit 07f37c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfxr.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ var units = {
p_freq_ramp: function (v) {
return (44100*Math.log(v)/Math.log(0.5)).toPrecision(4) + ' 8va/sec'; },
p_freq_dramp: function (v) {
return (v*44100 / Math.pow(2, -44101./44100)).toPrecision(4) +
' 8va/sec^2?'; },
return (v*44100 / Math.pow(2, -44101./44100)).toExponential(4) +
' 8va/s^2'; },

p_vib_speed: function (v) { return v === 0 ? 'OFF' :
(441000/64. * v).toPrecision(4) + ' Hz'},
Expand Down

0 comments on commit 07f37c0

Please sign in to comment.