com.shinolab.autd3-sdk.pattern 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AssemblyInfo.cs CHANGED
@@ -1,6 +1,4 @@
1
1
  using System.Runtime.CompilerServices;
2
2
 
3
- // Declared in source (not as csproj <InternalsVisibleTo> items) so that Unity, which
4
- // compiles these sources via an .asmdef and never sees the csproj, grants the same access.
5
3
  [assembly: InternalsVisibleTo("AUTD3")]
6
4
  [assembly: InternalsVisibleTo("AUTD3.Pattern.Holo")]
package/Pattern.cs CHANGED
@@ -140,7 +140,7 @@ namespace AUTD3
140
140
 
141
141
 
142
142
  [DllImport("autd3capi")]
143
- internal static extern IntPtr autd3_op_pattern(byte bank, IntPtr patternBuffer);
143
+ internal static extern IntPtr autd3_op_pattern(byte bank, IntPtr patternBuffer, byte transitionMode, ulong transitionValue, uint transitionMarginNs);
144
144
 
145
145
  [DllImport("autd3capi")]
146
146
  internal static extern IntPtr autd3_op_write_pattern_buffer(byte bank, ushort index, IntPtr patternBuffer);
@@ -294,18 +294,22 @@ namespace AUTD3
294
294
  {
295
295
  private readonly PatternBank _bank;
296
296
  private readonly PatternBuffer _buffer;
297
+ private readonly TransitionMode _transitionMode;
297
298
 
298
- public Pattern(PatternBuffer emissions) : this(PatternBank.B0, emissions)
299
+ public Pattern(PatternBuffer emissions, TransitionMode? transitionMode = null)
300
+ : this(PatternBank.B0, emissions, transitionMode)
299
301
  {
300
302
  }
301
303
 
302
- public Pattern(PatternBank bank, PatternBuffer emissions)
304
+ public Pattern(PatternBank bank, PatternBuffer emissions, TransitionMode? transitionMode = null)
303
305
  {
304
306
  _bank = bank;
305
307
  _buffer = emissions;
308
+ _transitionMode = transitionMode ?? TransitionMode.Immediate;
306
309
  }
307
310
 
308
- IntPtr ICommand.CreateOp() => NativePattern.autd3_op_pattern((byte)_bank, _buffer.Handle);
311
+ IntPtr ICommand.CreateOp() =>
312
+ NativePattern.autd3_op_pattern((byte)_bank, _buffer.Handle, _transitionMode.Mode, _transitionMode.Value, _transitionMode.MarginNs);
309
313
 
310
314
 
311
315
  public static Length Wavelength(Velocity soundSpeed) =>
Binary file
package/README.md CHANGED
@@ -2,39 +2,7 @@
2
2
 
3
3
  Emission patterns such as a single focus, a plane wave or a Bessel beam.
4
4
 
5
- ## Install
6
-
7
- Add the scoped registry and the package to `Packages/manifest.json`; sibling
8
- AUTD3 packages are resolved from the registry automatically.
9
-
10
- ```json
11
- {
12
- "scopedRegistries": [
13
- { "name": "npmjs", "url": "https://registry.npmjs.org", "scopes": ["com.shinolab"] }
14
- ],
15
- "dependencies": {
16
- "com.shinolab.autd3-sdk.pattern": "0.1.0"
17
- }
18
- }
19
- ```
20
-
21
- Packages served from `registry.npmjs.org` do **not** appear in the Package Manager's
22
- *My Registries* tab, because npmjs does not implement the legacy `/-/all` route that
23
- Unity's package listing relies on. Resolution is unaffected: edit the manifest as above,
24
- or use **+ → Add package by name**.
25
-
26
- ## Platforms
27
-
28
- Editor and Standalone builds on Windows (`win-x64`), Linux (`linux-x64`) and Apple
29
- Silicon macOS (`osx-arm64`). Intel macOS is not shipped.
30
-
31
- ## Notes
32
-
33
- Minimum Unity version is 6 (6000.x). The API speaks Unity's left-handed, metre frame;
34
- conversion to the AUTD3 canonical frame happens at the binding boundary.
35
-
36
- See the [Unity binding README](https://github.com/shinolab/autd3-sdk/blob/main/bindings/unity/README.md) for the
37
- coordinate system, the full package list and local development with `file:` references.
5
+ See the [Unity binding README](https://github.com/shinolab/autd3-sdk/blob/main/bindings/unity/README.md) for more details.
38
6
 
39
7
  ## License
40
8
 
@@ -5,7 +5,7 @@ The following is a list of those components and the full text of their licenses.
5
5
 
6
6
  ## Overview
7
7
 
8
- - MIT License (24)
8
+ - MIT License (50)
9
9
  - Apache License 2.0 (3)
10
10
  - Unicode License v3 (1)
11
11
 
@@ -437,6 +437,77 @@ Used by:
437
437
 
438
438
  Used by:
439
439
 
440
+ - cfg-if 1.0.4 — https://github.com/rust-lang/cfg-if
441
+
442
+ ```
443
+ Copyright (c) 2014 Alex Crichton
444
+
445
+ Permission is hereby granted, free of charge, to any
446
+ person obtaining a copy of this software and associated
447
+ documentation files (the "Software"), to deal in the
448
+ Software without restriction, including without
449
+ limitation the rights to use, copy, modify, merge,
450
+ publish, distribute, sublicense, and/or sell copies of
451
+ the Software, and to permit persons to whom the Software
452
+ is furnished to do so, subject to the following
453
+ conditions:
454
+
455
+ The above copyright notice and this permission notice
456
+ shall be included in all copies or substantial portions
457
+ of the Software.
458
+
459
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
460
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
461
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
462
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
463
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
464
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
465
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
466
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
467
+ DEALINGS IN THE SOFTWARE.
468
+
469
+ ```
470
+
471
+ ## MIT License
472
+
473
+ Used by:
474
+
475
+ - core_affinity 0.8.3 — https://github.com/Elzair/core_affinity_rs
476
+
477
+ ```
478
+ Copyright (c) 2014 The Rust Project Developers
479
+
480
+ Permission is hereby granted, free of charge, to any
481
+ person obtaining a copy of this software and associated
482
+ documentation files (the "Software"), to deal in the
483
+ Software without restriction, including without
484
+ limitation the rights to use, copy, modify, merge,
485
+ publish, distribute, sublicense, and/or sell copies of
486
+ the Software, and to permit persons to whom the Software
487
+ is furnished to do so, subject to the following
488
+ conditions:
489
+
490
+ The above copyright notice and this permission notice
491
+ shall be included in all copies or substantial portions
492
+ of the Software.
493
+
494
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
495
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
496
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
497
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
498
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
499
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
500
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
501
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
502
+ DEALINGS IN THE SOFTWARE.
503
+ ```
504
+
505
+ ## MIT License
506
+
507
+ Used by:
508
+
509
+ - bitflags 2.13.0 — https://github.com/bitflags/bitflags
510
+ - log 0.4.33 — https://github.com/rust-lang/log
440
511
  - num-complex 0.4.6 — https://github.com/rust-num/num-complex
441
512
  - num-integer 0.1.46 — https://github.com/rust-num/num-integer
442
513
  - num-rational 0.4.2 — https://github.com/rust-num/num-rational
@@ -504,6 +575,65 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
504
575
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
505
576
  DEALINGS IN THE SOFTWARE.
506
577
 
578
+ ```
579
+
580
+ ## MIT License
581
+
582
+ Used by:
583
+
584
+ - winapi 0.3.9 — https://github.com/retep998/winapi-rs
585
+
586
+ ```
587
+ Copyright (c) 2015-2018 The winapi-rs Developers
588
+
589
+ Permission is hereby granted, free of charge, to any person obtaining a copy
590
+ of this software and associated documentation files (the "Software"), to deal
591
+ in the Software without restriction, including without limitation the rights
592
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
593
+ copies of the Software, and to permit persons to whom the Software is
594
+ furnished to do so, subject to the following conditions:
595
+
596
+ The above copyright notice and this permission notice shall be included in all
597
+ copies or substantial portions of the Software.
598
+
599
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
600
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
601
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
602
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
603
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
604
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
605
+ SOFTWARE.
606
+
607
+ ```
608
+
609
+ ## MIT License
610
+
611
+ Used by:
612
+
613
+ - num_cpus 1.17.0 — https://github.com/seanmonstar/num_cpus
614
+
615
+ ```
616
+ Copyright (c) 2015-2025 Sean McArthur
617
+
618
+ Permission is hereby granted, free of charge, to any person obtaining a copy
619
+ of this software and associated documentation files (the "Software"), to deal
620
+ in the Software without restriction, including without limitation the rights
621
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
622
+ copies of the Software, and to permit persons to whom the Software is
623
+ furnished to do so, subject to the following conditions:
624
+
625
+ The above copyright notice and this permission notice shall be included in
626
+ all copies or substantial portions of the Software.
627
+
628
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
629
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
630
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
631
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
632
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
633
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
634
+ THE SOFTWARE.
635
+
636
+
507
637
  ```
508
638
 
509
639
  ## MIT License
@@ -547,6 +677,77 @@ DEALINGS IN THE SOFTWARE.
547
677
 
548
678
  Used by:
549
679
 
680
+ - tracing-core 0.1.36 — https://github.com/tokio-rs/tracing
681
+ - tracing 0.1.44 — https://github.com/tokio-rs/tracing
682
+
683
+ ```
684
+ Copyright (c) 2019 Tokio Contributors
685
+
686
+ Permission is hereby granted, free of charge, to any
687
+ person obtaining a copy of this software and associated
688
+ documentation files (the "Software"), to deal in the
689
+ Software without restriction, including without
690
+ limitation the rights to use, copy, modify, merge,
691
+ publish, distribute, sublicense, and/or sell copies of
692
+ the Software, and to permit persons to whom the Software
693
+ is furnished to do so, subject to the following
694
+ conditions:
695
+
696
+ The above copyright notice and this permission notice
697
+ shall be included in all copies or substantial portions
698
+ of the Software.
699
+
700
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
701
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
702
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
703
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
704
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
705
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
706
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
707
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
708
+ DEALINGS IN THE SOFTWARE.
709
+
710
+ ```
711
+
712
+ ## MIT License
713
+
714
+ Used by:
715
+
716
+ - libc 0.2.186 — https://github.com/rust-lang/libc
717
+
718
+ ```
719
+ Copyright (c) The Rust Project Developers
720
+
721
+ Permission is hereby granted, free of charge, to any
722
+ person obtaining a copy of this software and associated
723
+ documentation files (the "Software"), to deal in the
724
+ Software without restriction, including without
725
+ limitation the rights to use, copy, modify, merge,
726
+ publish, distribute, sublicense, and/or sell copies of
727
+ the Software, and to permit persons to whom the Software
728
+ is furnished to do so, subject to the following
729
+ conditions:
730
+
731
+ The above copyright notice and this permission notice
732
+ shall be included in all copies or substantial portions
733
+ of the Software.
734
+
735
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
736
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
737
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
738
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
739
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
740
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
741
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
742
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
743
+ DEALINGS IN THE SOFTWARE.
744
+
745
+ ```
746
+
747
+ ## MIT License
748
+
749
+ Used by:
750
+
550
751
  - zerocopy-derive 0.8.52 — https://github.com/google/zerocopy
551
752
  - zerocopy 0.8.52 — https://github.com/google/zerocopy
552
753
 
@@ -578,6 +779,37 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
578
779
  DEALINGS IN THE SOFTWARE.
579
780
 
580
781
 
782
+ ```
783
+
784
+ ## MIT License
785
+
786
+ Used by:
787
+
788
+ - thread-priority 3.1.1 — https://github.com/iddm/thread-priority
789
+
790
+ ```
791
+ MIT License
792
+
793
+ Copyright (c) 2017 Victor Polevoy
794
+
795
+ Permission is hereby granted, free of charge, to any person obtaining a copy
796
+ of this software and associated documentation files (the "Software"), to deal
797
+ in the Software without restriction, including without limitation the rights
798
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
799
+ copies of the Software, and to permit persons to whom the Software is
800
+ furnished to do so, subject to the following conditions:
801
+
802
+ The above copyright notice and this permission notice shall be included in all
803
+ copies or substantial portions of the Software.
804
+
805
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
806
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
807
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
808
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
809
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
810
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
811
+ SOFTWARE.
812
+
581
813
  ```
582
814
 
583
815
  ## MIT License
@@ -622,13 +854,26 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
622
854
 
623
855
  Used by:
624
856
 
625
- - autd3-ffi-abi 0.4.0 — https://github.com/shinolab/autd3-sdk
626
- - autd3-ffi-pattern 0.4.0 — https://github.com/shinolab/autd3-sdk
627
- - autd3-rs-core 0.4.0 — https://github.com/shinolab/autd3-sdk
628
- - autd3-rs-pattern 0.4.0 — https://github.com/shinolab/autd3-sdk
857
+ - autd3-ffi-abi 0.5.0 — https://github.com/shinolab/autd3-sdk
858
+ - autd3-ffi-pattern 0.5.0 — https://github.com/shinolab/autd3-sdk
859
+ - autd3-rs-core 0.5.0 — https://github.com/shinolab/autd3-sdk
860
+ - autd3-rs-pattern 0.5.0 — https://github.com/shinolab/autd3-sdk
629
861
  - autd3-cpu-wire 0.4.0 — https://github.com/shinolab/autd3-sdk
630
862
  - chrono 0.4.45 — https://github.com/chronotope/chrono
631
863
  - wide 1.5.0 — https://github.com/Lokathor/wide
864
+ - winapi-i686-pc-windows-gnu 0.4.0 — https://github.com/retep998/winapi-rs
865
+ - winapi-x86_64-pc-windows-gnu 0.4.0 — https://github.com/retep998/winapi-rs
866
+ - windows-collections 0.3.2 — https://github.com/microsoft/windows-rs
867
+ - windows-core 0.62.2 — https://github.com/microsoft/windows-rs
868
+ - windows-future 0.3.2 — https://github.com/microsoft/windows-rs
869
+ - windows-implement 0.60.2 — https://github.com/microsoft/windows-rs
870
+ - windows-interface 0.59.3 — https://github.com/microsoft/windows-rs
871
+ - windows-link 0.2.1 — https://github.com/microsoft/windows-rs
872
+ - windows-numerics 0.3.1 — https://github.com/microsoft/windows-rs
873
+ - windows-result 0.4.1 — https://github.com/microsoft/windows-rs
874
+ - windows-strings 0.5.1 — https://github.com/microsoft/windows-rs
875
+ - windows-threading 0.2.1 — https://github.com/microsoft/windows-rs
876
+ - windows 0.62.2 — https://github.com/microsoft/windows-rs
632
877
 
633
878
  ```
634
879
  MIT License
@@ -656,8 +901,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
656
901
 
657
902
  Used by:
658
903
 
904
+ - hermit-abi 0.5.2 — https://github.com/hermit-os/hermit-rs
905
+ - pin-project-lite 0.2.17 — https://github.com/taiki-e/pin-project-lite
659
906
  - proc-macro2 1.0.106 — https://github.com/dtolnay/proc-macro2
660
907
  - quote 1.0.46 — https://github.com/dtolnay/quote
908
+ - rustversion 1.0.22 — https://github.com/dtolnay/rustversion
661
909
  - syn 2.0.118 — https://github.com/dtolnay/syn
662
910
  - thiserror-impl 2.0.18 — https://github.com/dtolnay/thiserror
663
911
  - thiserror 2.0.18 — https://github.com/dtolnay/thiserror
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/shinolab/autd3-sdk.git",
6
6
  "directory": "bindings/unity/com.shinolab.autd3-sdk.pattern"
7
7
  },
8
- "version": "0.4.0",
8
+ "version": "0.5.0",
9
9
  "displayName": "AUTD3 Pattern",
10
10
  "description": "AUTD3 emission patterns: Focus, Plane, Bessel (Unity binding).",
11
11
  "unity": "6000.0",
@@ -15,6 +15,6 @@
15
15
  "url": "https://github.com/shinolab"
16
16
  },
17
17
  "dependencies": {
18
- "com.shinolab.autd3-sdk.core": "0.4.0"
18
+ "com.shinolab.autd3-sdk.core": "0.5.0"
19
19
  }
20
20
  }