| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Week 2

This version was saved 7 years, 7 months ago View current version     Page history
Saved by Heike Philp
on December 1, 2016 at 11:26:06 am
 

 

Week 2  (Jan 15-21, 2017)

 

Building with sounds and scripts

 

Moderator: Carol Rainbow, Nuno Lanca

 

Learn to create speaking posterboards, magnetic poetry, sound objects, touch items, touch to give notecard scripts.

 

Objectives

  • Learn to modify given scripts to chat information in text
  • Learn to add sounds to items
  • Learn how to record sounds for Second Life  

 

 

How to add an automatic text chat message, sound and color

 

The script needed is:

 

default

{

    touch_start(integer num_detected)

    {

        llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1);

        llSay( 0," I am a cat");

    }

        collision_start(integer num_detected)    

    {

    if (llDetectedType(0) & AGENT)

        {

            vector centrePos = llGetPos();

 

           llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1);

 

        }

    }

}

 

The text in red is where you type what you want the object to say.

 

 

 

How to add sounds to a walk-through sphere

 

The script is:

 

 

default

{

    collision_start(integer num_detected)    

    {

    if (llDetectedType(0) & AGENT)

        {

            vector centrePos = llGetPos();

 

            llPlaySound (llGetInventoryName(INVENTORY_SOUND, 0), 1);

            state makePhantom;

 

        }

    }

}

 

state makePhantom

{

    state_entry()

    {

        llSetStatus(STATUS_PHANTOM, TRUE);

        llSleep(2.0);

        llSetStatus(STATUS_PHANTOM, FALSE);

        state default;

    }

}

 

 

 

A very simple.but different way to present vocabulary.

 

Useful Information to make sound files for use in Second LifeR:

 

Recording with Audacity:

Using Audacity for recording sound files suitable for Second Life

 

Audacity is a powerful recording and editing tool which is freely available from http://audacity.sourceforge.net/ . There is an online training guide http://audacity.sourceforge.net/help/documentation and Torley's has made an Audacity tutorialhttps://support.secondlife.com/ics/support/default.asp?deptID=4417  

 

Carol showing how to build, copy and put sound into objects

 

Making a vocal recording

•    Open Audacity and make sure that on the bottom left of the screen it says Project Rate: 44100. This is default so should already be right, if not click on the numbers to alter it.

•    Plug in a microphone and click the red Record button. This automatically creates a track and starts the recording.  

•    If you want to pause while recording click the Pause button. To continue recording on the same track, click the Pause button again. 

•    When you have finished recording, click the Stop button

•    You will now see a wav form, listen to it and note if there are sections that need to be taken out. Highlight an unwanted section and click on delete, note there is an undo in the edit menu of you get it wrong! Also delete the unrecorded space at the beginning and end of the sound. Make sure that the finished sound file is not more than 9.9 seconds,  that is all that Second Life can deal with.

•    Upload one sound to Second Life and try it in a poster to see if it is loud enough. If it is not you may need to amplify it. I usually test before making all of the sound files so that I can add the amplification process during the making, it is a pain to go back and add it later.

•    I usually amplify the sound by about 5 Db so that it is loud enough once in Second LifeR. To do that highlight the whole track, select Effects / Amplify/ accept the recommended amplification.  You will see the wav increase. 

 

NB You can only upload sounds up to 9.5 seconds long to Second LifeR.

 

 

 

Comments (0)

You don't have permission to comment on this page.