Director Help

Sound Channel

Represents an individual sound channel found within the Sound object.

There are eight available sound channels. You can use a Sound Channel object in script to access and modify any of the eight sound channels.

Note: You can modify only the first two sound channels in the Score of the Director user interface.

You can create a reference to a Sound Channel object by using the top level sound() method, the Player object’s sound property, or the Sound object’s channel() method. For example, you can reference sound channel 2 by doing the following:

  • Use the top level sound() method.
    -- Lingo syntax
    objSoundChannel = sound(2)
    
    // JavaScript syntax
    var objSoundChannel = sound(2);
    
    
  • Use the Player object’s sound property.
    -- Lingo syntax
    objSoundChannel = _player.sound[2]
    
    // JavaScript syntax
    var objSoundChannel = _player.sound[2];
    
    
  • Use the Sound object’s channel() method.
    -- Lingo syntax
    objSoundChannel = _sound.channel(2)
    
    // JavaScript syntax
    var objSoundChannel = _sound.channel(2);
    
    

Method summary for the Sound Channel object

Method 

breakLoop()

play() (Sound Channel)

fadeIn()

playFile()

fadeOut()

playNext() (Sound Channel)

fadeTo()

queue()

getPlayList()

rewind() (Sound Channel)

isBusy()

setPlayList()

pause() (Sound Channel)

stop() (Sound Channel)

Property summary for the Sound Channel object

Property 

channelCount

member (Sound Channel)

elapsedTime

pan

endTime

sampleCount

loopCount

sampleRate

loopEndTime

startTime

loopsRemaining

status

loopStartTime

volume (Sound Channel)

See also

channel() (Sound), sound (Player), sound(), Sound