Welcome
Guest
, you are in:
<root>
Elements
•
Login
EventIDE Wiki
Navigation
¶
Main Page
Random Page
Create a new Page
All Pages
Categories
Navigation Paths
Administration
File Management
Create Account
Search the wiki
Back
Tone Generator Element
Modified on 2018/07/16 01:52
by
Administrator
Categorized as
Auditory Stimuli
,
Base Elements
,
Elements
<div style="margin-right: 10px; margin-left: 16px; margin-bottom:10px; float: right; width: 500px; overflow: hidden; height: auto; padding: 0px; background: #fafafa; background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));background: -moz-linear-gradient(top, #fbfbfb, #fafafa);border: 1px dashed #ddd;box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ddd, 0 0 0 10px #fff, 0 0 2px 10px #eee;"> == Summary == {s:Element Info Panel | title=Tone Generator | category=Audio Stimuli | icon=[image|Element Icon|{UP(Tone-Generator-Element)}Tone-Generator-Element-Icon.png] | author= OkazoLab | addin= Base Layer | scope= Parent event | usage= Snippets | ownsnippets= None } == Properties == {| |- ! Name ! Description ! Constraints ! Type ! On<br/>runtime<br/>change |- | colspan="5" bgcolor="#AADDDDD" | Settings |- | Frequency | Define the frequency of the generated audio tone | {s:atNormal} | Double | |- | Duration | Define the duration (ms) of the generated audio tone | {s:atNormal} | clTime | |- | Sampling Rate | | {s:atNormal} | Int32 | |- | Wave Type | Define the wave type the generated audio tone | {s:atNormal} | Int32 | |- | Playback Mode | Defines the playback mode for audio tone generated by the element. In the default mode (Auto Playback), the tone is played once on the onset of the parent event. In the Manual mode the playback process is controlled in the snippets by changing the Is Playing property. | {s:atDesign} | stPlay.. | |- | Asynchronous Monitoring | Defines whether the element asynchronously monitors the playback process. Enabling this property may allow more accurate detection of the end of the playback. As a drawback, monitoring may marginally impair the timing accuracy of the playback start and, therefore, is not recommended for precise stimulus presentation. | {s:atNormal} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Hardware Settings |- | Playback API | Defines API for the audio playback. WASAPI is not supported in Windows XP but can be the best choice in Windows Vista and higher. ASIO API may require hardware that support it and appropriate drivers. | {s:atDesign} | stSoun.. | |- | Sound Device | Defines a sound device for the audio playback, when multiple devices are available in the system. Different playback APIs return their own device list for selection | {s:atDesign} | Int32 | |- | WASAPI Share Mode | Defines whether the selected sound device will be used in the shared or exclusive mode. This setting is relevant only when WASAPI is chosen. The exclusive mode greatly improves timing accuracy of audio playback and is recommended for stimulus presentation. As a drawback, only one Wave Player element per experiment can access the particular sound device in the exclusive mode. | {s:atDesign} | AudioC.. | |- | ASIO Control Panel | Opens a control panel with ASIO driver settings | {s:atRuntimeAction} | Boolean | |- | Buffer Latency | Defines the size of the internal audio buffer (in ms), in which an audio is loaded just before playback. Small buffers may cause CPU overhead, but guarantee faster playback adjustments, e.g. for the volume. Large buffers usually are better for smooth playback. The typical range for the property value is between 25- 500 ms. The property value is ignored when ASIO API is used. | {s:atDesign} | Int32 | |- | Test Playback | Initiates a single playback of the currently generated tone with the chosen hardware settings. An error message is returned, if the playback is failed. | {s:atDesign} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Playback Controls |- | Volume | Defines the playback volume from the ground (0) to full (100) level | {s:atNormal} | Double | |- | Balance | Defines the stereophonic balance, left (-100) to right (100) of the audio tone | {s:atNormal} | Int32 | |- | Start Position | Defines the start position of the further audio playbacks in percentages to the total duration of the generated tone. | {s:atNormal} | Double | |- | Playing Position | Indicates the current playing position (in percentages to the total duration) of the audio tone.. Changes are accepted only if the audio tone is currently playing. | {s:atNormal} | Double | |- | Is Playing | Returns or sets the current playback state of the element. In the manual playback mode, the value can be set before the onset of the parent event. In all modes, the property can be used to control the currently playing audio: assigning false/true to the property causes pause/continuing the playback, correspondingly. | {s:atNormal} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Runtime Status |- | Triggering Time | Returns the local event time in ms, when the last playback has reached the end. | {s:atStatus} | clTime | |- | Is Triggered | Indicates that the element has been triggered by end of the playback at least once, since the onset of the parent event. | {s:atNormal} | Boolean | |- | colspan="5" bgcolor="#AADDDDD" | Control |- | Is Enabled | If set to false the element is completely omitted when the experiment is run | {s:atDesign} | Boolean | |- | Title | Title of the element | {s:atDesign} | String | |- |} == == </div> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> <!--*****************************************************************************************************************************************************************************--> '''Tone Generator Element''' generates and play audio tones with predefined duration, frequency and wave type. The element allows choosing an audio playback API and ooutput device. Among them, WSAPI in the exclusive mode is recommended for the best temporal accuracy.{br}{br} {TOC} == Description == ... == Snapshots == {| | [imageleft|Snapshot 1 <br/>|{UP(page - name)}*-sm.png |{UP(page - name)}*.png] || [imageleft|Snapshot 2 |{UP(page - name)}*-sm.png |{UP(page - name)}*.png] |} == Practical Use == ... === Technique 1 === # Step 1 # Step 2 ... === Technique 2 === # Step 1 # Step 2 ... <div style="margin-left:0px; margin-right:10px; margin-top:10px; width: auto; overflow: hidden; height: auto; background: #fafafa; background: -webkit-gradient(linear, left top, left bottom, from(#fbfbfb), to(#fafafa));background: -moz-linear-gradient(top, #fbfbfb, #fafafa);border: 1px dashed #ddd;box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ddd, 0 0 0 10px #fff, 0 0 2px 10px #eee;"> @@ csharp // Check the trial outcome. Result and RT just other user variables // insert code snippet here.. @@</div> ... == Notes == ... * Insert Notes here.. * Insert Notes here..
Meta Keywords:
Meta Description:
Change Comment:
ScrewTurn Wiki
version 5.2.0.8. Some of the icons created by
FamFamFam
.