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 > Having trouble understanding speed/BPM options Owner: javadlux New post
Page 1 of 1 Sort:  
Having trouble understanding speed/BPM options Posted: 2010-07-18 03:50 Reply | Quote
javadlux



Member for: 4356 days
Status: Offline

#7483
Hi,

I'm trying to work out some timing stuff and I'm having trouble seeing how the speed and BPM options work together. I assumed that the value for speed was the number of ticks between consecutive lines, which would then play at whatever the BPM was set to (this would, of course, change the duration of each 'tick' as the BPM changed). I wanted to use this to do triplets, by setting an instruments volume to (for example, with speed = 3) | 15 8 1 0. (4 'ticks' per note instead of 3, so for example 4 quarter notes = 12 ticks, and 4 ticks goes in 3 times, giving a 3-note tuplet). However, it seems to me this doesn't work.

Perhaps someone can help a newb and explain to me the true relationship between these values?

Thanks,

Mark

Posted: 2010-07-18 06:54 Reply | Quote
tadpole

Avatar

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

#7489
real tempo = (tempo * 6)/speed

Posted: 2010-07-18 07:04 Reply | Quote
javadlux



Member for: 4356 days
Status: Offline

#7490
Thanks! Also, what's the relationship between BPM and the 'frames' in the instrument sequencer? (see my example above about triplets) Is it 6 frames per BPM at speed 6?

Posted: 2010-07-18 08:23  (Last Edited: 2010-07-18 08:26) Reply | Quote
tadpole

Avatar

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

#7492
There's no relationship.
A frame is always 1/60th of a second.

If you are using t=150 and speed 1, each row lasts 1 frame.
With speed 2, 2 frames, etc.

Posted: 2010-07-18 09:03 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#7496
[quote=tadpole]A frame is always 1/60th of a second...[/quote]
...or simply 1/E second in FamiTracker 0.3.5. beta, where E is engine speed.

Posted: 2010-07-18 19:24 Reply | Quote
xolroc

Avatar

Member for: 4373 days
Location: Here
Status: Offline

#7500
Do you mean the computer's engine speed, or the engine speed determined by NTSC/PAL settings?

_______________________
If there is evil in this world, it lurks in the hearts of man.
--Trinicus D. Morrison

The Final Fantasy IX 8-bit project: 3 complete
http://famitracker.shoodot.net/forum/posts.php?id=1624
Posted: 2010-07-18 19:30 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#7502
For the latest beta: Find [Tracker] --> [Engine Speed] on the toolbar and you should find two selections: 'Default', 'Custom'. Click 'Custom' and you will be able to use a custom engine speed based on a per-module basis.
For earlier versions: It is the engine speed determined by the NTSC/PAL settings. NTSC's default engine speed is 60Hz while PAL's is 50Hz.

Posted: 2010-07-18 19:34 Reply | Quote
xolroc

Avatar

Member for: 4373 days
Location: Here
Status: Offline

#7503
I never knew there was a custom engine speed! Is it saved in .ftms?

_______________________
If there is evil in this world, it lurks in the hearts of man.
--Trinicus D. Morrison

The Final Fantasy IX 8-bit project: 3 complete
http://famitracker.shoodot.net/forum/posts.php?id=1624
Posted: 2010-07-18 19:42 Reply | Quote
nicetas_c



Member for: 4582 days
Location: AB, CA
Status: Offline

#7504
[quote=xolroc]I never knew there was a custom engine speed! Is it saved in .ftms?[/quote]
Yes.

Also jsr said that modules created with the coming stable release can be loaded with 0.3.0. if no new features are used. Custom engine speed might just be one of those.

Posted: 2010-07-18 23:18 Reply | Quote
javadlux



Member for: 4356 days
Status: Offline

#7508
Thanks for the info! So let's say I've got a speed of 6 and a tempo of 106, and a frame rate of 60hz (NTSC). The true BPM is 106 since the speed is 6, I assume every 4 lines is a quarter note, so an eighth note is 2 lines, or 212/60s, giving 212/60*60 = 1 eighth note per every 17 (approx) frames. Triplet eighth notes should then be one note every (17*2/3) = 11.3 frames... if sixteenth notes happen every 17/2 = 8.5 frames, this means that 3 notes on three consecutive lines with a delay of 3 frames and then 6 frames for the 2nd and 3rd notes should give triplet eighth notes? Hmm... that sounds about right when I test it out... so my math seems to be correct!

Page 1 of 1 Sort: