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

Reply
 
Thread Tools Display Modes
Old 02-08-2019, 06:23 AM   #481
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Never ever change existing behaviour, someone will most likely complain. Lesson learned. (j/k )
nofish is offline   Reply With Quote
Old 02-08-2019, 09:06 PM   #482
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by nofish View Post
Never ever change existing behaviour, someone will most likely complain. Lesson learned. (j/k )
Welcome to a fragile world of software development. I once heard a perfect term for it: "wild, wild west"
Breeder is offline   Reply With Quote
Old 02-09-2019, 12:23 AM   #483
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,874
Default

"It's not a bug, it's a feature."
X-Raym is offline   Reply With Quote
Old 02-27-2019, 03:20 AM   #484
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

I just got around to installing the new SWS, and I'm surprised to see that it suddenly gained a whole lot of Win32-related API functions such as BR_Win32_GetForegroundWindow -- which were the very raison d'être for the ReaScriptAPI extension. Why the duplication?
juliansader is offline   Reply With Quote
Old 02-27-2019, 04:35 AM   #485
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by juliansader View Post
I just got around to installing the new SWS, and I'm surprised to see that it suddenly gained a whole lot of Win32-related API functions such as BR_Win32_GetForegroundWindow -- which were the very raison d'être for the ReaScriptAPI extension. Why the duplication?
Are we in some kind of competition?

I coded it a while back, like 2 years ago, but it was decided back then it shouldn't be made public. But things change so I asked nofish to commit it. Why duplication? It's not duplication - it's SWS - an extension most people have installed so no need to trouble the user with installing additional things. Or are there any other win32 functions in SWS? To be honest, I have no idea...I already used these API for my private scripts and it was easier to ask for a commit then to rewrite them.

I also like my style because it is the exact replica of win32 api function names etc (not to mention I tested the hell out of them so I know they work on both win and OSX)...so we old C++ coders can easily find our way around
Breeder is offline   Reply With Quote
Old 02-27-2019, 05:01 AM   #486
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,874
Default

@juliansader
Can the BR functions interact with yours ?

Anyway, your extensions is already widely spread thx to reapack I guess, and you provide way more functions, so I'll stick with them :P
X-Raym is offline   Reply With Quote
Old 02-27-2019, 05:07 AM   #487
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by X-Raym View Post
@juliansader
Can the BR functions interact with yours ?
They should be able to...it's normal win32 API and both BR_ and JS_ functions are just wrappers for it. It also seems they both use void* type for HWND so there shouldn't be any problems in passing hwnd pointers around.
Breeder is offline   Reply With Quote
Old 02-27-2019, 07:09 AM   #488
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by Breeder View Post
I also like my style because it is the exact replica of win32 api function names etc (not to mention I tested the hell out of them so I know they work on both win and OSX)...so we old C++ coders can easily find our way around
+1, Using the same names was a no brainer!
Edgemeal is offline   Reply With Quote
Old 02-28-2019, 07:27 AM   #489
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,795
Default

Excuse me for posting here but i don't know a better place to ask something specifically about the cycle actions editor.

What i'm trying to do in Cycle actions editor is to mimic the behaviour of Cubase where i can toggle 2 actions with a key.But specifically when i toggle the actions, i want them to get armed so i can trigger them with the mouse click.

In the cycle actions editor i tried the following steps. On top i added toggle arm of next action,then the first action i want to arm..
Then a step and again toggle arm of next action and after that the second action i want to arm..

But each time i toggle the next action with a key it triggers the action and doesn't arm it.

Am i doing something wrong or it's not possible yet to do this with the cycle actions editor?
Maybe the action Toggle arm of next action isn't yet recognised from the cycle actions editor?

I think this would be very useful to have for multiple actions and would save a lot of space on the toolbars.

Thanks a lot in advance!! (and sorry for my poor English)

Edit: If there is a better place in the forum to ask about it i 'd be happy to post there and delete this post here.

Last edited by Vagelis; 02-28-2019 at 07:37 AM.
Vagelis is offline   Reply With Quote
Old 02-28-2019, 03:26 PM   #490
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

@Vagelis

As (it seems to me) your question doesn't specifically concern a SWS pre-release version (which this thread is intended for), a better place would be the thread about official SWS releases.

https://forum.cockos.com/showthread.php?t=29640

