Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 04-29-2019, 08:44 AM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,761
Default Envelopes: RecArm-button doesn't update when toggling using EnvStateChunks (FIXED)

I noticed something just yesterday, that when I set the armstate of an envelope using EnvelopeStateChunks, it sets the envelope to recarm, but doesn't update the recarm-button in the ui.
But clicking it has no problems.

I've tested it with Reaper 5.965 and the latest +dev0424/x64 release on Windows. I also checked different themes to be sure, that it wasn't a theme problem.


The code I've tested it with:

Code:
ultraschall={}

function ultraschall.SetArmState_Envelope(TrackEnvelope, state)
  retval, str = reaper.GetEnvelopeStateChunk(TrackEnvelope, "", false)
  str=string.gsub(str, "ARM.-%c", "ARM "..state.."\n")
  return reaper.SetEnvelopeStateChunk(TrackEnvelope, str, false)
end

TrackEnvelope=reaper.GetTrackEnvelope(reaper.GetTrack(0,0),0)

-- parameter state is either 0(unarmed) or 1(armed)
A=ultraschall.SetArmState_Envelope(TrackEnvelope, 0)

Another thing I noticed, though I'm not sure if it's a bug or a feature:
When I doubleclick the recarm-button of the envelope, the envelope-points get/remove additional values:

Meo-Ada Mespotine is offline   Reply With Quote
Old 04-29-2019, 01:23 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,117
Default

Fixing for the next +dev cycle!
Justin is offline   Reply With Quote
Old 04-30-2019, 07:56 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,761
Default

Thanks
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-01-2019, 09:30 AM   #4
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
Default

Quote:
Originally Posted by Justin View Post
Fixing for the next +dev cycle!
Thanks, envelope arm'd button display now gets updated after changing it via reaper.BR_EnvSetProperties() too!
Windows 7 / REAPER v5.975+dev0430 / SWS v2.10.0.1 / x64

Last edited by Edgemeal; 05-02-2019 at 06:50 AM.
Edgemeal 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 05:02 AM.


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