Drawing a mp3 type music player, using ROOT geometry class.
Reviewed by Sunman Kim (sunma.nosp@m.n98@.nosp@m.hanma.nosp@m.il.n.nosp@m.et) Supervisor: Prof. Inkyu Park (icpar.nosp@m.k@ph.nosp@m.ysics.nosp@m..uos.nosp@m..ac.k.nosp@m.r)
How to run: .x mp3player.C in ROOT terminal, then use OpenGL
This macro was created for the evaluation of Computational Physics course in 2006. We thank to Prof. Inkyu Park for his special lecture on ROOT and to all of ROOT team
void mp3player()
{
TPad *pad=
new TPad(
"pad",
"Pad",0,0.5,0.5,1);
TPad *pad2=
new TPad(
"pad2",
"Pad2",0.5,0.5,1,1);
Tex.
DrawLatex(0.3,0.81,
"Mariah Carey - Shake it off");
Tex.
DrawLatex(0.3,0.71,
"Alicia keys - If I ain't got you");
Tex.
DrawLatex(0.3,0.61,
"Michael Jackson - Billie Jean");
Tex.
DrawLatex(0.3,0.51,
"Christina Milian - Am to Pm");
Tex.
DrawLatex(0.3,0.41,
"Zapp&Roger - Slow and Easy");
Tex.
DrawLatex(0.3,0.31,
"Black Eyes Peas - Let's get retarded");
Tex.
DrawLatex(0.3,0.21,
"Bosson - One in a Millin");
Tex.
DrawLatex(0.2,0.11,
"Click Button!! You Can Listen to Musics");
TPad *pad3=
new TPad(
"pad3",
"Pad3",0,0,1,0.5);
TPad *pad4=
new TPad(
"pad4",
"Pad4",0.6,0.1,0.9,0.9);
Tex.
DrawLatex(0.06,0.85,
"IAudio U3 Mp3 Player");
Tex.
DrawLatex(0.06,0.65,
"+ 60mW High Generating Power");
Tex.
DrawLatex(0.06,0.45,
"+ Noble White&Black");
Tex.
DrawLatex(0.06,0.35,
"+ Text Viewer+Image Viewer");
Tex.
DrawLatex(0.06,0.25,
"+ 20 Hours Playing");
Tex.
DrawLatex(0.06,0.15,
"+ The Best Quality of Sound");
}
void Sound(int i)
{
char sound[128];
sprintf(sound,"cat sound%d.wav > /dev/audio",i);
}
- Author
- Eun Young Kim, Dept. of Physics, Univ. of Seoul
Definition in file mp3player.C.