A machine for making variegated ice cream or ice cream shake, comprising: - a basic structure; - one or more basic product mixing and freezing units, where each mixing and freezing unit in turn comprises a processing cylinder containing the basic product and cooled by a respective refrigerating system and a stirring member mounted inside the processing cylinder and rotating to mix the basic product to prevent it from hardening and sticking to the cooled inside wall of the processing cylinder and to transform the basic product into a base ice cream product; - a closing element for closing the cylinder, located at a front wall of the basic structure and provided with at least one outlet duct leading to the processing cylinder at one end and to an outlet mouth at the other end; - a shutoff device for closing/opening the at least one outlet duct so that, in the open position, the product can flow out of the processing cylinder to supply the outlet mouth through which the product is fed into a container to form a takeaway serving of ice cream or shake; - one or more containment tanks, also mounted inside the basic structure, for corresponding food syrups, each containment tank being provided with an outfeed pipe and feed means for feeding the food syrups to the at least one outlet duct; - a mixing chamber, which is located along the outlet duct upstream of the outlet mouth, and inside which the base ice cream product and the syrups are mixed by means of a respective mixing member mounted inside the mixing chamber and driven in rotation by an actuator to make a product known as variegated ice cream defined by the sum of at least two components between the base ice cream product and the food syrups, the machine being characterized in that it comprises a control unit connected to the actuator of the mixing member and configured to drive the actuator in such a way as to vary the rotation speed of the mixing member, wherein the actuator comprises an inverter and a motor connected to the mixing member to drive it in rotation, the inverter being connected to the motor to drive it and being also connected to the control unit to receive commands relating to the rotation speed of the motor. - a basic structure; - one or more basic product mixing and freezing units, where each mixing and freezing unit in turn comprises a processing cylinder containing the basic product and cooled by a respective refrigerating system and a stirring member mounted inside the processing cylinder and rotating to mix the basic product to prevent it from hardening and sticking to the cooled inside wall of the processing cylinder and to transform the basic product into a base ice cream product; - a closing element for closing the cylinder, located at a front wall of the basic structure and provided with at least one outlet duct leading to the processing cylinder at one end and to an outlet mouth at the other end; - a shutoff device for closing/opening the at least one outlet duct so that, in the open position, the product can flow out of the processing cylinder to supply the outlet mouth through which the product is fed into a container to form a takeaway serving of ice cream or shake; - one or more containment tanks, also mounted inside the basic structure, for corresponding food syrups, each containment tank being provided with an outfeed pipe and feed means for feeding the food syrups to the at least one outlet duct; - a mixing chamber, which is located along the outlet duct upstream of the outlet mouth, and inside which the base ice cream product and the syrups are mixed by means of a respective mixing member mounted inside the mixing chamber and driven in rotation by an actuator to make a product known as variegated ice cream defined by the sum of at least two components between the base ice cream product and the food syrups, the machine being characterized in that it comprises a control unit connected to the actuator of the mixing member and configured to drive the actuator in such a way as to vary the rotation speed of the mixing member, wherein the actuator comprises an inverter and a motor connected to the mixing member to drive it in rotation, the inverter being connected to the motor to drive it and being also connected to the control unit to receive commands relating to the rotation speed of the motor.