Re: [LAD] Dealing with time

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joel Roth <joelz@...>
Cc: <linux-audio-dev@...>
Date: Monday, February 21, 2011 - 8:03 pm

--20cf30549a6b788e80049cd0590d
Content-Type: text/plain; charset=ISO-8859-1

Hey,

In my own pet project I've abstracted things like samplerate, sample time,
MIDI time and anything else to
one value, which I've lovingly named "beatPercent". Its a single "float"
variable.

The value itself is the musical "beat" of the event, and the "Percent" part,
is how far along that beat the event occurs.
Of course depending on samplerate etc etc there may be a (tiny) discrepancy
in this "percent" value, but I can
happily live with that.

Keep in mind that the project only deals with standard 4 / 4 music, and I've
no intrest in weird but wonderful timing
games. I wanted something that would abstract away all jack_nframes, timer
ticks etc and I could easily work with.

I haven't found any big drawbacks yet, but I'm not trying to develop SMPTE
or MTC or anything either, so there may
be issues that I haven't come across yet.

Hope that was of some help, -Harry

--20cf30549a6b788e80049cd0590d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hey,In my own pet project I've abstracted things like samplerat=
e, sample time, MIDI time and anything else toone value, which I've=
lovingly named "beatPercent". Its a single "float" var=
iable.
The value itself is the musical "beat" of the event, and the =
"Percent" part, is how far along that beat the event occurs.O=
f course depending on samplerate etc etc there may be a (tiny) discrepancy =
in this "percent" value, but I can
happily live with that. Keep in mind that the project only deals wi=
th standard 4 / 4 music, and I've no intrest in weird but wonderful tim=
inggames. I wanted something that would abstract away all jack_nframes,=
timer ticks etc and I could easily work with.
I haven't found any big drawbacks yet, but I'm not trying to de=
velop SMPTE or MTC or anything either, so there maybe issues that I hav=
en't come across yet.Hope that was of some help, -Harry

--20cf30549a6b788e80049cd0590d--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Dealing with time, Joel Roth, (Mon Feb 21, 6:51 pm)
Re: [LAD] Dealing with time, Harry Van Haaren, (Mon Feb 21, 8:03 pm)