Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Pre-Release Discussion

Reply
 
Thread Tools Display Modes
Old 06-23-2015, 06:25 AM   #161
javiramallo
Human being with feelings
 
javiramallo's Avatar
 
Join Date: Oct 2012
Location: Merida, Spain
Posts: 387
Default

Hi Partners.

How can I use SWS extension in a "portable install " of reaper 5?

I guess I am not the first one asking about that but I was looking for this issue and I could not find nothin about it.

Sorry if is an already answered matter.

Thanks.

Last edited by javiramallo; 06-23-2015 at 07:08 AM. Reason: My Bad English.
javiramallo is offline   Reply With Quote
Old 06-23-2015, 07:29 AM   #162
dasombre
Human being with feelings
 
dasombre's Avatar
 
Join Date: Dec 2009
Posts: 543
Default

Quote:
Originally Posted by Jeffos View Post
Oops, yes, all "prompt for slot" actions have been removed... It seems I was drunk or something
Bringing them back for the next build, thanks for the heads up!
...

great Jeffos, Thanks a lot for the info. Please bring back "prompt for slot". It's just to great to not have it
dasombre is offline   Reply With Quote
Old 06-23-2015, 08:09 AM   #163
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by javiramallo View Post
How can I use SWS extension in a "portable install " of reaper 5?
If you're using Windows, simply point the installer to REAPER folder.
Breeder is offline   Reply With Quote
Old 06-23-2015, 08:29 AM   #164
javiramallo
Human being with feelings
 
javiramallo's Avatar
 
Join Date: Oct 2012
Location: Merida, Spain
Posts: 387
Default

Quote:
Originally Posted by Breeder View Post
If you're using Windows, simply point the installer to REAPER folder.

Oh my god... It Was so simple that I am ashamed.

Thanks

Last edited by javiramallo; 06-23-2015 at 08:34 AM. Reason: My Bad english.
javiramallo is offline   Reply With Quote
Old 06-23-2015, 02:23 PM   #165
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default

Quote:
Originally Posted by javiramallo View Post
Oh my god... It Was so simple that I am ashamed.

Thanks


I think many of us have forgotten or overlooked this "obvious" install logic before



>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 06-29-2015, 08:37 AM   #166
Mercado_Negro
Moderator
 
Mercado_Negro's Avatar
 
Join Date: Aug 2007
Location: Caracas, Venezuela
Posts: 8,676
Default

I have a question. I'm trying the actions "copy fx chain from selected items" and "paste fx chain to selected items" but pasting doesn't seem to work. This is what I'm doing:

1) Select item (it has a ReaEQ instance)
2) Run "copy fx chain from selected item"
3) Select another item
4) Run "paste fx chain to selected item"

The FX chain isn't pasted.

The action to "paste (replace)" does work but I don't want that because I may have a FX chain already there on the second item.

[EDIT] Meh, closed and opened REAPER and now it works... I hate when that happens
__________________
Pressure is what turns coal into diamonds - Michael a.k.a. Runaway
Mercado_Negro is offline   Reply With Quote
Old 06-30-2015, 06:23 AM   #167
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Quote:
Originally Posted by Mercado_Negro View Post
[EDIT] Meh, closed and opened REAPER and now it works... I hate when that happens
There's a buglet impacting a bunch of take actions, it's already fixed for the next build (release tomorrow, hopefully). Well, let me know if it isn't. Weird. The bug has always been there AFAICT, now looking at why it's being uncovered all of a sudden (4 or 5 recent reports in those lines already)...

EDIT: Mercado_Negro, have you run some actions (like glue, etc) on these items before using copy/paste fx chain actions?

Last edited by Jeffos; 06-30-2015 at 06:58 AM. Reason: Q for Mercado_Negro
Jeffos is offline   Reply With Quote
Old 06-30-2015, 07:38 AM   #168
Mercado_Negro
Moderator
 
Mercado_Negro's Avatar
 
Join Date: Aug 2007
Location: Caracas, Venezuela
Posts: 8,676
Default

Quote:
Originally Posted by Jeffos View Post
There's a buglet impacting a bunch of take actions, it's already fixed for the next build (release tomorrow, hopefully). Well, let me know if it isn't. Weird. The bug has always been there AFAICT, now looking at why it's being uncovered all of a sudden (4 or 5 recent reports in those lines already)...

