Audio

BlocklyProp reference for AUDIO blocks

BlocklyProp blocks for generating audio. See each block for board type compatibility.


WAV play

This block is ONLY available for the Propeller Activity Board WX board type.

This block lauches TWO processor automatically.

The WAV play block sets up both the SD card reader on the Propeller Activity Board, sets up the WAV player object in the Propeller microcontroller, and plays the WAV formatted audio file from the SD card whose filename was typed into the block.


WAV status

This block is ONLY available for the Propeller Activity Board WX board type.

The WAV status block provides a value of 1 (one/true) if a WAV file is currently playing and a value of 0 (zero/false) if a WAV file is not currently playing. This block is designed for the Propeller Activity Board WX.


WAV volume

This block is ONLY available for the Propeller Activity Board WX board type.

The WAV volume block set the volume of the Propeller’s WAV player. A value of 0 is quietest and 10 is loudest. This block is designed for the Propeller Activity Board WX.


WAV stop

This block is ONLY available for the Propeller Activity Board WX board type.

The WAV stop block stops playing a WAV file. This block is designed for the Propeller Activity Board WX.


frequency out

This block is available for the Propeller Activity Board WX, Propeller FLiP module, or Other board types. Propeller I/O pin availability will vary by board type.

Not available for Badge or Scribbler Robot board types.

The frequency out block generates pulses of the specified frequency and duration. An example use would be generating beeps on a piezospeaker.

  • PIN: select the Propeller I/O pin on which to send the signal.
  • duration (ms): insert a value block to set the duration in milliseconds for the pulses to last.
  • frequency (Hz) insert a value block to set the frequency of the pulses, in hertz.