Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > FamiTracker Talk > vista tempo problems Owner: rikkitikkitumbo New post
Page 1 of 1 Sort:  
vista tempo problems Posted: 2010-10-24 21:46 Reply | Quote
rikkitikkitumbo



Member for: 4257 days
Status: Offline

#10770
hello, this has probably been covered already, but I'm having trouble getting a constant tempo in famitracker on my vista computer.


I've messed around with all sorts of audio buffer lengths, but nothing changes.

I'd like to be able to play this song at 140 bpm or so, but it speeds up and slows down at different parts of the song.


how can I fix this?


thanks

-greg


Attachments:
blaster_pistol.ftm (26 Kb)
RE: vista tempo problems Posted: 2010-10-24 21:53 Reply | Quote
MovieMovies1

Avatar

Member for: 4373 days
Location: Norway
Status: Offline

#10771
I dunno why it happens to you. I use Windows Vista, and the tempo is consistent to me.

Posted: 2010-10-24 22:20 Reply | Quote
rikkitikkitumbo



Member for: 4257 days
Status: Offline

#10772
it's strange, maybe I'm just hearing things, but it seems that 138 bpm works much better than 140bpm.




Also, I'm running at 60 Hz, which I'm pretty sure is the default.




Posted: 2010-10-25 00:26 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#10774
60 Hz is the default frequency of the tracker & number of beats per minute isn't something that's actually consistent in this tracker (mainly because the true frequency of an NTSC TV isn't exactly 60 Hz).

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Posted: 2010-10-25 01:07 Reply | Quote
tadpole

Avatar

Member for: 5712 days
Location: Renton, WA, USA
Status: Offline

#10776
I don't think your OS is at fault. Here's a long-winded lesson in tempo.

Unfortunately, when tempo is set to 140, each row will not last an equal amount of time.

Tempo = 150*24/x (x = frames per quarter note)
set x = 25, tempo is 144
set x = 26, tempo is 138.46

See, there is no integer for x that gives a tempo of 140. If you use 140, some quarter notes will last 26 frames, and others will last 25 - hence the song 'speeding up and slowing down'.

If you end up using 25 or 26 frame quarter notes, you still are going to run into problems if you are using smaller note durations than quarter notes.

For example, if 25 frames = 1 quarter note, then 8th notes will have to alternate between 13 and 12 frames. 16th notes will be 7, 6, 6, 6.

The trick to remember is:
When tempo is set to 150, and speed set to 1, each row will last exactly 1 frame. Set speed to 2, each row lasts exactly 2 frames, etc.

In the attached FTM, I show an example of setting up 26 frames/quarter note, where a quarter note is 8 rows. Check out the Fxx commands in the DPCM channel. The 8th notes durations alternate between 6 and 7 frames.


Attachments:
tempo_example.ftm (2 Kb)
Posted: 2010-10-25 09:10 Reply | Quote
rikkitikkitumbo



Member for: 4257 days
Status: Offline

#10789
thanks so much for your help.


So given what you've told me, here's my next question: When I set the tempo to 138 in Famitracker, what exactly happens? Does it round somehow? How does it divy up the frames? I did some experiments:

I put a quarter note kick on at 138 bpm and pushed play at the same time as your file, and noticed they were almost exactly the same, but not quite....they drifted apart really slowly over time.

I also listened very closely at 138 bpm with both quarter notes, and then 8th notes, and then 16th notes....it sounded good. I then switched it to 140 bpm and it sounded bad, which makes sense given what you've told me. These tempos should all sound good up to 8th notes:

100
105.88
112.5
120
128.57
138.46
150
163.63


etc

because of this formula:
Tempo = 150*24/x (x = frames per quarter note)

Only a few of those would sound perfect at 16th notes.



Last question: I still can't get my head around the relationship between "speed" and "tempo." How is tempo defined? I feel like maybe you've already given me all the pieces I need, but it's still stumping me.



Posted: 2010-10-25 09:37  (Last Edited: 2010-10-25 09:51) Reply | Quote
tadpole

Avatar

Member for: 5712 days
Location: Renton, WA, USA
Status: Offline

#10790
You're welcome!

1.) When you set the tempo to 138, some of the rows will last longer than others. It's going to be a pain figuring out which. That's why I would recommend always leaving the tempo at 150. Then you know exactly how many frames each row lasts (it equals the speed setting used for that row!). Instead of worrying about your global tempo setting, worry about how many frames you want per quarter note.

2.) Speed vs. Tempo: The speed is actually a tempo MULTIPLIER. A speed of '6' is 6x slower than a speed of '1'. A speed of '2' is twice the speed of '4'.

That's why at t150, a row at speed 4 lasts 4 frames, while a row at speed 1 lasts 1 frame, etc.

Page 1 of 1 Sort: