Bang boolean Bug gamma 2022.4.10

When I do a bang from a spread of bangs it gets applied for more than a frame:

Bang for long
Should be more like this:

Bang for short

Thanks,

H

as far as I know the visualization in the IO boxes always shows much longer than the real state, so that you can actually see your bangs. try controlling a stopwatch and a counter to check your bangs.

Indeed, but it seems that what is shown is actually being reflected in the result. The toggle was be triggered multiple times from a single click, so I had to put in a togedge to prevent it.

Try this:

image

<?xml version="1.0" encoding="utf-16"?>
<Patch xmlns:p="property" Id="VulbteWB9c2LHz7O5qYcbs" MergeId="340973">
  <Canvas Id="Gy84zDLcCZBM5pfL4lS3kD" MergeId="340972" CanvasType="Group">
    <Node Bounds="331,480,75,85" Id="MvMu80RvwGBPtx0fD4ZZlh">
      <p:NodeReference>
        <Choice Kind="ApplicationStatefulRegion" Name="ForEach" />
        <FullNameCategoryReference ID="Primitive" />
      </p:NodeReference>
      <Pin Id="P7jgu2iJyH0LPblneweJZK" Name="Break" Kind="OutputPin" />
      <Patch Id="CzKJYhO3DG8P9Ka3EIvT7Q" ManuallySortedPins="true">
        <Patch Id="ThYI6zG4GF4PrzaWyWm9vT" Name="Create" ManuallySortedPins="true" />
        <Patch Id="Aj8o7mJBjVgQZpAI7pyk64" Name="Update" ManuallySortedPins="true" />
        <Patch Id="HwiTplKJKCyN6nI92x5UBQ" Name="Dispose" ManuallySortedPins="true" />
        <Node Bounds="346,511" Id="GMm95eGb0UYOavxnkGZZ7c">
          <p:NodeReference LastCategoryFullName="Control" LastSymbolSource="CoreLibBasics.vl">
            <Choice Kind="NodeFlag" Name="Node" Fixed="true" />
            <Choice Kind="ProcessAppFlag" Name="Toggle" />
          </p:NodeReference>
          <Pin Id="HZdx3PSMkOsLolQLrfiySH" Name="Flip" Kind="ApplyPin" />
          <Pin Id="MTqscsDzEdSOH5preCGGkK" Name="Reset" Kind="ApplyPin" />
          <Pin Id="G96lUqL0rJhNZVxtoRINN5" Name="Value" Kind="OutputPin" />
        </Node>
      </Patch>
      <ControlPoint Id="HU0nSi57K4UQDmON966iOk" Bounds="345,486" Alignment="Top" />
      <ControlPoint Id="VZmHTt6doiZOFH6Y6vp6sg" Bounds="345,559" Alignment="Bottom" />
    </Node>
    <Pad Id="HDCL7IpRyubPORYE28JEbj" Comment="" Bounds="344,388,35,49" ShowValueBox="true" isIOBox="true" Value="False, False">
      <p:TypeAnnotation LastCategoryFullName="Collections" LastSymbolSource="VL.Collections.vl">
        <Choice Kind="TypeFlag" Name="Spread" />
        <p:TypeArguments>
          <TypeReference LastCategoryFullName="Primitive" LastSymbolSource="CoreLibBasics.vl">
            <Choice Kind="TypeFlag" Name="Boolean" />
          </TypeReference>
        </p:TypeArguments>
      </p:TypeAnnotation>
      <p:ValueBoxSettings>
        <p:buttonmode p:Assembly="VL.UI.Forms" p:Type="VL.HDE.PatchEditor.Editors.ButtonModeEnum">Bang</p:buttonmode>
        <p:maxvisibleentries p:Type="Int32">6</p:maxvisibleentries>
      </p:ValueBoxSettings>
    </Pad>
    <Pad Id="J9rM1blp3KfONAMFP8orwU" Comment="" Bounds="338,595,35,49" ShowValueBox="true" isIOBox="true" Value="False" />
  </Canvas>
  <Link Id="FaO57T2cgWOPhl0Sy37e2V" Ids="HU0nSi57K4UQDmON966iOk,HZdx3PSMkOsLolQLrfiySH" />
  <Link Id="S2m26a1cHe4Ns6Fy6PvuOJ" Ids="HDCL7IpRyubPORYE28JEbj,HU0nSi57K4UQDmON966iOk" />
  <Link Id="IJfbxorhYayN0ntBRov3hc" Ids="G96lUqL0rJhNZVxtoRINN5,VZmHTt6doiZOFH6Y6vp6sg" />
  <Link Id="NC2e9AJzS0xOJ60qXnixNT" Ids="VZmHTt6doiZOFH6Y6vp6sg,J9rM1blp3KfONAMFP8orwU" />
</Patch>

great find. thanks, fixed in upcoming.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.