Page 1 of 1

Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 12:45 am
by the_dark_lord_42
How do I do it?

Re: Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 12:55 am
by Vinny Vodka
First you need a recording of a metronome.
Then upload that file into your tease and enter

hidden:sound(id:'4bps.mp3')

on any page you want the sound. Note that 4bps.mp3 should be changed to whatever your metronome file name is. One thing that makes this a bit tricky is it seems to only work if it's the last thing entered in the page, before the final...
);

This allows you avoid putting a comma at the end of the sound line which for some reason seems to prevent the sound from working. Thus while the following would work...

page1#page(
'Stroke to the beat',
pic("nakedredhead.jpg"),
go(page2#),
hidden:sound(id:'4bps.mp3')
);

...the following would not.

page1#page(
'Stroke to the beat',
pic("nakedredhead.jpg"),
hidden:sound(id:'4bps.mp3'),
go(page2#)
);

Re: Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 12:57 am
by the_dark_lord_42
Thanks!

Re: Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 5:30 am
by Nezhul

Re: Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 6:30 am
by Vinny Vodka
That thread is a great resource, however some of the stuff in there is not accurate. In particular with sounds, the loops feature never did get added to nyx, so no matter how you try it it isn't going to happen.

Re: Adding metronome sounds in Nyx

Posted: Fri Oct 01, 2010 7:34 am
by Nezhul
Yea... I'm going to rewrite it soon. I think...