New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported functions wish-list (ReaScript) #513

Open
Jeff0S opened this Issue Jul 8, 2014 · 21 comments

Comments

Projects
None yet
1 participant
@Jeff0S
Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on September 16, 2012 12:03:05

Describe the function you want. Please try to keep things concise!
Entering the interface you want could be enough, for example:
bool RemoveReceive(MediaTrack* track, int rcvIdx);

If we have the code on stock, it will be easy to share it with you (especially if you see SWS actions that are close to your needs..).

Original issue: http://code.google.com/p/sws-extension/issues/detail?id=513

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From mths.f...@googlemail.com on September 16, 2012 07:32:55

hey Jeffos,
as you obviously do have good connections to Santa, i really would like to know how he deals with Midi-events.

So my top wishes would be to get/set all/selected midinotes/cc-events if that is possibble with the extension.

If not, im already more than happy with the stuff you did in the latest beta :)

Oh, maybe like mentioned in the pre thread, CFGEDIT and CFGEDITVIEW or Gofers wish to get/set the track junk

i really appreciate that you guys do care so much for the scripters :)
thx
V

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on September 20, 2012 00:46:45

hi V! this the plan :) I can't talk for him, but I know fingers has some cool dedicated MIDI stuff he could share, I also have sopme kind of "generic" tool to process state chunks that could be handy.. we just have to sort little things out before adding more funcs, will post about that in the forum.
oh! and thanks for reminding me the CFGEDIT/CFGEDITVIEW thing (I already forgot!)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From mths.f...@googlemail.com on September 20, 2012 03:25:07

Yay Jeffos that sounds awesome, you're the best. Reascript's midi future looking pretty rosy.
If you need some more feedback (non-OSX unfortuneately im here. For now i content myself spying your code (the uncommented one) and i like what you did there :)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From francois...@laposte.net on September 25, 2012 10:25:05

Hi Jeffos,

Got the same wishes as "V". Looked a little at fingers stuff on the code page and I only found what seems to be advanced MIDI functions. What I need is basic ones which directly extracts from chunk the MIDI notes or CC or SYSEX. Something like:
string GetFromChunk(chunk, int itemPosInChunk, bool noteEvents, bool ccEvents, bool sysexEvents)
...and the reverse function to set the string in chunk after changes :
bool SetInChunk(chunk, int itemPosInChunk, string)

Thanks

benf

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From fingersmcgarnickle on September 25, 2012 13:03:20

I keep getting sidetracked on fixing my old shitty code :-) Will add a first pass at some MIDI functions soon.

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From fingersmcgarnickle on September 25, 2012 13:03:48

Change to enhancement

Labels: -Type-Defect Type-Enhancement

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From mim1...@gmail.com on September 28, 2012 06:46:42

Hello Jeffos,

I'm kind of new to REAscript.

I don't know if it's possible, but it would be uber useful to have function to change the preferences of REAPER.
I'm a big fan of SWS preferences toggles such as "Auto Add envelope in writing mode", and I would like to create my own REAPER scripts to set REAPER preferences "on the fly".

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on September 30, 2012 01:31:05

Hi Nim, you got such functions already:
+SNM_GetIntConfigVar()
+SNM_SetIntConfigVar()
+SNM_GetDoubleConfigVar()
+SNM_SetDoubleConfigVar()

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From mim1...@gmail.com on September 30, 2012 17:11:26

Oups my bad, I didn't think it coule be that easy ! Works Great ...
So let's try another request ..

  • Do you have some functions to ARM, VIS or BYPASS envelopes (by envelope IDs) ? I mean something that could be a shortcut to avoid to parse the thing ourself ?
  • Do you have a function to create an envelope for a vst parameter (still by giving IDs) ?

Thanks !

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From vientemu...@gmail.com on September 30, 2012 21:20:32

Would it be possible to add function to delete FX in slot # ?

smth like int RemoveFX(MediaTrack* track, int FX Slot)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From vientemu...@gmail.com on September 30, 2012 21:34:45

Also are the any extended functions of ShowMessageBox() where we can select our own name for the buttons?

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From mths.f...@googlemail.com on October 05, 2012 02:23:52

hey Fingers,
just in case you missed issue 520 ..
thanks VERY much, all you stuff works a treat.

And here we go, i've already got a FR :)
Do you guys have something in the extension to take care about the midi-filter?

If you dont, i would like to suggest a second FNG_GetMidiNote() which obeys the filter. I have some dirty and quick tested python re. funcs which i am happy to share if that helps you out in any way to translate to C++. I attach a test script with this post.

thanks
V

Attachment: filter.py

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on October 10, 2012 12:23:12

@nim
I will share a tool for this kind of chunk state processing (fast, handles corner cases for you, etc..). I just have some work to do on it first..

@Viente
I have some close code (for move selected fx up/down in chain actions", il will add something like SNM_MoveOrRemoveFX for you.
"Better ShowMessageBox()" I'm quite sure achieve that with python libs (?)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on October 10, 2012 12:25:34

(arrrg.. sorry about those typos! too fast..)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From vientemu...@gmail.com on October 11, 2012 16:28:10

Thx Jeffos, FX functions would be awesome as there is so little control over it atm.

About better message box, Not sure about 3rd paty modules but built in TKinter module is damn unstable in Reaper. Sometime its so frustrating that you only need few buttons with your own names for a comprehensive script...

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From pyt...@yahoo.com on October 17, 2012 02:59:40

Hey Guys,

I'm having a lot of fun using;
SNM_GetIntConfigVar()
SNM_SetIntConfigVar()
SNM_GetDoubleConfigVar()
SNM_SetDoubleConfigVar()

So how about adding SNM_GetStrConfigVar(), and SNM_SetStrConfigVar() ?

Thanks

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From vientemu...@gmail.com on October 18, 2012 18:02:03

Thx for FX functions! Going to test (and donate) asap :)

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From pyt...@yahoo.com on October 25, 2012 19:08:16

Would really love to have functions for working with all the options found in the 'Item Properties' dialog.

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From jeffos...@gmail.com on November 28, 2012 06:21:11

@anton: SNM_GetStrConfigVar() and SNM_SetStrConfigVar() are not doable unfortunately (we can only access "sized" vars: int, double,.. string sizes are variable per definition). However, you can access general string prefs via RPR_get_ini_file() + some python INI file functions.

Status: Started

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From eure.ja...@gmail.com on August 07, 2013 23:16:05

Some things I could use.

A script to change set the source channel and destination channel for send(x) of selected track. (creating new channels on the tracks if necessary.)

And to set the MIDI Bus and channel source destination of sends as well.

@Jeff0S

This comment has been minimized.

Member

Jeff0S commented Jul 8, 2014

From Argit...@gmail.com on August 29, 2013 08:53:31

Is it possible for a function that detects whether a waveform peak is positive or negative? For example, in normalizing functions it takes into account the entire waveform, but I need a way for a reascript to do something based on JUST positive or JUST negative. An example script would be something like "set snap offset to highest positive peak" Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment