Skip to content

Commit 87028d6

Browse files
author
tory
committed
Final fixes for v.0.8.0. Remaining curiosities documented in README.md under KNOWN ISSUES. Almost ready for release!
Signed-off-by: tory <tory@lacasabonita.com>
1 parent 3f61e8e commit 87028d6

File tree

3 files changed

+392
-332
lines changed

3 files changed

+392
-332
lines changed

README.md

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,75 @@
11
sqTwineSound
22
============
33

4-
HTML5 sound macro suite for Twine. Based on Leon Arnott's Glorious Trainwrecks sound macros plus story-wide volume control, individual track volume control, seamless loops (with crossfade), fade duration control, and the ability to start multiple audio tracks at once.
4+
sqTwineSound HTML5 Sound Macro Suite
5+
Copyright 2014 Tory Hoke
6+
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)
17+
18+
sub-Q.com is password-protected while it's in beta (until January 2015.)
19+
Please kick the tires and report any issues with the website
20+
via the sub-Q.com Contact form.
21+
22+
23+
This program based on:
24+
Twine: HTML5 sound macros by Leon Arnott of Glorious Trainwrecks
25+
the source and influence of which appear under a Creative Commons CC0 1.0 Universal License
26+
27+
This program is free software: you can redistribute it and/or modify
28+
it under the terms of the GNU General Public License as published by
29+
the Free Software Foundation, either version 3 of the License, or
30+
(at your option) any later version.
31+
32+
This program is distributed in the hope that it will be useful,
33+
but WITHOUT ANY WARRANTY; without even the implied warranty of
34+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35+
GNU General Public License for more details.
36+
37+
38+
SUITE CONTENTS
39+
40+
41+
updatevolume clipName, *volumeProportion e.g. <<updatevolume $clipName 0.5>>
42+
playsound clipName
43+
playsounds [clipName1, clipName2, ...]
44+
pausesound clipName
45+
pauseallsound
46+
stopsound clipName
47+
stopallsound
48+
oopsound clipName, *volumeProportion, *overlap
49+
unloopsound clipName
50+
fadeinsound clipName
51+
fadeinsounds [clipName1, clipName2, ...], *volumeProportion, *overlap
52+
fadeoutsound clipName
53+
fadeoutsounds [clipName1, clipName2, ...]
54+
quieter
55+
louder
56+
jumpscare clipName <-- PLEASE GIVE YOUR READER A STARTLE WARNING BEFORE USING JUMPSCARE!
57+
58+
59+
60+
KNOWN ISSUES
61+
62+
- If your story throws an alert, it will probably pause the sound playback. Note that whenever sound playback is paused by something other than another sqTwineSound macro, the timing of loops will be thrown off. One way to work around this is to manually pause sound in your passage (<<pausesound $backgroundMusic>>) before you throw up the alert, and then resume the sound <<playsound $backgroundMusic>>again after the alert.
63+
64+
- When vigorously stopping and resuming multiple tracks, there is sometimes some skipping and unexpected behavior. Not sure why. Investigating.
65+
66+
- As of Twine v 1.4.2, the Sugarcane and Jonah story formats don't seem to hand off variables to these custom macros. For example, if you're using Sugarcane or Jonah, please use <<playsound "music.mp3">> instead of playsound <<$music>>. Sugarcane and Jonah also don't have the neat <<button>> macro that the Sugarcube story format does, so making volume control buttons could be a bit of an adventure. I personally prefer the Sugarcube story format, but I'm not the boss of you.
67+
68+
69+
BONUS FEATURES
70+
71+
- The full demo (using the Sugarcube story format) provides working examples
72+
73+
- A Sugarcane- and Jonah-friendly flavor of the script works with native Twine story formats. I can't guarantee this flavor will always have the same features of the Sugarcube flavor, but I hope it's useful.
74+
75+
- The macros that take multiple parameters (e.g. clip name, volume proportion, and overlap) make a good-faith effort not to freak out if you give them these parameters in an unexpected order. It can kind of figure out that "clipName.mp3" is the clip name, and 0.5 is the volume proportion, and 2000 is the milliseconds to overlap. But if you try to mix up a macro's preferred order of parameters AND give it a decimal number as overlap, expect the unexpected!

0 commit comments

Comments
 (0)