Skip to content

Commit

Permalink
Added generic spread nodes for NotuiContext
Browse files Browse the repository at this point in the history
  • Loading branch information
microdee committed Apr 29, 2018
1 parent 997208b commit 9ff2d5d
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 3 deletions.
100 changes: 100 additions & 0 deletions Generic/GenericContextSpreadNodes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Notui;
using VVVV.Nodes.Generic;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.Streams;

namespace Notuiv.Generic
{
[PluginInfo(Name = "Cons",
Category = "Notui.Context",
Help = "Concatenates all Input spreads.",
Tags = "generic, spreadop"
)]
public class NotuiContextConsNode : Cons<NotuiContext> { }

[PluginInfo(Name = "CAR",
Category = "Notui.Context",
Version = "Bin",
Help = "Splits a given spread into first slice and remainder.",
Tags = "split, generic, spreadop",
Author = "woei"
)]
public class NotuiContextCARBinNode : CARBin<NotuiContext> { }

[PluginInfo(Name = "CDR",
Category = "Notui.Context",
Version = "Bin",
Help = "Splits a given spread into remainder and last slice.",
Tags = "split, generic, spreadop",
Author = "woei"
)]
public class NotuiContextCDRBinNode : CDRBin<NotuiContext> { }

[PluginInfo(Name = "Reverse",
Category = "Notui.Context",
Version = "Bin",
Help = "Reverses the order of the slices in the Spread.",
Tags = "invert, generic, spreadop",
Author = "woei"
)]
public class NotuiContextReverseBinNode : ReverseBin<NotuiContext> { }

[PluginInfo(Name = "Select",
Category = "Notui.Context",
Help = "Returns each slice of the Input spread as often as specified by the corresponding Select slice. 0 meaning the slice will be omitted. ",
Tags = "repeat, resample, duplicate, spreadop"
)]
public class NotuiContextSelectNode : Select<NotuiContext> { }

[PluginInfo(Name = "Select",
Category = "Notui.Context",
Version = "Bin",
Help = "Returns each slice of the Input spread as often as specified by the corresponding Select slice. 0 meaning the slice will be omitted. ",
Tags = "repeat, resample, duplicate, spreadop",
Author = "woei"
)]
public class NotuiContextSelectBinNode : SelectBin<NotuiContext> { }

[PluginInfo(Name = "Unzip",
Category = "Notui.Context",
Help = "The inverse of Zip. Interprets the Input spread as being interleaved and untangles it.",
Tags = "split, generic, spreadop"
)]
public class NotuiContextUnzipNode : Unzip<NotuiContext> { }

[PluginInfo(Name = "Unzip",
Category = "Notui.Context",
Version = "Bin",
Help = "The inverse of Zip. Interprets the Input spread as being interleaved and untangles it. With Bin Size.",
Tags = "split, generic, spreadop"
)]
public class NotuiContextUnzipBinNode : Unzip<IInStream<NotuiContext>> { }

[PluginInfo(Name = "Zip",
Category = "Notui.Context",
Help = "Interleaves all Input spreads.",
Tags = "interleave, join, generic, spreadop"
)]
public class NotuiContextZipNode : Zip<NotuiContext> { }

[PluginInfo(Name = "Zip",
Category = "Notui.Context",
Version = "Bin",
Help = "Interleaves all Input spreads.",
Tags = "interleave, join, generic, spreadop"
)]
public class NotuiContextZipBinNode : Zip<IInStream<NotuiContext>> { }

[PluginInfo(Name = "GetSpread",
Category = "Notui.Context",
Version = "Bin",
Help = "Returns sub-spreads from the input specified via offset and count",
Tags = "generic, spreadop",
Author = "woei")]
public class NotuiContextGetSpreadNode : GetSpreadAdvanced<NotuiContext> { }
}
5 changes: 3 additions & 2 deletions Notuiv.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<Reference Include="mp.pddn, Version=1.1.26.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\mp.pddn.1.1.26\lib\net47\mp.pddn.dll</HintPath>
</Reference>
<Reference Include="Notui, Version=0.1.21.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Notui.0.1.21-beta\lib\net47\Notui.dll</HintPath>
<Reference Include="Notui, Version=0.1.24.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Notui.0.1.24-beta\lib\net47\Notui.dll</HintPath>
</Reference>
<Reference Include="SevenZip, Version=9.20.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\LZMA-SDK.9.20\lib\net20\SevenZip.dll</HintPath>
Expand Down Expand Up @@ -145,6 +145,7 @@
<Compile Include="Filters\ContextElementFilterNode.cs" />
<Compile Include="Generic\GenericAuxiliaryObjectNodes.cs" />
<Compile Include="Generic\GenericBehaviorNodes.cs" />
<Compile Include="Generic\GenericContextSpreadNodes.cs" />
<Compile Include="Generic\GenericElementInstanceNodes.cs" />
<Compile Include="Generic\GenericElementPrototypeNodes.cs" />
<Compile Include="Generic\GenericElementTransformationNodes.cs" />
Expand Down
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package id="LZMA-SDK" version="9.20" targetFramework="net461" />
<package id="md-stdl" version="0.1.50-beta" targetFramework="net47" />
<package id="mp.pddn" version="1.1.26" targetFramework="net47" />
<package id="Notui" version="0.1.21-beta" targetFramework="net47" />
<package id="Notui" version="0.1.24-beta" targetFramework="net47" />
<package id="SharpDX" version="4.0.1" targetFramework="net461" />
<package id="SharpDX.RawInput" version="4.0.1" targetFramework="net461" />
<package id="SimMetrics.Net" version="1.0.4" targetFramework="net461" />
Expand Down

0 comments on commit 9ff2d5d

Please sign in to comment.