A confectionery processing machine has a hopper attached to a dispensing unit. The dispensing unit comprises a plurality of co-operating piston and nozzles. The hopper is arranged to supply an edible material to the plurality of co-operating piston and nozzles. The dispensing unit is arranged in order to dispense the edible material from the plurality of co-operating piston and nozzles. The confectionery processing machine is improved by providing the hopper with at least two separate compartments. Here, each compartment separately provides edible material to a portion of the plurality of pistons. Consequently, a more flexible confectionery processing machine is provided because all the plurality of piston and nozzles are not provided from the same compartment.