<?xml version="1.0"?>
<!--
###################################################
##Polyphase Synthesis Filterbank
###################################################
 -->
<block>
	<name>Polyphase Synthesizer</name>
	<key>pfb_synthesizer_ccf</key>
	<import>from gnuradio import filter</import>
	<import>from gnuradio.filter import firdes</import>
	<make>filter.pfb_synthesizer_ccf(
	  $numchans, $taps, $twox)
self.$(id).set_channel_map($ch_map)
self.$(id).declare_sample_delay($samp_delay)
	</make>
        <callback>set_taps($taps)</callback>
        <callback>set_channel_map($ch_map)</callback>

	<param>
		<name>Channels</name>
		<key>numchans</key>
		<value>2</value>
		<type>int</type>
	</param>
	<param>
		<name>Connections</name>
		<key>connections</key>
		<value>2</value>
		<type>int</type>
	</param>
	<param>
		<name>Taps</name>
		<key>taps</key>
		<type>real_vector</type>
	</param>
	<param>
		<name>2x Sample Rate</name>
		<key>twox</key>
		<value>False</value>
		<type>bool</type>
	</param>
	<param>
		<name>Sample Delay</name>
		<key>samp_delay</key>
		<value>0</value>
		<type>int</type>
		<hide>part</hide>
	</param>
	<param>
		<name>Channel Map</name>
		<key>ch_map</key>
		<value>[]</value>
		<type>int_vector</type>
	</param>
	<param>
		<name>Bus Connections</name>
		<key>bus_conns</key>
                <value>[[0,],]</value>
		<type>raw</type>
                <hide>part</hide>
	</param>
	<sink>
		<name>in</name>
		<type>complex</type>
		<nports>$connections</nports>
	</sink>
	<source>
		<name>out</name>
		<type>complex</type>
	</source>
        <bus_structure_sink>$bus_conns</bus_structure_sink>
</block>
