Piezo works on Uno but not ATTiny85

I have in the past got the code below to work on an ATtiny85

I have been playing with the following Piezo speakers: 10 pcs 20mm Thickness 0.33mm Copper Piezo Disc for Buzzer Pressure Sensor Speaker DIY Electronic|disc tv|disc blankpiezo ceramic - AliExpress.

When uploaded to an Uno (with tonePin = 3), the melody plays. When I however upload it to an ATtiny85 (tonePin =1 and power source = 5V) nothing appears to happen.

I have confirmed that I am uploading correctly and that the ATtiny works by successfully controlling an LED using it.

The only thing that I can think of is that these Piezo discs don't work with the ATtiny.

If this is the case, I need someone to please explain to me why this might be so that I know what to look for going forward.

int tonePin = 1;
void setup() {

}

void midi() {

    tone(tonePin, 261, 450.0);
    delay(500.0);
    tone(tonePin, 349, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 349, 450.0);
    delay(500.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 391, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 391, 450.0);
    delay(500.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 349, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 523, 450.0);
    delay(500.0);
    tone(tonePin, 587, 1350.0);
    delay(1500.0);
    tone(tonePin, 587, 450.0);
    delay(500.0);
    tone(tonePin, 523, 675.0);
    delay(750.0);
    tone(tonePin, 440, 225.0);
    delay(250.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 349, 450.0);
    delay(500.0);
    tone(tonePin, 391, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 391, 450.0);
    delay(500.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    delay(750.0);
    tone(tonePin, 349, 24.84375);
    delay(27.6041666667);
    tone(tonePin, 293, 175.78125);
    delay(195.3125);
    delay(500.0);
    tone(tonePin, 293, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 174, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 233, 386.71875);
    delay(429.6875);
    tone(tonePin, 261, 22.5);
    delay(25.0);
    tone(tonePin, 349, 1350.0);
    delay(1500.0);
    tone(tonePin, 587, 450.0);
    delay(500.0);
    delay(750.0);
    tone(tonePin, 523, 12.1875);
    delay(13.5416666667);
    tone(tonePin, 349, 167.34375);
    delay(185.9375);
    tone(tonePin, 440, 33.28125);
    delay(36.9791666667);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 174, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 261, 395.625);
    delay(439.583333333);
    tone(tonePin, 110, 22.5);
    delay(25.0);
    tone(tonePin, 349, 22.96875);
    delay(25.5208333333);
    tone(tonePin, 391, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 391, 450.0);
    delay(500.0);
    tone(tonePin, 587, 450.0);
    delay(500.0);
    delay(750.0);
    tone(tonePin, 523, 12.1875);
    delay(13.5416666667);
    tone(tonePin, 349, 167.34375);
    delay(185.9375);
    tone(tonePin, 440, 33.28125);
    delay(36.9791666667);
    delay(500.0);
    tone(tonePin, 440, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 349, 395.625);
    delay(439.583333333);
    tone(tonePin, 523, 22.5);
    delay(25.0);
    tone(tonePin, 587, 1350.0);
    delay(1500.0);
    tone(tonePin, 698, 450.0);
    delay(500.0);
    tone(tonePin, 523, 675.0);
    delay(750.0);
    tone(tonePin, 440, 225.0);
    delay(250.0);
    tone(tonePin, 440, 450.0);
    delay(500.0);
    tone(tonePin, 349, 450.0);
    delay(500.0);
    tone(tonePin, 391, 675.0);
    delay(750.0);
    tone(tonePin, 349, 225.0);
    delay(250.0);
    tone(tonePin, 391, 450.0);
    delay(500.0);
    tone(tonePin, 440, 225.0);
    delay(250.0);
    tone(tonePin, 329, 225.0);
    delay(250.0);
    delay(750.0);
    tone(tonePin, 349, 24.84375);
    delay(27.6041666667);
    tone(tonePin, 293, 175.78125);
    delay(195.3125);
    delay(500.0);
    tone(tonePin, 293, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 174, 8.90625);
    delay(9.89583333333);
    tone(tonePin, 233, 386.71875);
    delay(429.6875);
    tone(tonePin, 261, 22.5);
    delay(25.0);
    tone(tonePin, 349, 1350.0);
    delay(1500.0);

}

void loop() {
    // Play midi
    midi();
}

Which core are you usiny?
If you're using TinyCore then your best bet is to use 4 as your tonePin.
The duration is also an int, so it needs to be a while number.

I am using https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

I have used this (the core and the code) successfully on ATtiny85 in the past but this time the only difference is the Piezo and so I am wondering if there is something that I don’t understand about these.

That core may not support the tone() function. Try this one.

I think PaulRB is correct about damellis/attiny not supporting tone(), as discussed here:

Thanks all. Yip you were all correct. It's strange as I am sure that I used Damellis's library before; that said I have update my old instructable with Spencer Konde's library which definitely works at present.