Old 04-16-2024, 03:54 AM   #1
mozart999uk
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,748
Default Possible to get this script to work in midi editor?

Is it possible to make this script

Amagalma: place play cursor into view (when playing) or center edit cursor (when stopped).eel

work in the midi editor as well?

Here's the script itself:

// @description amagalma_Place play cursor into view (when playing) or Center edit cursor (when stopped)
// @author amagalma
// @version 1.0
// @about
// # If playing: positions the play cursor at the first sixth of the arrange view
// # If stopped: centers the edit cursor at the middle of the arrange view, if possible

state = GetPlayStateEx( 0 );
GetSet_ArrangeView2( 0, 0, 0, 0, start, end );
wide = end - start;
state & 1 == 1 || state & 4 == 4 ? (
cursor = GetPlayPosition();
extension_api("BR_SetArrangeView", 0, cursor - wide/6, cursor + wide*5/6 );
) : (
cursor = GetCursorPosition();
extension_api("BR_SetArrangeView", 0, cursor - wide/6, cursor + wide/2 );
);
function NoUndo()(abs(0)); defer("NoUndo()");



It moves the edit cursor to the first 6th of the arrange view which I'd love to also have when using a midi editor full screen......
mozart999uk is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.