Hugo -- interactive sound. (sort of.)

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Hugo -- interactive sound. (sort of.)

Post by Ice Cream Jonsey »

Due to the fact that Ben has minute after sizzling minute of music lately (I think that he has broken the hour mark, in fact) and due to the fact that ChainGangGuy's song "Untitled" (it's the one by the Pseudo Band -- it is in a thread in the AG) has quickly become one of my favorite songs period, I decided to take the plunge and have music in the thing I'm working on.

It's 7:00am in the morning and I've been up way too long. But what I do recall is that music has been a topic of conversation in this base, and I want to share what code I write with everyone. I've got two main questions that I'll answer when I wake up:

1) What's the difference between the "music" and "playmusic" library functions?

2) Can Hugo recognize on move #2 that it is playing a given song per the request of what went on in move #1? Can you essentially generate an awareness of what's being played? Can this be tested for? If the answers to these questions result in the affirmative, it opens up the door to many possibilties. If not, I think (but I'm not sure) that I need to get it to the point where it can do this.

The first question is in the manual, so I just need to run a search for that. The second one I'll investigate when I wake up.
the dark and gritty...Ice Cream Jonsey!

Lex
Posts: 976
Joined: Sat Apr 27, 2002 4:03 pm
Location: Scotland, Bonnie
Contact:

Post by Lex »

come to Abertay. We have Hot Chix. And sweet little Indian girls with scottish accents. C'mon.

Not your deal? Then how about Asian girls with upper-class English accents?

JUST DO IT UP!

(durr-dee-dee-dee-durr-durr-durr-durr-dee-dee-durrdurrdurrdurrdurrdeedurrdurr).

It's a shame that one of my favourite songs of all time is from the original Command & Conquer, and I play Quantum Redshift two it.


THEY ARE TWO COMPLETLEY DIFFERENT GENRES!
WHOOA!

Lex
Posts: 976
Joined: Sat Apr 27, 2002 4:03 pm
Location: Scotland, Bonnie
Contact:

Post by Lex »

I SAID TEH RONG KINDOF TWOOOO! TO!
WHOOA!

PoliticallyIncorrectSpide

Post by PoliticallyIncorrectSpide »

Shut up, 'Ho!

You got any black chicks? Black chicks give you ANAL!

---Dah 'Spide!

Offensive Spider

Post by Offensive Spider »

fuk u, don steal my shtik

u got 1 of thos 'special' keybords, didn u

rich yuppie dumfuk

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post by Ice Cream Jonsey »

Thanks for ruining everything, Lex.
the dark and gritty...Ice Cream Jonsey!

Kent

music and PlayMusic

Post by Kent »

Basically 'music' is the language statement and 'PlayMusic' is a library wrapper around it. The benefit of using PlayMusic whenever you want to start or stop music is that you can keep track of what's being played, not force-restart it if it's already playing, etc. Check resource.h for the global variables set by PlayMusic--you should be able to check these at any time to get the current state of any playing music. (And ditto for PlaySound and sounds.)

User avatar
Ice Cream Jonsey
Posts: 30193
Joined: Sat Apr 27, 2002 2:44 pm
Location: Colorado
Contact:

Post by Ice Cream Jonsey »

Ah, that's perfect then. I'll take a look at resource.h. The way you describe it sounds like it behaves in just the way that I hoped that it would.

(I'll close this thread in a bit, so everyone who needed to get in shots to settle the last remaining scores and such should now do so.)
the dark and gritty...Ice Cream Jonsey!

Post Reply