05.05.2013 Views

Huron & SNAP Documentation

Huron & SNAP Documentation

Huron & SNAP Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OTHER SIMULATION TOOLS<br />

in long lWaveID The waveID that you want to assign to this wave. If the<br />

waveID is already taken by another wave, that wave has the ID<br />

removed from it. A single wave can be assigned multiple<br />

waveIDs. It is removed from the WavePlayer’s memory when<br />

its last ID is removed.<br />

in const char* szPath Full path of a SIM file<br />

<strong>SNAP</strong>UpdateVoice<br />

After the waves have been loaded it is necessary to assign them<br />

to a voice in order to play the wave. To do this send the<br />

<strong>SNAP</strong>UpdateVoice command. Once the wave is playing it is<br />

possible to send more <strong>SNAP</strong>UpdateVoice commands to change<br />

the pitch and level of the voice.<br />

in long lVoice Voice number<br />

in long lWaveID WaveID to assign to this voice<br />

in float fSPL Sound pressure level of this voice between 0 and 1<br />

in float fPBend Pitchbend value of this voice. 0 turns the voice off, 0.5 is half<br />

pitch, 1.0 is normal pitch and 2.0 is double pitch<br />

<strong>SNAP</strong>TriggerVoice<br />

Starts a voice playing.<br />

in long lVoice Voice number<br />

<strong>SNAP</strong>ReleaseVoice<br />

Stops a voice playing.<br />

in long lVoice Voice number<br />

<strong>SNAP</strong>RemoveWave<br />

Allows the driving application to remove a wave from the<br />

WavePlayer.<br />

in long lWaveID The identification number of the wave file to remove<br />

<strong>SNAP</strong>GetWaveInfo<br />

After sending a <strong>SNAP</strong>GetWaveProp the driving application is<br />

returned the number of loaded “waves” parameter of the<br />

returning structure. After this return is made, the<br />

<strong>SNAP</strong>GetWaveInfo will return information on all these waves<br />

by passing the “index” which is a number from 0 to “waves”<br />

(derived from <strong>SNAP</strong>GetWaveProp).<br />

If the wave was loaded by the driving application the structure<br />

returned provides the lWaveID and its complete path in “file” or<br />

its “szWaveName” and “plChecksum”.<br />

out long* lWaveID Identification number of the wave file<br />

in long lIndex The WavePlayer voice number<br />

out char* szPath Full path of a SIM file<br />

out char* szWaveName Name of the wave<br />

out long* plChecksum Checksum<br />

HURON TECHNICAL MANUAL PAGE 176

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!