Kyma Forum
  Kyma Support
  real-time note durations

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   real-time note durations
SamuelSacher
Member
posted 30 December 2011 09:07         Edit/Delete Message   Reply w/Quote
hi!

a little explanation please ...

if I want to know the durations for some sound in real-time terms, but in correlation to given bpm ...

lets say, the durations of crotchet in 100 bpm is

100 bpm s = 0.60000001430512d s

so duration of the whole note (or one bar in 4/4) will be
(100 bpm s)*4

but, what if I want to have duration for 1/5 of the bar (or 1/13, 1/21 ...)
to have 5/5 time (or 13/13, 21/21 ... Float pi/Float pi )

I tried with

((100 bpm s)*4)/5 = 0.48000001144409d s

is this the way to do it?

thanx!

also, I hope that everybody is eating sweets, and generally enjoying in season's treats

I wish you all a very Kyma and happy and successful 2012.

ss

IP: Logged

SSC
Administrator
posted 30 December 2011 11:22         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SamuelSacher:

((100 bpm s)*4)/5 = 0.48000001144409d s

is this the way to do it?


Yes, this would give you 1/5 of the bar duration.

If you want to derive the BPM from rate of triggers (the rate of KeyDowns, for example), you could use:

!KeyDown durationBetweenTriggers s bpm removeUnits

Happy New Year!

IP: Logged

SamuelSacher
Member
posted 30 December 2011 13:03         Edit/Delete Message   Reply w/Quote
thank you!

and I just remembered what I wanted to suggest: IMO it would be nice to be possible to save *.txt files inside the Sound files
so all the mathematics and staff would be in one/same place
just a thought!

best

ss

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c