| MasterScan
    Lab_Matlab_control Master Branch
    | 
Play a pure sinusoudal tone.

| Properties and Events | |
| Property | frequency | 
| frequency of the sinusoid (Hz) | |
| Property | usePTB = false | 
| Test to use PTB PsychPortAudio. | |
| Property | waitForStart = 1 | 
| Flag to block until sound has actually started playing (if usePTB) | |
|  Properties and Events inherited from dotsPlayable | |
| Property | isAudible = true | 
| true or false, whether this object should play() sonds | |
| Property | intensity = 1 | 
| scale factor to apply to waveform during playback | |
| Property | sampleFrequency = 44100 | 
| frequency in Hz of sound samples stored in waveform | |
| Property | bitsPerSample = 16 | 
| bit-depth of each sound sample in waveform | |
| Property | duration | 
| duration of the sound to play (may be set automatically) | |
| Property | soundsPath | 
| system path to locate sound files | |
| Property | waveform | 
| mXn double matrix of sound samples (arbitrary units, 0-1)  More... | |
| Property | side = '' | 
| If a sound should only play in the left side or right side.  More... | |
| Property | playBlocking = false | 
| Should we block until done? | |
| Protected Properties | |
| Property | player | 
| The playable: either a Matlab audioplayer object or PsychPortAudio device. | |
|  Protected Properties inherited from dotsPlayable | |
| Property | lastPlayTime | 
| timestamp from the last time this object was play()ed | |
| Methods | |
| self | dotsPlayableTone () | 
| Constructor takes no arguments. | |
| prepareToPlay (self) | |
| Compute a sinusoidal waveform to play. | |
| play (self) | |
| Play the tone. | |
| stopPlaying (self, waitForEndOfPlayback) | |
| Stop the tone. | |
|  Methods inherited from dotsPlayable | |
| self | dotsPlayable () | 
| Constructor takes no arguments. | |
| mayPlayNow (self) | |
| play() or not, depending on isAudible and possibly other factors. | |
| prepareToPlay (self) | |
| Do any pre-play setup. | |
| play (self) | |
| Subclass must redefine play() to play a sound. | |
| stopPlaying (self, waitForEndOfPlayback) | |
| Subclass must redefine stopPlaying() to stop playing a sound. | |
| unMute (self) | |
| Shorthand to set isAudible=true. | |
| mute (self) | |
| Shorthand to set isAudible=false. | |
| Static Methods | |
| static playableTone | makeTone (args) | 
| Convenient utility for making a tone object.  More... | |
|  Static Methods inherited from dotsPlayable | |
| static | playSound (playableList, indices) | 
| Pick a sound! | |
| 
 | static | 
Convenient utility for making a tone object.
args is 3x1 vector of: frequency (Hz) duration (sec) intensity (normalized)
 1.8.15
 1.8.15