In function 'void loop()':...

I don't really see what i did wrong, But this is the error i get when i try to compile/upload something.

 In function 'void loop()':
error: invalid conversion from 'int' to 'const uint8_t*'

The code is:

#include <Tone.h>
Tone tone1;
int spkpin = 9;//the speaker (digital PWM)pin is 9
int note = 440;
int singlebyte = 0;
void setup()
{
  tone1.begin(spkpin);
  pinMode(9,INPUT);
  Serial.begin(9600);
}

void loop()
{
  
note = analogRead(1);
singlebyte = map(note,0,1023,0,255);
tone1.play(note);//plays the current note
Serial.write(singlebyte, BYTE);

}

And something in this line

Serial.write(singlebyte, BYTE);

Is causing it to go kaput.
I don't see what could possibly be wrong here. :o
Any ideas?
Thanks
~ReCreate

Try Serial.print not Serial.write :]

oOops my bad.
Thanks!