Skip to content

Commit ba27be6

Browse files
author
tory
committed
Improved formatting of the readme. Continuing to pursue the perfect easeInOut.
Signed-off-by: tory <tory@lacasabonita.com>
1 parent 75d3307 commit ba27be6

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ sqTwineSound
44
sqTwineSound HTML5 Sound Macro Suite
55
Copyright 2014 Tory Hoke
66

7-
Program URI: http://www.sub-q.com/plugins/sqTwineSound/
8-
Description: Sound macros for Twine creations, including controls for volume, fade interval, and playing multiple tracks at once.
9-
Version: 0.8.0
10-
Author: Tory Hoke
11-
Author URI: http://www.toryhoke.com
12-
License: GNU General Public License
13-
License URI: http://www.opensource.org/licenses/gpl-license.php
14-
Repository: https://github.com/AteYourLembas/sqTwineSound
15-
FAQ / Q & A: http://sub-q.com/questions (password: ThinkVast)
16-
Bug Reports/Feature Requests: http://sub-q.com/forums/topic/what-would-you-like-to-see-sqtwinesound-do-that-its-not-doing/ (password: ThinkVast)
7+
Program URI: http://www.sub-q.com/plugins/sqTwineSound/
8+
Description: Sound macros for Twine creations, including controls for volume, fade interval, and playing multiple tracks at once.
9+
Version: 0.8.0
10+
Author: Tory Hoke
11+
Author URI: http://www.toryhoke.com
12+
License: GNU General Public License
13+
License URI: http://www.opensource.org/licenses/gpl-license.php
14+
Repository: https://github.com/AteYourLembas/sqTwineSound
15+
FAQ / Q & A: http://sub-q.com/questions (password: ThinkVast)
16+
Bug Reports/Feature Requests: http://sub-q.com/forums/topic/what-would-you-like-to-see-sqtwinesound-do-that-its-not-doing/ (password: ThinkVast)
1717

1818
sub-Q.com is password-protected while it's in beta (until January 2015.)
1919
Please kick the tires and report any issues with the website

sqTwineSound_sugarcube.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ GNU General Public License for more details.
167167
tempVolume = Math.min(goalVolume, Math.max(0, tempVolume + increment));
168168

169169
//Easing (increment, startpoint, endpoint) chooses the next friendly value between the given min and max; prevents sound popping in or out
170-
//
171-
audioObj.volume = Math.easeInOut(tempVolume, 0, goalVolume);
170+
// was Math.easeInOut(tempVolume, 0, goalVolume)
171+
audioObj.volume = (!fadeIn) ? Math.easeInOut(tempVolume, 0, goalVolume) : Math.easeInOut(tempVolume, goalVolume, 0);
172172

173173
if (tempVolume === 0 || tempVolume === goalVolume) clearInterval(audioObj.interval);
174174

0 commit comments

Comments
 (0)