Page 1 of 1

Noob problems with sound

Posted: Tue Nov 24, 2009 11:38 pm
by onthebrink
Hey all, i'm making my first tease - a flashtease with nyx - and i want to put a metronome in it. After searching the forums i found this:

2#page(
'Sound Example',
pic("*.jpg"),
go(#nexpage),
hidden:sound('yoursound.mp3')
)

I downloaded metronome sounds, uploaded some to nyx, and after a couple attempts, was able to get the sound working in the preview. Nice! Unfortunately every time I tinker with something in the tease, like write new pages, the instructions seem to have vanished from the script and no longer work in preview. Could anyone more experienced tell me what I might be doing wrong here?

Here's a page's script before I try to add the sound:
page6b#page(
'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Stroke your cock to the beat. I want a full stroke - that&apos;s a downstroke </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">and an upstroke - for each and every metronome beat.</FONT></P></TEXTFORMAT>',
pic("a6.jpg"),
delay(1min, page6c#)
);

And this is where i'm putting it:

'<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Stroke your cock to the beat. I want a full stroke - that&apos;s a downstroke </FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="FontSans" SIZE="18" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">and an upstroke - for each and every metronome beat.</FONT></P></TEXTFORMAT>',
pic("a6.jpg"),
delay(1min, page6c#),
hidden:sound('080-bpm.mp3')

);

Re: Noob problems with sound

Posted: Wed Nov 25, 2009 12:36 am
by cumhardy
onthebrink wrote: Unfortunately every time I tinker with something in the tease, like write new pages, the instructions seem to have vanished from the script and no longer work in preview. Could anyone more experienced tell me what I might be doing wrong here?

I think changing the tease in the visual editor messes with any edits you made to the script. i know it messes up my range commands so i do all that I can in visual then edit the script afterwards in notepad then paste it back in. Just to make sure, every time I open the tease again in nyx i make sure I copy the script back in.
Not sure if that helps, I cant see anything wrong in the script you posted

Re: Noob problems with sound

Posted: Wed Nov 25, 2009 3:24 am
by ballsfull
onthebrink wrote:Unfortunately every time I tinker with something in the tease, like write new pages, the instructions seem to have vanished from the script and no longer work in preview. Could anyone more experienced tell me what I might be doing wrong here?
You're not doing anything wrong... As Cumhardy said, as soon as you edit something else, Nyx makes the sound code disappear.... Not sure how to fix it, but as you've noticed, it's a pretty aggravating little "feature"...

Wish I had better news...

Barry

Re: Noob problems with sound

Posted: Wed Nov 25, 2009 8:45 am
by chewit
i get the same problem. The only way around it I have found is this way:

1) Use the visual tab to create the tease, everything except the sound. Then go to the script page and copy and paste it to a word doc, that way if you mess anything up manually editing later you have a backup.

2) Now use the script page to manually paste in the sound commands and save it (only from the script page), like the guys said, if you now go back to the visual tab and click save there it will overwrite your modified script and you lose the sound.

3) You can still use the preview to try out the tease etc, just never save it from the visual tab.

Re: Noob problems with sound

Posted: Wed Nov 25, 2009 4:59 pm
by onthebrink
Thanks for the help guys, good to hear I'm not the only one. I was just worried the sound wasn't being saved to the tease or something. I'll put it in once I've done the visual bits.