edit:
Or a new thread in General discussion / Q&A (as there usually also hang out SWS users.)

Last edited by nofish; 02-28-2019 at 03:32 PM.
nofish is offline   Reply With Quote
Old 02-28-2019, 04:44 PM   #491
Vagelis
Human being with feelings
 
Vagelis's Avatar
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,795
Default

Thanks a lot for your response nofish.

I tried in the general discussion couple of days ago, but i didn't get any answer from a SWS user.
So i thought that here was the right place to ask but i was wrong and i'm sorry for the mess, i will try again tommorow in the SWS thread.

Also I could delete the previous post if it's a problem.
Vagelis is offline   Reply With Quote
Old 02-28-2019, 05:03 PM   #492
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

No problem or mess at all.
nofish is offline   Reply With Quote
Old 04-23-2019, 10:40 AM   #493
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Are there any plans to make an update of the current SWS for Linux as well? Or how difficult would it be to build it myself? Would this be recommended or rather not?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 04-23-2019, 10:56 AM   #494
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

cfillion did a Linux build:
https://cfillion.ca/files/sws/2.10.0.1-linux/

edit:
corrected as per cfillion's comment below

Last edited by nofish; 04-23-2019 at 11:47 AM.
nofish is offline   Reply With Quote
Old 04-23-2019, 11:19 AM   #495
Klangfarben
Human being with feelings
 
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
Default

I'd like to also put in a vote for regular linux builds along with OSX and Windows. There's a lot more Linux Reaper users these days.
Klangfarben is offline   Reply With Quote
Old 04-23-2019, 11:28 AM   #496
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Oops, my build is actually the latest 2.10.0.1 (6963f756). Folder renamed.

Last edited by cfillion; 04-23-2019 at 11:46 AM.
cfillion is offline   Reply With Quote
Old 04-24-2019, 07:33 AM   #497
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Thanks
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-15-2019, 12:23 AM   #498
Gaia
Human being with feelings
 
Gaia's Avatar
 
Join Date: Jan 2018
Posts: 152
Default

Quote:
Originally Posted by Jeffos View Post
The latest SWS Extension pre-release build can be found here.
The related "What's new?" is here.

What's a pre-release? It's software that's not necessarily ready for full public consumption: pre-release software should be expected to have bugs, use at your own risk! Feature requests, and bugs should be reported in our issue tracker, or in this very thread.

The only way we can continue to provide great software is with your help and feedback.

Thank you!
Hi
i really love SWS / S&M extension
may I ask you if could added a features?
about random color , could be a new feature ,vivid strong random color
i'm talking about tracks
just because sometime the color is so week for example a light gray or very light gree ,and i have to change manually
this feature could be very usefull for many users

thanks!
here my settings



here you can see when i 'm not lucky


__________________
novice but Reaper's lover
Gaia is offline   Reply With Quote
Old 06-15-2019, 12:55 AM   #499
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

Random means random. Sometimes you'll be lucky, sometimes not. It's random.
EvilDragon is offline   Reply With Quote
Old 06-15-2019, 07:31 AM   #500
Gaia
Human being with feelings
 
Gaia's Avatar
 
Join Date: Jan 2018
Posts: 152
Default

Quote:
Originally Posted by EvilDragon View Post
Random means random. Sometimes you'll be lucky, sometimes not. It's random.
hi
but maybe the developer could remove from random some week color shades
keeping random without with stongest color
thanks , i know random it's randon
__________________
novice but Reaper's lover
Gaia is offline   Reply With Quote
Old 06-15-2019, 08:07 AM   #501
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 7,568
Default

Quote:
Originally Posted by Gaia View Post
hi
but maybe the developer could remove from random some week color shades
keeping random without with stongest color
thanks , i know random it's randon
to be honest I don't know what color palette sws uses for random coloring
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Old 06-15-2019, 08:15 AM   #502
EvilDragon
Human being with feelings
 
EvilDragon's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 24,790
Default

Isn't it literally just random RGB values?
EvilDragon is offline   Reply With Quote
Old 06-16-2019, 08:26 AM   #503
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by EvilDragon View Post
Isn't it literally just random RGB values?
I think so.
Is there a way to reset all Reaper colors to default stock colors after messing with SWS or toolbars? I'm confused.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 06-16-2019, 03:15 PM   #504
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

