[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] TempoClock : helpfile + useful method addition?



Hello All

1) bar-related methods aren't documented in the helpfile:
bar, nextBar, baseBar and baseBarBeat

Is anyone planning to do these for 3.2?
If not, am happy to oblige.

2) A method to return what beat of the current bar
we're in could be useful for old-fashioned conductor-type counting

See below, Opinions on this?

// returns the beat number of the current bar
// ie range is 0 to (t.beatsPerBar - 1)

+ TempoClock {
	beatInBar { ^this.beats - this.bars2beats(this.bar) }
}