I’m attempting to manually layer ambient sound in the Chapbook format, but I’m having some trouble. The page in the chapbook guide tells you that regular ambient sound should look like this:
sound.ambient.forest.url: 'forest.mp3'
sound.ambient.forest.description: 'midday forest sounds'
--
{ambient sound: 'forest'}
It's a beautiful day.
and that the code to control the sound manually and play more than one ambient sound simultaneously looks like this:
sound.ambient.forest.playing: true
sound.ambient.rain.playing: true
--
You walk outside.
However, I’m having trouble figuring out how these two things work together practically. Do you put them on the same page? Do you repeat the first one twice, once for each audio clip? Or am I misunderstanding completely and they’re not meant to both occur at the same time? For example, some variations I have tried:
sound.ambient.like_real_people.url: 'https://www.dropbox.com/s/e7yh98lklr1bevs/like_real_people.mp3?dl=1'
sound.ambient.like_real_people.description: 'Slow acoustic music begins to play...'
sound.ambient.roomandfan.url: 'https://www.dropbox.com/s/f38fd1kmktys8ct/roomandfan.mp3?dl=1'
sound.ambient.roomandfan.description: 'A fan whirs in the background'
--
Text
and then on the next passage
sound.ambient.like_real_people.playing: true
sound.ambient.roomandfan.playing: true
--
{ambient sound: 'like_real_people', volume: 0.2}
{ambient sound: 'like_real_people', volume: 0.5}
Text
I have also tried them on the same page:
sound.ambient.like_real_people.url: 'https://www.dropbox.com/s/e7yh98lklr1bevs/like_real_people.mp3?dl=1'
sound.ambient.like_real_people.description: 'slow acoustic music begins to play...'
sound.ambient.roomandfan.url: 'https://www.dropbox.com/s/f38fd1kmktys8ct/roomandfan.mp3?dl=1'
sound.ambient.roomandfan.description: 'A fan whirs in the background'
sound.ambient.like_real_people.playing: true
sound.ambient.roomandfan.playing: true
--
{ambient sound: 'like_real_people', volume: 0.2}
{ambient sound: 'roomandfan', volume: 0.5}
Text
and
sound.ambient.like_real_people.url: 'https://www.dropbox.com/s/e7yh98lklr1bevs/like_real_people.mp3?dl=1'
sound.ambient.like_real_people.playing: true
sound.ambient.like_real_people.description: 'slow acoustic music begins to play...'
sound.ambient.roomandfan.url: 'https://www.dropbox.com/s/f38fd1kmktys8ct/roomandfan.mp3?dl=1'
sound.ambient.roomandfan.playing: true
sound.ambient.roomandfan.description: 'A fan whirs in the background'
--
{ambient sound: 'like_real_people', volume: 0.2}
{ambient sound: 'roomandfan', volume: 0.5}
Text
This is my first significant project with Twine and I am by no means a coder, so I feel like I’m probably missing something really basic haha. However, if anyone knows if this is possible and if so how to do it, I would really appreciate your insight!
Twine Version: 2.5.1.0
Story Format: Chapbook 1.2.2