QB64 Phoenix Edition
Eye of the Tiger song using PLAY commands - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7)
+---- Thread: Eye of the Tiger song using PLAY commands (/showthread.php?tid=780)



Eye of the Tiger song using PLAY commands - SierraKen - 08-17-2022

Eye of the Tiger - by Survivor, using PLAY. Personally, I only recognize the last stanza, so it's not perfect. lol 



Code: (Select All)
'Notes from: https://noobnotes.net/eye-of-the-tiger-survivor/

Play "MB v50g6,b6g6f6d#6g6f6,d#6"
Play "MB F6F6F6F6G6F6,D#6"
Play "MB G6Bb6C6,G6"
Play "MB F6D#6G6F6F6D#6"
Play "MB C6D#6F6F6D#6F6F6D#6,G6"

Play "MB G6G6,B6G6D#6F6D#6G6F6,D#6"
Play "MB F6F6F6F6F6G6F6,D#6"
Play "MB G6G6B6C6"
Play "MB F6D#6G6F6F6D#6"
Play "MB C6D#6F6F6D#6F6F6D#6,G6"

Play "MB F6G6G#6G#6G#6G#6,G6"
Play "MB F6D#6D#6F6G6F6"
Play "MB F6,G6G#6G#6G#6G#6G6F6D#6G6,F6"
Play "MB F6G6G#6G#6G#6,G#6,G6"
Play "MB F6D#6D#6F6G6F6"
Play "MB F6G6G#6,G6G#6B6G#6B6C6"
Play "MB F6D#6F6D#6"

Print "Song: Eye of the Tiger"
Print "Band: Survivor"
Print
Print "Risin' up, back on the street"
Print "Did my time, took my chances"
Print "Went the distance"
Print "Now I'm back on my feet"
Print "Just a man and his will to survive.."
Print
Print "So many times, it happens too fast"
Print "You trade your passion for glory"
Print "Don't lose your grip"
Print "On the dreams of the past"
Print "You must fight just to keep them alive..."
Print
Print "It's the eye of the tiger,"
Print "It's the thrill of the fight"
Print "Risin' up to the challenge of our rival"
Print "And the last known survivor"
Print "Stalks his prey in the night"
Print "And he's watchin' us all with the eye"
Print "Of the tiger!"



RE: Eye of the Tiger song using PLAY commands - Pete - 08-18-2022

Very inspiring. Looking forward to Rocky VI where Stallone beats up the D.C.P., Democrat Communist Party.

Rock on, dude.

Pete Big Grin


RE: Eye of the Tiger song using PLAY commands - mnrvovrfc - 08-18-2022

I think I've had enough of "PLAY" songs, with beeping and perhaps 3-channel sound, after somebody did the "William Tell Overture" from it. :/


RE: Eye of the Tiger song using PLAY commands - johnno56 - 08-18-2022

I am curious... You mentioned "perhaps 3-channel sound"... How exactly might this be done?

J


RE: Eye of the Tiger song using PLAY commands - mnrvovrfc - 08-19-2022

https://en.wikipedia.org/wiki/IBM_PCjr#Legacy
https://en.wikipedia.org/wiki/Tandy_1000#Overview
http://www.oldskool.org/guides/tvdog/sound.html
http://www.thealmightyguru.com/Wiki/images/e/e5/Tandy_1000_-_GW-BASIC_Manual.pdf
(advance to page 260 or so of that document)

https://github.com/bahstrike/qbplay

That last link was provided, instead of a Purebasic program that emulated the ability of a Tandy1000.


RE: Eye of the Tiger song using PLAY commands - mnrvovrfc - 08-19-2022


.zip   Purebasic-QBPlay.pb.zip (Size: 5.71 KB / Downloads: 45)
This is rather old, two full versions earlier than current. Perhaps it could be converted to QB64 or Freebasic.


RE: Eye of the Tiger song using PLAY commands - johnno56 - 08-20-2022

As I did not have PB installed, I downloaded and installed the "demo" version of PB (v573), then installed all the necessary libraries. PB started just fine. Loaded the QBPlay.pb file. Executed. Failed. "[13:29:52] [COMPILER] Line 226: Native types can't be used with pointers."

This occurred in the "Help Procedures". Line effected: "Protected *result.l, *sampleVal.WORD"

As I am unfamiliar with PB, I figured, this is as far as I go... Not wanting to risk further problems I took the time to report it...


RE: Eye of the Tiger song using PLAY commands - mnrvovrfc - 08-20-2022

Quote:This occurred in the "Help Procedures". Line effected: "Protected *result.l, *sampleVal.WORD"

The "dot-l" and "dot-WORD" assigns data type, however it's not supposed to be valid with asterisk in front. Such a backward programming language LOL...

Also "qbplay.pb" might not be useable in demo version of Purebasic even if it could meet the requirement of minimum number of source code lines. The other obstacle is that it was offered while Purebasic was on version 4 and many things were done to the product since then. So that people were forced to change their source code regularly to remain updated. Nope, gave up on it a long time ago for many other reasons, one was because few of the 3D examples worked on my 32-bit computer.