|
|
|
02-08-2019, 06:23 AM
|
#481
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
Never ever change existing behaviour, someone will most likely complain. Lesson learned. (j/k )
|
|
|
02-08-2019, 09:06 PM
|
#482
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by nofish
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"
|
|
|
02-09-2019, 12:23 AM
|
#483
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,900
|
"It's not a bug, it's a feature."
|
|
|
02-27-2019, 03:20 AM
|
#484
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
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?
|
|
|
02-27-2019, 04:35 AM
|
#485
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by juliansader
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
|
|
|
02-27-2019, 05:01 AM
|
#486
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,900
|
@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
|
|
|
02-27-2019, 05:07 AM
|
#487
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by X-Raym
@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.
|
|
|
02-27-2019, 07:09 AM
|
#488
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,921
|
Quote:
Originally Posted by Breeder
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!
|
|
|
02-28-2019, 07:27 AM
|
#489
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
|
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.
|
|
|
02-28-2019, 03:26 PM
|
#490
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
@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.
|
|
|
02-28-2019, 04:44 PM
|
#491
|
Human being with feelings
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 3,827
|
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.
|
|
|
02-28-2019, 05:03 PM
|
#492
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
No problem or mess at all.
|
|
|
04-23-2019, 10:40 AM
|
#493
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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?
|
|
|
04-23-2019, 10:56 AM
|
#494
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
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.
|
|
|
04-23-2019, 11:19 AM
|
#495
|
Human being with feelings
Join Date: Jul 2016
Location: Los Angeles, CA
Posts: 1,701
|
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.
|
|
|
04-23-2019, 11:28 AM
|
#496
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,968
|
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.
|
|
|
04-24-2019, 07:33 AM
|
#497
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Thanks
|
|
|
06-15-2019, 12:23 AM
|
#498
|
Human being with feelings
Join Date: Jan 2018
Posts: 152
|
Quote:
Originally Posted by Jeffos
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
|
|
|
06-15-2019, 12:55 AM
|
#499
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 24,798
|
Random means random. Sometimes you'll be lucky, sometimes not. It's random.
|
|
|
06-15-2019, 07:31 AM
|
#500
|
Human being with feelings
Join Date: Jan 2018
Posts: 152
|
Quote:
Originally Posted by EvilDragon
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
|
|
|
06-15-2019, 08:07 AM
|
#501
|
Human being with feelings
Join Date: Jul 2009
Posts: 7,595
|
Quote:
Originally Posted by Gaia
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
|
|
|
06-15-2019, 08:15 AM
|
#502
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 24,798
|
Isn't it literally just random RGB values?
|
|
|
06-16-2019, 08:26 AM
|
#503
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by EvilDragon
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.
|
|
|
06-16-2019, 03:15 PM
|
#504
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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.
|
|
|
06-16-2019, 04:12 PM
|
#505
|
Human being with feelings
Join Date: Jul 2009
Posts: 3,714
|
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
|
|
|
06-17-2019, 06:51 AM
|
#506
|
Human being with feelings
Join Date: Jan 2018
Posts: 152
|
Quote:
Originally Posted by juliansader
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
|
|
|
06-17-2019, 07:19 AM
|
#507
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by mespotine
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.
|
|
|
06-17-2019, 08:35 AM
|
#508
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
Which color exactly? Item-colors? Track-colors?
|
|
|
06-17-2019, 08:47 AM
|
#509
|
Human being with feelings
Join Date: Jan 2018
Posts: 152
|
Quote:
Originally Posted by mespotine
Which color exactly? Item-colors? Track-colors?
|
hi
track colors like my screenshot
thanks
__________________
novice but Reaper's lover
|
|
|
06-17-2019, 09:05 AM
|
#510
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by mespotine
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.
|
|
|
06-17-2019, 09:25 AM
|
#511
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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?
|
|
|
06-17-2019, 09:37 AM
|
#512
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by mespotine
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.
|
|
|
06-17-2019, 09:50 AM
|
#513
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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.
|
|
|
06-17-2019, 10:05 AM
|
#514
|
Human being with feelings
Join Date: Aug 2010
Location: They put me in a home.
Posts: 3,432
|
Quote:
Originally Posted by mespotine
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.
|
|
|
07-14-2019, 03:53 PM
|
#515
|
Human being with feelings
Join Date: Dec 2017
Posts: 152
|
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.
|
|
|
07-14-2019, 04:19 PM
|
#516
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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.
|
|
|
08-24-2019, 01:19 PM
|
#517
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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?
|
|
|
08-24-2019, 01:44 PM
|
#518
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,109
|
Quote:
Originally Posted by mespotine
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?
|
|
|
08-26-2019, 03:26 PM
|
#519
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,630
|
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.
|
|
|
08-26-2019, 10:33 PM
|
#520
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,784
|
Quote:
Originally Posted by mespotine
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
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:30 PM.
|