EDIT: Mercado_Negro, have you run some actions (like glue, etc) on these items before using copy/paste fx chain actions?
Thanks for your time, Jeff. Yes, those items were glued but I haven't been able to reproduce it again with the very same items. It's been working flawlessly since that REAPER restart.
__________________
Pressure is what turns coal into diamonds - Michael a.k.a. Runaway
Mercado_Negro is offline   Reply With Quote
Old 07-07-2015, 08:22 AM   #169
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Well, it time to ask questions))

- BR_Win32_GetPrivateProfileString
- BR_Win32_ShellExecute
- BR_Win32_WritePrivateProfileString

How to use it and for what? API help generates nothing.
As I rememmber, forum talk was about get or write something from/to .ini file.
So, is it possible to change some reaper setting by writing reaper.ini (i guess, it is hot thing, and not recomended by any devs) by this functions?
mpl is offline   Reply With Quote
Old 07-07-2015, 08:31 AM   #170
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by mpl View Post
Well, it time to ask questions))

- BR_Win32_GetPrivateProfileString
- BR_Win32_ShellExecute
- BR_Win32_WritePrivateProfileString

How to use it and for what? API help generates nothing.
As I rememmber, forum talk was about get or write something from/to .ini file.
So, is it possible to change some reaper setting by writing reaper.ini (i guess, it is hot thing, and not recomended by any devs) by this functions?
Even if you could (and using some means you can) change the main reaper.ini file, there's no API to force Reaper to load and apply the changed values. I am sure the best course of action if you want some Reaper setting to be changeable programmatically is to ask for a dedicated API function for it from Cockos.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 07-07-2015, 08:57 AM   #171
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

There was a little request to me to write script, that would change defaut Browse FX folder to "all plugins" after every closing Browse FX window. Line in reaper.ini / [REAPER-fxadd] / lastview.

So I thought everytime I open Browse FX window, Reaper get folder from this line, and that why I ask for this possibility).
But now I watched it better. reaper.ini is changing while reaper.exe works, but this parameter not changing (though reaper store by someway last showed folder).
mpl is offline   Reply With Quote
Old 07-07-2015, 09:13 AM   #172
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

I can't see any "BR_" prefixed functions in the API help file. ("SNM_" -functions are still there.)
spk77 is offline   Reply With Quote
Old 07-07-2015, 09:16 AM   #173
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by mpl View Post
Well, it time to ask questions))

- BR_Win32_GetPrivateProfileString
- BR_Win32_ShellExecute
- BR_Win32_WritePrivateProfileString

How to use it and for what? API help generates nothing.
As I rememmber, forum talk was about get or write something from/to .ini file.
So, is it possible to change some reaper setting by writing reaper.ini (i guess, it is hot thing, and not recomended by any devs) by this functions?
Writing to .ini is not a way to do it if you want to change settings so the change is obvious immediately. You change those by changing their variables with SWS API:
Code:
SNM_SetIntConfigVar
SNM_SetDoubleConfigVar
Of couse, those API functions only cover integers and floats, not strings.