A second action focusing on only random-strong colors would be useful, I think. Should be scriptable as well though.

Regarding default color-values, IIRC they are stored in the .ReaperTheme-files, with the currently used stored in reaper.ini as well.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-16-2019, 04:12 PM   #505
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 3,714
Default

I was playing with HSV colors for another script, so I quickly scribbled this random track color generator that only generates strong colors:

Code:
function hsv2rgb(h, s, v, a)
    local i = (h * 6)//1
    local f = h * 6 - i
    local p = v * (1 - s)
    local q = v * (1 - f * s)
    local t = v * (1 - (1 - f) * s)

    local r, g, b
      
    i = i % 6
    if i == 0 then r, g, b = v, t, p
    elseif i == 1 then r, g, b = q, v, p
    elseif i == 2 then r, g, b = p, v, t
    elseif i == 3 then r, g, b = p, q, v
    elseif i == 4 then r, g, b = t, p, v
    elseif i == 5 then r, g, b = v, p, q
    end
  
    return r * 255, g * 255, b * 255, a * 255
end

math.randomseed (os.time ())
for i = 0, reaper.CountSelectedTracks(0)-1 do
    tr = reaper.GetSelectedTrack(0, i)
    hue = math.random()
    r, g, b = hsv2rgb(hue, 1, 1, 1)
    color = 0x01000000 | ((r//1)<<16) | ((g//1)<<8) | (b//1)
    reaper.SetTrackColor(tr, color)
end
juliansader is offline   Reply With Quote
Old 06-17-2019, 06:51 AM   #506
Gaia
Human being with feelings
 
Gaia's Avatar
 
Join Date: Jan 2018
Posts: 152
Default

Quote:
Originally Posted by juliansader View Post
I was playing with HSV colors for another script, so I quickly scribbled this random track color generator that only generates strong colors:

Code:
function hsv2rgb(h, s, v, a)
    local i = (h * 6)//1
    local f = h * 6 - i
    local p = v * (1 - s)
    local q = v * (1 - f * s)
    local t = v * (1 - (1 - f) * s)

    local r, g, b
      
    i = i % 6
    if i == 0 then r, g, b = v, t, p
    elseif i == 1 then r, g, b = q, v, p
    elseif i == 2 then r, g, b = p, v, t
    elseif i == 3 then r, g, b = p, q, v
    elseif i == 4 then r, g, b = t, p, v
    elseif i == 5 then r, g, b = v, p, q
    end
  
    return r * 255, g * 255, b * 255, a * 255
end

math.randomseed (os.time ())
for i = 0, reaper.CountSelectedTracks(0)-1 do
    tr = reaper.GetSelectedTrack(0, i)
    hue = math.random()
    r, g, b = hsv2rgb(hue, 1, 1, 1)
    color = 0x01000000 | ((r//1)<<16) | ((g//1)<<8) | (b//1)
    reaper.SetTrackColor(tr, color)
end
hi
i'm really happy , i don't know how use the script
is there a way to pust SWS to use this script or reaper?
thanks
__________________
novice but Reaper's lover
Gaia is offline   Reply With Quote
Old 06-17-2019, 07:19 AM   #507
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by mespotine View Post
A second action focusing on only random-strong colors would be useful, I think. Should be scriptable as well though.

Regarding default color-values, IIRC they are stored in the .ReaperTheme-files, with the currently used stored in reaper.ini as well.
So how would one reset color palette in reaper without losing theme config otherwise? just colors.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 06-17-2019, 08:35 AM   #508
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Which color exactly? Item-colors? Track-colors?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-17-2019, 08:47 AM   #509
Gaia
Human being with feelings
 
Gaia's Avatar
 
Join Date: Jan 2018
Posts: 152
Default

Quote:
Originally Posted by mespotine View Post
Which color exactly? Item-colors? Track-colors?
hi
track colors like my screenshot
thanks
__________________
novice but Reaper's lover
Gaia is offline   Reply With Quote
Old 06-17-2019, 09:05 AM   #510
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by mespotine View Post
Which color exactly? Item-colors? Track-colors?
Yes track colors. Like the old ED toolbar theme track colors pallette. Thank you.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 06-17-2019, 09:25 AM   #511
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Rightclick on Track and using this menu doesn't do the trick?


Or do you need an importer of track-color-schemes from other themes?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-17-2019, 09:37 AM   #512
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by mespotine View Post
Rightclick on Track and using this menu doesn't do the trick?


Or do you need an importer of track-color-schemes from other themes?
No, but thank you. I am talking about where Reaper pulls the color information from by default when I assign a track color a random color for example.

Where are these theme 'default' colors stored? I need to reset them my eyes.
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 06-17-2019, 09:50 AM   #513
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

I think(!) in the ReaperTheme-File, but haven't checked them.

Anyway, I'll add this to my list of features for my Ultraschall-API. Should be scriptable then, when I had time to add Reaper's default-colors, in whatever way they are stored.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 06-17-2019, 10:05 AM   #514
lowellben
Human being with feelings
 
lowellben's Avatar
 
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
Default

Quote:
Originally Posted by mespotine View Post
I think(!) in the ReaperTheme-File, but haven't checked them.

Anyway, I'll add this to my list of features for my Ultraschall-API. Should be scriptable then, when I had time to add Reaper's default-colors, in whatever way they are stored.
Thanks!!
__________________
47.8% of statistics are made up.
lowellben is offline   Reply With Quote
Old 07-14-2019, 03:53 PM   #515
tufb
Human being with feelings
 
Join Date: Dec 2017
Posts: 152
Default

Great to see that a new SWS version was released this year. Thanks to everyone involved. I have a question about these SWS Lua functions:

Code:
string buf = reaper.CF_GetClipboard(string buf)
Read the contents of the system clipboard (limited to 1023 characters in Lua).

string reaper.CF_GetClipboardBig(WDL_FastString output)
Read the contents of the system clipboard. See SNM_CreateFastString and SNM_DeleteFastString.

(copied from SWS v2.10.0.1 documentation)
Is it still necessary to use CF_GetClipboardBig for very long strings in Lua scripts?

Justin addressed this very issue last November: https://forum.cockos.com/showthread.php?t=213074
A new SWS version has since been released.

Thank you in advance.
tufb is offline   Reply With Quote
Old 07-14-2019, 04:19 PM   #516
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Yes it is.

If you use the Ultraschall-API-extension, you can use the function

ultraschall.GetStringFromClipboard_SWS()

https://mespotin.uber.space/Ultrasch...mClipboard_SWS

which is doing the faststring stuff for you.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-24-2019, 01:19 PM   #517
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

One question: is therea way to change the settings in SWS programmatically?
I would love to change the Nudges -> Seconds(edit cursor) in the SWS Extension Command Parameters without using the settings-dialog.
We tried changing the ini-files, but to no avail.

Any chance?
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-24-2019, 01:44 PM   #518
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by mespotine View Post
One question: is therea way to change the settings in SWS programmatically?
I would love to change the Nudges -> Seconds(edit cursor) in the SWS Extension Command Parameters without using the settings-dialog.
We tried changing the ini-files, but to no avail.

Any chance?
Native ApplyNudge() which can nudge edit cursor too wouldn't be an alternative?
nofish is offline   Reply With Quote
Old 08-26-2019, 03:26 PM   #519
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Sadly no.
We try to build for our Ultraschall-Podcast-extension our own SettingsManager, which holds all settings, podcast users need to have control over, while ignoring the rest for easier onboarding.
And as we already use SWS heavily, it would be cool, if we could add podcasting-relevant settings from SWS into our SettingsManager as well.
Currently, we need to restart Reaper for the changes to have an effect.
And avoiding SWS by recoding everything in Lua would probably be possible but would be total overkill, imho.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-26-2019, 10:33 PM   #520
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

Quote:
Originally Posted by mespotine View Post
And avoiding SWS by recoding everything in Lua would probably be possible but would be total overkill, imho.
I am on a similar track, planning to redo the "LiveConfigs" part of SWS (with a lot of extensions I have in mind). (See the "Live" subform for details if you are interested.)
While I am rather comfortable with EEL (and EEL would supposedly impose less limitations than a real scripting language such as LUA would), I seem to already have decided to do a "full" Reaper extension in C++.

Now I am wondering if it might be possible to steal some code from the SWS sources - which I suppose are huge and hard to digest.

-Michael
mschnell 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 02:28 AM.


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