<?xml version="1.0"?>
<!--
###################################################
##NBFM Transmit
###################################################
 -->
<block>
  <name>NBFM Transmit</name>
  <key>analog_nbfm_tx</key>
  <import>from gnuradio import analog</import>
  <make>analog.nbfm_tx(
	audio_rate=$audio_rate,
	quad_rate=$quad_rate,
	tau=$tau,
	max_dev=$max_dev,
	fh=$fh,
        )</make>
  <callback>set_max_deviation($max_dev)</callback>

  <param>
    <name>Audio Rate</name>
    <key>audio_rate</key>
    <type>int</type>
  </param>

  <param>
    <name>Quadrature Rate</name>
    <key>quad_rate</key>
    <type>int</type>
  </param>

  <param>
    <name>Tau</name>
    <key>tau</key>
    <value>75e-6</value>
    <type>real</type>
  </param>

  <param>
    <name>Max Deviation</name>
    <key>max_dev</key>
    <value>5e3</value>
    <type>real</type>
  </param>

  <param>
    <name>Preemphasis High Corner Freq</name>
    <key>fh</key>
    <value>-1.0</value>
    <type>real</type>
  </param>

  <check>($quad_rate)%($audio_rate) == 0</check>

  <sink>
    <name>in</name>
    <type>float</type>
  </sink>

  <source>
    <name>out</name>
    <type>complex</type>
  </source>
</block>
