Heilan X3D Browser

PulseCubes

Type

ParentNode, to be used with a child AudioClip node.

Description

A cube (the size of which is controlled by the amplitude envelope of the accompanying AudioClip) which fires off smaller cubes when it detects transients in the AudioClip's audio.

Attributes

maxBack SFFloat (input) The same as Sound's maxBack attribute.

maxFront SFFloat (input) The same as Sound's maxFront attribute.

minBack SFFloat (input) The same as Sound's minBack attribute.

minFront SFFloat (input) The same as Sound's minFront attribute.

pulseWait SFInt32 (input) The number of transients to wait before first firing off the smaller cubes.

waitPoint SFFloat (input) Time (in seconds) at which the cube should start firing off the smaller cubes.

waitFraction SFFloat (input) To be connected to a TimeSensor, and used with waitPoint to let the cube know what the current time is.

Example Use

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE X3D>
<X3D profile="Full">
	<Scene>
		<NavigationInfo type="ANY"/>

		<Transform translation="0.0 0.0 -8.0 ">
			<PulseCubes DEF="pulses" waitPoint="0.5" minFront="20.0 " maxFront="40.0 " minBack="20.0 " maxBack="40.0 ">
				<Appearance>
					<Material diffuseColor="1.0 0.0 0.0"/>
				</Appearance>
				<AudioClip url="/home/niall/music/concertPiece/oldSounds/HeartbeatSoundTemp.wav"/>
			</PulseCubes>
		</Transform>

		<TimeSensor DEF="timer" cycleInterval="20.0" loop="TRUE"/>

		<ROUTE fromNode="timer" fromField="fraction_changed" toNode="pulses" toField="waitFraction"/>
	</Scene>
</X3D>