reaper-oss / sws

The SWS extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc
https://www.sws-extension.org/
MIT License
455 stars 85 forks source link

FR API: BR_GetArrangeView for midi editor #739

Open MichaelPilyavskiy opened 9 years ago

MichaelPilyavskiy commented 9 years ago

I got a request to do Ableton-like behaviour for grid (depending on zoom). So, is it possible to get start/end time of midi editor visibility?

Breeder commented 9 years ago

It's all in active take's chunk but it's not straight forward because it depends on MIDI editor timebase (ppq vs seconds) and I think you actually don't have start/end point but start point and zoom level from which you have to derive it.

Honestly, I would love to see more native API exposure in regards to MIDI editor because a lot of this kind of stuff should be trivial but in the end it turns out not as simple due to all the MIDI editor settings and chunk deciphering :)