The most usual scenario for these functions is this:
  • BR_Win32_GetPrivateProfileString
    You can use it to read certain string from REAPER.ini (or some other .ini file) which you can't get with already mentioned SNM API. Of course, this doesn't have to always work because string in .ini file don't necessarily have to be the same as one loaded in the memory (REAPER may write to .ini files when it needs and that doesn't always have to be when you change some setting, but later...when quiting REAPER for example), but my experience with REAPER is that it usually writes to .ini as soon as some setting is changed.

    For example, we can read currently loaded REAPER theme using this API:
    Code:
    _, theme = reaper.BR_Win32_GetPrivateProfileString("reaper", "lastthemefn4", "", reaper.GetResourcePath().. "\\REAPER.ini")
    reaper.ShowConsoleMsg(theme .. "\n")
    Note that this script is actually useless because there's also new BR_ API to read current theme But it's useful example none the less...


  • BR_Win32_WritePrivateProfileString
    As already mentioned, to set current reaper variables you use already mentioned API which changes settings directly in the memory
    Code:
    SNM_SetIntConfigVar
    SNM_SetDoubleConfigVar
    However, changing these variables like this won't update the .ini file so when you start REAPER again, settings you changed with this API won't get remember. But now you can use these functions in tandem to remedy that.
    For example, this will toggle the option to show/hide item name in arrange and make sure any changes made are preserved between REAPER restarts (because we're writing to .ini):
    Code:
    function ToggleBit (value, bit)
      return value ~ 1 << bit
    end
    
    -- Get current options
    option = reaper.SNM_GetIntConfigVar("labelitems2", -666)
    
    -- Toggle the option to show/hide item name in arrange
    option = ToggleBit (option, 0) -- options to show/hide item name in the arrange is set at first bit of retrieved option
    
    -- Change the option (and update arrange)
    reaper.SNM_SetIntConfigVar("labelitems2", option)
    reaper.UpdateArrange()
    
    -- Write the option to REAPER.ini so the change stays preserved when REAPER is started next time
    reaper.BR_Win32_WritePrivateProfileString("reaper", "labelitems2", tostring(option), reaper.GetResourcePath().. "\\REAPER.ini")

  • BR_Win32_ShellExecute
    Ok, this one can do a lot of stuff. And it's already possible in Lua, but this version won't show you that irritating bash window. The best resource for this one is indeed MSDN documentation:
    https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx

    But here's an example on how to use this API to switch theme in REAPER. This script will set current REAPER theme do v3.0 Default theme:
    Code:
    function GetThemePath (theme)
      local themePath = reaper.GetResourcePath() .. "\\ColorThemes\\" .. theme
    
      if reaper.file_exists(themePath .. ".ReaperThemeZip") then
        themePath = themePath .. ".ReaperThemeZip"
      elseif reaper.file_exists(themePath .. ".ReaperTheme") then
        themePath = themePath .. ".ReaperTheme"
      else
        themePath = ""
      end
    
      return themePath
    end
    
    function LoadTheme (theme)
      local themePath = GetThemePath(theme)
      if themePath ~= "" then
    
        themePath           = "\"" .. themePath .. "\" " .. "-nonewinst -ignoreerrors"
        local reaperPath    = reaper.GetExePath() .. "\\reaper.exe"
    
        reaper.BR_Win32_ShellExecute("open", reaperPath, themePath, "", 1) -- 1 stands for SW_SHOWNORMAL flag
        return true
      else
        return false
      end
    end
    
    
    LoadTheme("Default_3.0")

To get more details on these functions, just search MSDN documentation (these API functions were exposed mostly for the people who already understand win32 - it started with me needed a few of the win32 APIs so I decided to share them)

I actually exported much more of win32 stuff but there were some problems regarding exporting implementation and it was deemed too dangerous because win32 API can be dangerous in wrong hands - so these were the only ones that were decided as "ok" for export because they aren't as complicated and are useful. Why am I writing this? Because I promised more win32 API on the forums before I consulted with Jeffos when we decided to move it out before releasing.

Last edited by Breeder; 07-07-2015 at 10:30 AM.
Breeder is offline   Reply With Quote
Old 07-07-2015, 09:24 AM   #174
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by Xenakios View Post
Even if you could (and using some means you can) change the main reaper.ini file, there's no API to force Reaper to load and apply the changed values.
Yes there is, using SWS API!
Code:
SNM_SetIntConfigVar
SNM_SetDoubleConfigVar
Breeder is offline   Reply With Quote
Old 07-07-2015, 09:33 AM   #175
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by spk77 View Post
I can't see any "BR_" prefixed functions in the API help file. ("SNM_" -functions are still there.)
I can confirm this! It seems REAPER stops importing functions after importing C++ only function SNM_ReadMediaFileTags()
https://github.com/Jeff0S/sws/blob/2...cript.cpp#L132

Jeffos changed that so I guess he will fix it on REAPER side
Breeder is offline   Reply With Quote
Old 07-07-2015, 09:37 AM   #176
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Thanks again! Very nice new functions
spk77 is offline   Reply With Quote
Old 07-07-2015, 10:02 AM   #177
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Breeder View Post
Yes there is, using SWS API!
Code:
SNM_SetIntConfigVar
SNM_SetDoubleConfigVar
Don't these work by changing the in-memory variables, though? I have been aware that is possible to do since many years.

What doesn't seem that easy and convenient to do is changing the on-disk .ini file directly and getting any "visible" changes in Reaper happening. (Apart from quitting and restarting Reaper...)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 07-07-2015, 10:29 AM   #178
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by Xenakios View Post
Don't these work by changing the in-memory variables, though? I have been aware that is possible to do since many years.

What doesn't seem that easy and convenient to do is changing the on-disk .ini file directly and getting any "visible" changes in Reaper happening. (Apart from quitting and restarting Reaper...)
Yup, they just change in-memory variables.

But for most settings that's enough (at least from my experience). The only problematic settings are usually the ones to do with strings. Though, some can be handled with ShellExecute (as demonstrated in earlier example to load different theme)
Breeder is offline   Reply With Quote
Old 07-07-2015, 05:01 PM   #179
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,872
Default v 2.7.2 #0

Code:
BR_GetMidiTakePoolGUID
That is nice

Thanks for all the new feature and bugfixes...

ANd Bravo to Breeder for his work on SWS extensions !
X-Raym is offline   Reply With Quote
Old 07-08-2015, 02:27 AM   #180
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

We're getting close to an official release (that will come along with REAPER 5), so we'd like to hear from you about:
=> VST3: Is everything ok for you? (snapshots, various FX actions, etc)
=> and, for OS X users, is everything ok with the new install disk image? Details here

Quote:
Originally Posted by spk77 View Post
I can't see any "BR_" prefixed functions in the API help file. ("SNM_" -functions are still there.)
v2.7.3 should fix this bug, thanks for the report!
Jeffos is offline   Reply With Quote
Old 07-08-2015, 09:46 AM   #181
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Breeder, thank you. That is hard to understand for me.
So, I asking two questions, which closing all my other stupid questions.

1. I need to change reaper.ini/[REAPER-fxadd]/lastview=0 I mean set default folder to "All Plugins". For use in macro like
- set browse fx default folder to "all plugins"
- open browse fx window

PHP Code:
 -- ok for unknown reason this returns err value:
 -- 
string reaper.SNM_GetIntConfigVar("lastview"222)
 -- 
reaper.ShowConsoleMsg(string)
 
 -- 
this returns right value
 
-- retvalstring reaper.BR_Win32_GetPrivateProfileString("REAPER-fxadd""lastview""0"reaper.GetResourcePath().. "\\REAPER.ini")
 -- 
reaper.ShowConsoleMsg(string)
 
 -- 
sotry to write the value
  reaper
.SNM_SetIntConfigVar("lastview"0)
 -- 
reaper.BR_Win32_WritePrivateProfileString("REAPER-fxadd""lastview""0"reaper.GetResourcePath().. "\\REAPER.ini"
It writes value to .ini, but it works only first time. I start reaper, then open Browse FX folder, changed folder to something, it doesn`t appear to reaper.ini. So, as understood REAPER use 2 memory places. First time (on start) REAPER get all values from reaper.ini. After that it store/get values to/from some internal memory we haven`t access to, right?

2. After overview your link to MSDN didn`t find something about mouse.
We still can`t get mouse state (like in gfx) via this new functions, right?

Last edited by mpl; 07-08-2015 at 09:54 AM.
mpl is offline   Reply With Quote
Old 07-09-2015, 09:25 AM   #182
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Hey Guys, some good stuff in the latest SWS update!

Breeder. Loving the take preview options! They're are very useful.

One thing kind of related that would be amazing (if possible are 2 actions to either increase or decrease the amount of visible lanes in prefs.

Is that possible?

The preference is called "Maximum number of lanes, when showing overlapping items in lanes". If the number could be increase with an action when needed and and reduced again that would be insanely amazing.

Perhaps even an additional action that would reset it to "1" lane so we can then create cycle actions that would work as "presets" for setting number of lanes.

No worries if not be awesome if possible
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 07-10-2015, 10:31 AM   #183
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Quote:
Originally Posted by Jeffos View Post
v2.7.3 should fix this bug, thanks for the report!
Thanks for the fixes/new functions!
spk77 is offline   Reply With Quote
Old 07-11-2015, 03:27 PM   #184
dadek
Human being with feelings
 
Join Date: Jun 2009
Posts: 65
Default

Can no longer get to that pre-release link for OSX users. 404
dadek is offline   Reply With Quote
Old 07-12-2015, 12:42 AM   #185
airon
Human being with feelings
 
airon's Avatar
 
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
Default

They might be updating it.
__________________
Using Latch Preview (Video) - Faderport 16 setup for CSI 1.1 , CSI 3.10
Website
"My ego comes pre-shrunk" - Randy Thom
airon is offline   Reply With Quote
Old 07-12-2015, 05:03 AM   #186
javiramallo
Human being with feelings
 
javiramallo's Avatar
 
Join Date: Oct 2012
Location: Merida, Spain
Posts: 387
Default Stretch Marker Bypass.

Hi friends. Usually, when I am working in a large project with a lot of Stretch Markers, I need momentarily ByPass (Not Delete) all of the "Stretch Markes" in the project in order to test certain things. Anyone know about an action like this one in the future release of the SWS EXT.

Only That, bypass (Not delete) stretch markes feature.

The best for all.

BtW. Thank you for the amazing releases until now. Your work make our live better and easier. Really thanks for the effort.
Cheers from Spain.
javiramallo is offline   Reply With Quote
Old 07-12-2015, 08:19 AM   #187
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by javiramallo View Post
Hi friends. Usually, when I am working in a large project with a lot of Stretch Markers, I need momentarily ByPass (Not Delete) all of the "Stretch Markes" in the project in order to test certain things. Anyone know about an action like this one in the future release of the SWS EXT.

Only That, bypass (Not delete) stretch markes feature.

The best for all.

BtW. Thank you for the amazing releases until now. Your work make our live better and easier. Really thanks for the effort.
Cheers from Spain.
I don't recall/think there is yet but you could "duplicate" the takes before putting in the stretch markers and then at least you can simply switch takes to hear/see what it's like originally versus the stretched one.

This doesn't take up any more resources either as a take is just a reference when it's duplicated like this

Not ideal and hopefully someone else has a better solution!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 07-18-2015, 03:35 AM   #188
Janne83
Human being with feelings
 
Join Date: May 2010
Location: Earth
Posts: 1,883
Default Fill gaps- stretch marker issue

I dont know if this was already reported but the Fill gaps actions dont play well with items that have stretch markers.

If you execute a fill gaps command the right adjacent wave moves which can lead to unwanted results. (if there is no stretch markes it stays in place as it should)



J
__________________
Win11, R 64bit
Janne83 is offline   Reply With Quote
Old 07-18-2015, 12:03 PM   #189
syntetic
Human being with feelings
 
syntetic's Avatar
 
Join Date: May 2014
Posts: 160
Default

whether it is possible to make somehow that the icons of tracks attached by auto icon/color remained on track after new renaming of tracks, such option wouldn't prevent
syntetic is offline   Reply With Quote
Old 07-24-2015, 11:10 PM   #190
gwok
Human being with feelings
 
gwok's Avatar
 
Join Date: Jun 2010
Location: canada
Posts: 3,396
Default

hey guys,

I haven't been following the thread so sorry if this has come up. I just updated to the latest sws prereleas, and I'm really loving these preview item under mouse actions. thanks!

I was wondering, would in be possible to monitor take fx as well when previewing? Correct me if I'm wrong, but right now take FX are not previewed, yes?

Just wondering out loud, thanks for all the great work!!
gwok is offline   Reply With Quote
Old 08-25-2015, 03:11 AM   #191
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Hi Guys,

Found an sws bug in the sws find window when using "reaper501pre6_x64" on win 8.1 64bit.

I tend to render out PIP items by placing a name in their item notes like the word "render" so that I can quickly use sWS find to select them all at once but for some reason now, reaper is crashing when I use the find window to search item notes. Hope the included crash log helps find out what it is because I love the find window and want it back!

Problem signature:
Problem Event Name: APPCRASH
Application Name: reaper.exe
Application Version: 5.0.0.16
Application Timestamp: 55d9d166
Fault Module Name: reaper_sws64.dll
Fault Module Version: 2.8.0.0
Fault Module Timestamp: 55cced9b
Exception Code: c0000005
Exception Offset: 00000000000de71c
OS Version: 6.3.9600.2.0.0.768.101
Locale ID: 2057
Additional Information 1: c17e
Additional Information 2: c17e786b44ea8e4ada4628db90ca76e5
Additional Information 3: 8202
Additional Information 4: 820211a320c3cd45bc7c6e96746b9ee9
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 08-25-2015, 08:24 AM   #192
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

^ Thanks for the report, fixed for the next build.
Jeffos is offline   Reply With Quote
Old 08-25-2015, 11:48 AM   #193
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by Jeffos View Post
^ Thanks for the report, fixed for the next build.
woo hoo! thanks.. it's a super powerful feature and I'll be glad to have it back!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers is offline   Reply With Quote
Old 09-01-2015, 10:53 AM   #194
Nixon
Human being with feelings
 
Nixon's Avatar
 
Join Date: Dec 2011
Posts: 406
Default

I don't know if this has been reported earlier but SWS/S&M: Hide take volume envelopes acts more like Take: Toggle volume envelope (take volume envelope on/off)

SWS 2.8.0
Nixon is offline   Reply With Quote
Old 09-12-2015, 12:30 PM   #195
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Thanks for the update!


About SetArrangeView bug...
Quote:
Originally Posted by Samelot View Post
Hey, loving the new SWS stuff, especially the new API uses. I'm not positive, but I think I may be finding a bug when using BR_SetArrangeView().

I've created a simple .eel script that gets the current "endTimeOut", adds 2 to it, and sets that as the new "endTimeOut".

Testing out the script, I notice that it works, but only for a short while before a ceiling is reached for how great "endTimeOut" can be set to. At this point it can't be set anything greater.

Also, if I'm zoomed out as far as possible in the Reaper arrange, the script won't really do anything, "endTimeOut" can't increase.

Code:
extension_api("BR_GetArrangeView", 0, arrangeStart, arrangeEnd);
arrangeEnd = arrangeEnd + 2;

format_timestr(arrangeEnd, #buff);
ShowConsoleMsg(#buff);
ShowConsoleMsg("\n");

extension_api("BR_SetArrangeView", 0, arrangeStart, arrangeEnd);

Quote:
Originally Posted by Breeder View Post
I guess that's the way GetSet_ArrangeView2 works for some reason?

BR_SetArrangeView just wraps GetSet_ArrangeView2 (because ReaScript can't use it directly):
https://github.com/Jeff0S/sws/blob/n....cpp#L684-L688

Maybe ask Cockos about it?

edit: did you try disabling "limit project length" in project preferences?
Quote:
Originally Posted by Samelot View Post
I did try that. No luck though.

I'm a little confused. The BR_SetArrangeView() seems to be pretty different than GetSet_ArrangeView2().

GetSet_ArrangeView2() takes into consideration the width of the arrange portion of the screen (int screen_x_start, int screen_x_end), so depending on how these two values relate to the real-estate taken up the TCP, start and end values may be slightly off.

With BR_SetArrangeView(), I can "sometimes" get the start or end times to jump to exact values:

0:32.447
0:34.447
0:36.447
0:38.447

I really don't understand how to use this. All i'd like to do is get the extent of the arrange view to be confined to a specific length.

arrange start time = 4
arrange end time = 8
Quote:
Originally Posted by Breeder View Post
That's why we take arrange rect and pass it to GetSet_ArrangeView2()

I have no idea why this happens to you, but when playing long enough with BR_SetArrangeView() I too see that it starts to become inaccurate in certain cases, but I just can't seem to replicate it reliably.
Could you supply us with an example project (and some simple script) that displays the issue 100% ?

Here's a test script:
  • open a new project
  • make a shortcut key to the script (mouse wheel + modifiers)




Code:
local dbg = true


function msg(m)
  if dbg then
    reaper.ShowConsoleMsg(tostring(m) .. "\n")
  end
end


function horiz_zoom(m_wheel_delta)
  local ar_view_start, ar_view_end = reaper.BR_GetArrangeView(0)
  msg("Arrange start: " .. ar_view_start .. " end: " .. ar_view_end)
  if m_wheel_delta > 1 then
    ar_view_end = ar_view_end*0.9
  else
    ar_view_end = ar_view_end*1.1
  end
  if ar_view_end - ar_view_start > 1 then
    reaper.BR_SetArrangeView(0, ar_view_start, ar_view_end)
  end
end


----------
-- Main --
----------

function main()
  local m_wheel_delta = ({reaper.get_action_context()})[7]
  if m_wheel_delta == -1 then 
    return
  end 
  --msg(m_wheel_delta)
  horiz_zoom(m_wheel_delta)
end

reaper.defer(main)
spk77 is offline   Reply With Quote
Old 10-24-2015, 10:50 AM   #196
matthewjumpsoffbuildings
Human being with feelings
 
Join Date: Mar 2013
Posts: 463
Default

Ive requested this in the API requests thread but I thought it might be something that could be added to SWS?

can we have a flexible API version of the "propagate take to items" action? One that allows you to choose which properties of the source take are used (wav source, reverse, gain, pan etc), and also has the option to affect all items with the matching name, or just selected items with the matching name.

Something like propogateTake(sourceTake, Bool limitToSelected, Bool copyWav, Bool copyReverse, Bool copyGain... etc)

it would really speed up my glue group lua script, currently im looping through each media item in a project and setting the take source wav, but with thousands of items this is painfully slow... when i use the propagate take action its blisteringly fast, but it copies over ALL the source take properties, not just the wav source. id imagine something coded in C for SWS would be much faster at looping through all items in a project and updating the wav source, maybe not quite as fast as the native action, but much better than lua.

Even if its just a copyWavSourceToAllTakes(sourceWav/sourceTake, Bool limitToSelected) function, that would be perfect
__________________
[sun sprites] spotify facebook
matthewjumpsoffbuildings is offline   Reply With Quote
Old 10-30-2015, 01:31 AM   #197
planetnine
Human being with feelings
 
planetnine's Avatar
 
Join Date: Oct 2007
Location: Lincoln, UK
Posts: 7,924
Default




>
__________________
Nathan, Lincoln, UK. | Item Marker Tool. (happily retired) | Source Time Position Tool. | CD Track Marker Tool. | Timer Recording Tool. | dB marks on MCP faders FR.
planetnine is offline   Reply With Quote
Old 11-05-2015, 01:03 PM   #198
reddiesel41264
Human being with feelings
 
reddiesel41264's Avatar
 
Join Date: Jan 2012
Location: North East UK
Posts: 493
Default Normalise to dB on phase inverted item

I've noticed that if I use normalize to dB on an item that has its invert phase checkbox checked (in item properties) then the item goes blank and I have to normalize it a second time but when I do the invert phase checkbox is cleared.
__________________
http://librewave.com - Freedom respecting instruments and effects
http://xtant-audio.com/ - Purveyor of fine sample libraries (and Kontakt scripting tutorials)
reddiesel41264 is offline   Reply With Quote
Old 01-28-2016, 02:25 PM   #199
Jeffos
Mortal
 
Jeffos's Avatar
 
Join Date: Dec 2008
Location: France
Posts: 1,969
Default

Just posted a new SWS pre-release (v2.8.4): various fixes/goodies, as usual, but I'm making a pre because I have changed the OSX builds with the help of an axe, so it'd be great to get some feedback before it goes live...
... to motivate beta testers, I have also added "auto track layout" support in the autocolor window (which looked like the oldest/most requested feature )
Jeffos is offline   Reply With Quote
Old 01-28-2016, 03:28 PM   #200
musicbynumbers
Human being with feelings
 
musicbynumbers's Avatar
 
Join Date: Jun 2009
Location: South, UK
Posts: 14,214
Default

Quote:
Originally Posted by Jeffos View Post
Just posted a new SWS pre-release (v2.8.4): various fixes/goodies, as usual, but I'm making a pre because I have changed the OSX builds with the help of an axe, so it'd be great to get some feedback before it goes live...
... to motivate beta testers, I have also added "auto track layout" support in the autocolor window (which looked like the oldest/most requested feature )
Awesome sauce! will try it out thanks for that Jeffos for keeping the torch burning!
__________________
subproject FRs click here
note: don't search for my pseudonym on the web. The "musicbynumbers" you find is not me or the name I use for my own music.
musicbynumbers 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 10:04 PM.


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