Old 01-29-2017, 01:05 PM   #1
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,737
Default Script Request: Paste at mouse, with Pitch Cursor as base.

Is this maybe scriptable ?:

For example:

i have a chord in MIDI editor : C E G
I select that whole chord.
Then i point my mouse cursor somewhere in MIDI Editor, the mouse is placed (for example) on the F
pitch lane.

Then i execute the whishful Script.

It will do this:

1) Paste the chord at the time position where the mouse is, but the paste position is snapped to nearest grid line.
2) The pasted chord is also completely transposed, in that way, that it's bottom note (C) is placed on the F pitch lane.

So, in a more script steps way:

a) paste selected chord to mouse time position.
b) snap the paste to nearest grid line.
c) tranpose whole chord, (keeping it's relative intervals) ; bottom note of chord starts on pitch lane as is pointed by mouse.

In case there is only one note selected (so no chord), the paste will also land on the pitch lane, pointed by mouse.
vanhaze is offline   Reply With Quote
Old 01-30-2017, 05:11 AM   #2
kawa_
Human being with feelings
 
kawa_'s Avatar
 
Join Date: Mar 2016
Posts: 117
Default

hi, vanhaze
I wrote that actions script.

( bellow img action )
  • Cut/ Copy Selected notes
  • kawa_MIDI_PastToUpperOnMousePitch.lua ( attached script )



but perhaps this script might get wrong result. ?
Attached Files
File Type: lua kawa_MIDI_PastToUpperOnMousePitch.lua (7.5 KB, 79 views)
File Type: lua kawa_MIDI_PastToUpperPitchCursor.lua (7.7 KB, 68 views)
__________________
web | kawaScripts | donate | twitter |
kawa_ is offline   Reply With Quote
Old 01-30-2017, 06:57 AM   #3
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,737
Default

Dear kawa,

This is really amazing, thanks so much !
I tested them and the script kawa_MIDI_PastToUpperOnMousePitch.lua does
exactly as wished for !

I think alot of Reaper MIDI users will be amazed by this, cause with this script
you can truly "paint in" Chords in MIDI Editor very fast, when the script is keybinded (which i have done).

Do you plan to release it in ReaPack ?
If so, i then want to make a youtube tutorial on it :0)
vanhaze is offline   Reply With Quote
Old 01-30-2017, 09:41 AM   #4
kawa_
Human being with feelings
 
kawa_'s Avatar
 
Join Date: Mar 2016
Posts: 117
Default

Dear vanhaze,

Thank you !

Quote:
Originally Posted by vanhaze
Do you plan to release it in ReaPack ?
If so, i then want to make a youtube tutorial on it :0)
yes, I wish add my reapack repository. I think I will update at next week or recently.(I typo "past" and "paste". I fix this. )

Reaper MIDI Editor: The Arpeggio/Strumming Tool : https://www.youtube.com/watch?v=UkdrS5J_CD4
I did not know this tools . thank you vanhaze

and I came up with this "insert Diatonic Chord from on Mouse pitch" script action.
I think to try to do from now.
__________________
web | kawaScripts | donate | twitter |
kawa_ is offline   Reply With Quote
Old 01-30-2017, 09:47 AM   #5
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,737
Default

Quote:
Originally Posted by kawa_ View Post
Dear vanhaze,

Thank you !



yes, I wish add my reapack repository. I think I will update at next week or recently.(I typo "past" and "paste". I fix this. )

Reaper MIDI Editor: The Arpeggio/Strumming Tool : https://www.youtube.com/watch?v=UkdrS5J_CD4
I did not know this tools . thank you vanhaze

and I came up with this "insert Diatonic Chord from on Mouse pitch" script action.
I think to try to do from now.
UR welcome and many thank kawa !
vanhaze is offline   Reply With Quote
Old 01-31-2017, 08:04 AM   #6
kawa_
Human being with feelings
 
kawa_'s Avatar
 
Join Date: Mar 2016
Posts: 117
Default

Thank you! vanhaze !

I created "insert Chord from on Mouse pitch" scripts ( it is I posted at yesterday) .

[ scirpts on "C" key and "major scale". it is same as "insert Diatonic chord". and if on Mouse Pitch is not scale note , this script will not insert Chord. ]



[ continus running scripts (if same as last on mouse pitch note) , switch four chord and three chord. ]



[ detection "Key" and "Scale" setting is midi Editor" key Snap" setting. ]



[image: at running scripts with "C" Key and Natural minor" scale setting ]




however, these scripts might not be correctly chord at all scales. ( I could not be tested at all scales).
I will examine these script a little more whether behavior and wrong results.
I wish add these scripts to ReaPack repository .

Edited:

I had script moved to my Reapck repository
you can install via reapack.( more https://bitbucket.org/kawaCat/reascr...k/wiki/Install
__________________
web | kawaScripts | donate | twitter |

Last edited by kawa_; 02-04-2017 at 01:01 PM.
kawa_ is offline   Reply With Quote
Old 01-31-2017, 11:23 AM   #7
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,737
Default

Woooha, really insane !
I am gonna try them out tonight, Many thanks kawa !!
vanhaze is offline   Reply With Quote
Old 02-04-2017, 05:54 PM   #8
kimi
Human being with feelings
 
Join Date: Feb 2017
Posts: 3
Default

why this isn't working here?? i am trying to draw chords on any octave but they all got snapped on lowest D major...
i'm new to all this script things so any help would be much appreciated

thanks


Last edited by kimi; 02-05-2017 at 02:03 AM. Reason: add giff
kimi is offline   Reply With Quote
Old 02-05-2017, 01:10 AM   #9
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,737
Default

Sorry i can't help you.
Hopefully kawa can chime in ..:0)
vanhaze is offline   Reply With Quote
Old 02-05-2017, 06:42 AM   #10
kawa_
Human being with feelings
 
kawa_'s Avatar
 
Join Date: Mar 2016
Posts: 117
Default

Thank you testing! kimi and vanhaze

I will post more thread. sorry please wait. I thinking about this behavior now.
( I might be can not resolve this behavior.
__________________
web | kawaScripts | donate | twitter |
kawa_ is offline   Reply With Quote
Old 02-07-2017, 04:41 AM   #11
kkostovas
Human being with feelings
 
Join Date: Sep 2015
Posts: 71
Default

Thank you kawa for one more amazing script and vanhaze for the wonderful ideas(keep them coming).

I find this script very creative when you know what chords you want to lay down as it is very fast and does not get in the way(in a creative way).
kkostovas is offline   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 09:18 AM.


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