helgoboss / reaper-rs

Rust bindings for the REAPER C++ API
MIT License
80 stars 8 forks source link

Ambiguos medium-level API #68

Open Levitanus opened 1 year ago

Levitanus commented 1 year ago

Here are functions I'm not sure in. Which are better to discuss.

Levitanus commented 1 year ago

Considering Nudge I'm wondering in exact numbers for NudgeUnits.

Here is original API documentation:

nudgeunit: 0=ms, 1=seconds, 2=grid, 3=256th notes, ..., 15=whole notes, 16=measures.beats (1.15 = 1 measure + 1.5 beats), 17=samples, 18=frames, 19=pixels, 20=item lengths, 21=item selections

But, when I continued a sequence from 256th to 2th — I've finished on the literal 10, but not on the 14 as I would expect from docs.

I've never used nudge feature, so, here my expertise is out)

Levitanus commented 1 year ago

Well, not as straight, as I desired...

Levitanus commented 1 year ago

I feel, that AudioAccessor commit is OK. But, for the case, I put it here: not as straight, as typing arguments in right order.